| Index: chrome/browser/extensions/extensions_service.h
|
| diff --git a/chrome/browser/extensions/extensions_service.h b/chrome/browser/extensions/extensions_service.h
|
| index e37b452cd84f7e35c1b4b53723f81be0af8ae50e..4a93ee522c37cfed48c61b1f599ea431d55d5a08 100644
|
| --- a/chrome/browser/extensions/extensions_service.h
|
| +++ b/chrome/browser/extensions/extensions_service.h
|
| @@ -273,6 +273,15 @@ class ExtensionsService
|
| void EnableExtension(const std::string& extension_id);
|
| void DisableExtension(const std::string& extension_id);
|
|
|
| + // Updates the |extension|'s granted permissions lists to include all
|
| + // permissions in the |extension|'s manifest.
|
| + void GrantPermissions(const Extension* extension);
|
| +
|
| + // Updates the |extension|'s granted permissions lists to include all
|
| + // permissions in the |extension|'s manifest and re-enables the
|
| + // extension.
|
| + void GrantPermissionsAndEnableExtension(const Extension* extension);
|
| +
|
| // Load the extension from the directory |extension_path|.
|
| void LoadExtension(const FilePath& extension_path);
|
|
|
| @@ -356,6 +365,13 @@ class ExtensionsService
|
| const FilePath& path,
|
| Extension::Location location);
|
|
|
| + // Checks if the privileges requested by |extension| have increased, and if
|
| + // so, disables the extension and prompts the user to approve the change.
|
| + // |allow_privilege_increase| should be set to true for extension types that
|
| + // are allowed to change privileges without user approval.
|
| + void DisableIfPrivilegeIncrease(const Extension* extension,
|
| + bool allow_privilege_increase);
|
| +
|
| // Go through each extensions in pref, unload blacklisted extensions
|
| // and update the blacklist state in pref.
|
| virtual void UpdateExtensionBlacklist(
|
|
|