[email protected] | edb6e77 | 2012-03-22 00:58:03 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 0c6da50 | 2009-08-14 22:32:39 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | edb6e77 | 2012-03-22 00:58:03 | [diff] [blame] | 5 | #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ |
6 | #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ | ||||
[email protected] | 0c6da50 | 2009-08-14 22:32:39 | [diff] [blame] | 7 | |
[email protected] | edb6e77 | 2012-03-22 00:58:03 | [diff] [blame] | 8 | namespace extensions { |
9 | |||||
[email protected] | 1c321ee | 2012-05-21 03:02:34 | [diff] [blame] | 10 | class Extension; |
Devlin Cronin | eea1b7a | 2018-05-26 02:46:21 | [diff] [blame] | 11 | class ExtensionService; |
[email protected] | 1c321ee | 2012-05-21 03:02:34 | [diff] [blame] | 12 | |
[email protected] | 62f051c | 2012-03-29 17:04:44 | [diff] [blame] | 13 | // Adds a global error to inform the user that an extension was |
14 | // disabled after upgrading to higher permissions. | ||||
[email protected] | 21db9ef | 2014-05-16 02:06:27 | [diff] [blame] | 15 | // If |is_remote_install| is true, the extension was disabled because |
16 | // it was installed remotely. | ||||
[email protected] | 62f051c | 2012-03-29 17:04:44 | [diff] [blame] | 17 | void AddExtensionDisabledError(ExtensionService* service, |
[email protected] | 21db9ef | 2014-05-16 02:06:27 | [diff] [blame] | 18 | const Extension* extension, |
19 | bool is_remote_install); | ||||
[email protected] | 0c6da50 | 2009-08-14 22:32:39 | [diff] [blame] | 20 | |
[email protected] | edb6e77 | 2012-03-22 00:58:03 | [diff] [blame] | 21 | } // namespace extensions |
22 | |||||
23 | #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ |