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. 4 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ 7 8 namespace extensions { 9 10 class Extension; 11 class ExtensionService; 12 13 // Adds a global error to inform the user that an extension was 14 // disabled after upgrading to higher permissions. 15 // If |is_remote_install| is true, the extension was disabled because 16 // it was installed remotely. 17 void AddExtensionDisabledError(ExtensionService* service, 18 const Extension* extension, 19 bool is_remote_install); 20 21 } // namespace extensions 22 23 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ 24