Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / extensions / extension_disabled_ui.h
blob083805859991aafd64d87bdfe5e03080406b1b62
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_
8 class Browser;
9 class ExtensionService;
10 namespace content {
11 class WebContents;
14 namespace extensions {
16 class Extension;
18 // Adds a global error to inform the user that an extension was
19 // disabled after upgrading to higher permissions.
20 // If |is_remote_install| is true, the extension was disabled because
21 // it was installed remotely.
22 void AddExtensionDisabledError(ExtensionService* service,
23 const Extension* extension,
24 bool is_remote_install);
26 // Shows the extension install dialog.
27 void ShowExtensionDisabledDialog(ExtensionService* service,
28 content::WebContents* web_contents,
29 const Extension* extension);
31 } // namespace extensions
33 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_