| Index: extensions/browser/management_policy.h
|
| diff --git a/extensions/browser/management_policy.h b/extensions/browser/management_policy.h
|
| index 149a598fc38527e595a2be38dc08475ea62694a8..277fca17078e7e82b388e40e0f4d31a43a0080cf 100644
|
| --- a/extensions/browser/management_policy.h
|
| +++ b/extensions/browser/management_policy.h
|
| @@ -52,6 +52,7 @@ class ManagementPolicy {
|
| // Providers should return false if a user may not install the |extension|,
|
| // or load or run it if it has already been installed.
|
| virtual bool UserMayLoad(const Extension* extension,
|
| + int install_flags,
|
| base::string16* error) const;
|
|
|
| // Providers should return false if a user may not enable, disable, or
|
| @@ -87,9 +88,14 @@ class ManagementPolicy {
|
| void RegisterProvider(Provider* provider);
|
| void UnregisterProvider(Provider* provider);
|
|
|
| - // Returns true if the user is permitted to install, load, and run the given
|
| + // Returns true if the user is permitted to install, load and run the given
|
| // extension. If not, |error| may be set to an appropriate message.
|
| - bool UserMayLoad(const Extension* extension, base::string16* error) const;
|
| + // |install_flags| is a bitmask of extensions::InstallFlag. For extensions
|
| + // that are already installed, the flags can be queried with
|
| + // ExtensionPrefs::GetInstallFlags.
|
| + bool UserMayLoad(const Extension* extension,
|
| + int install_flags,
|
| + base::string16* error) const;
|
|
|
| // Returns true if the user is permitted to enable, disable, or uninstall the
|
| // given extension, or change the extension's usage options (incognito mode,
|
| @@ -132,6 +138,10 @@ class ManagementPolicy {
|
| const Extension* extension,
|
| base::string16* error) const;
|
|
|
| + void LogProhibitedOperation(const char* debug_operation_name,
|
| + const Extension* extension,
|
| + const Provider* provider) const;
|
| +
|
| ProviderList providers_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ManagementPolicy);
|
|
|