| Index: extensions/common/permissions/permissions_data.h
|
| diff --git a/extensions/common/permissions/permissions_data.h b/extensions/common/permissions/permissions_data.h
|
| index 38f72662fbb98d3aca5fc671ddb2c52c3b560a02..70536ae82d58e5e4a9ccb3543e37d2058b4c8f17 100644
|
| --- a/extensions/common/permissions/permissions_data.h
|
| +++ b/extensions/common/permissions/permissions_data.h
|
| @@ -70,6 +70,14 @@ class PermissionsData {
|
| // whitelist of extensions that can script all pages.
|
| static bool CanExecuteScriptEverywhere(const Extension* extension);
|
|
|
| + // Returns true if the --scripts-require-action flag would possibly affect
|
| + // the given |extension| and |permissions|. We pass in the |permissions|
|
| + // explicitly, as we may need to check with permissions other than the ones
|
| + // that are currently on the extension's PermissionsData.
|
| + static bool ScriptsMayRequireActionForExtension(
|
| + const Extension* extension,
|
| + const PermissionSet* permissions);
|
| +
|
| // Returns true if we should skip the permisisons warning for the extension
|
| // with the given |extension_id|.
|
| static bool ShouldSkipPermissionWarnings(const std::string& extension_id);
|
|
|