| Index: chrome/browser/extensions/extension_util.h
|
| diff --git a/chrome/browser/extensions/extension_util.h b/chrome/browser/extensions/extension_util.h
|
| index 7fa21e4bbe8f8ba2d766a707e1eeaa7d44109a8e..0dd29b205f8bce1ecbe4fc0751f8490a35734701 100644
|
| --- a/chrome/browser/extensions/extension_util.h
|
| +++ b/chrome/browser/extensions/extension_util.h
|
| @@ -63,6 +63,18 @@ void SetAllowFileAccess(const std::string& extension_id,
|
| content::BrowserContext* context,
|
| bool allow);
|
|
|
| +// Returns true if this extension has been installed by the custodian of
|
| +// a supervised user. It is relevant for supervised users and used to block
|
| +// them from uninstalling the extension for example.
|
| +bool WasInstalledByCustodian(const std::string& extension_id,
|
| + content::BrowserContext* context);
|
| +
|
| +// Flags |extension_id| as "installed by a custodian".
|
| +// This is relevant for supervised users and is used to limit their privileges
|
| +// for extensions installed by their custodian (e.g. they cannot uninstall them)
|
| +void SetWasInstalledByCustodian(const std::string& extension_id,
|
| + content::BrowserContext* context);
|
| +
|
| // Returns true if the extension with |extension_id| is allowed to execute
|
| // scripts on all urls (exempting chrome:// urls, etc) without explicit
|
| // user consent.
|
| @@ -131,7 +143,7 @@ bool IsNewBookmarkAppsEnabled();
|
| bool CanHostedAppsOpenInWindows();
|
|
|
| // Returns true for custodian-installed extensions in a supervised profile.
|
| -bool IsExtensionSupervised(const Extension* extension, const Profile* profile);
|
| +bool IsExtensionSupervised(const Extension* extension, Profile* profile);
|
|
|
| // Returns true if supervised users need approval from their custodian for
|
| // approving escalated permissions on updated extensions.
|
|
|