Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: extensions/common/permissions/permissions_data.h

Issue 922403002: [Extensions] Adjust script injection reporting to the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698