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

Unified Diff: chrome/browser/extensions/active_script_controller.h

Issue 874683005: [Extensions] Enable the scripts-require-action feature based on all-urls pref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated metrics 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
« no previous file with comments | « no previous file | chrome/browser/extensions/active_script_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/active_script_controller.h
diff --git a/chrome/browser/extensions/active_script_controller.h b/chrome/browser/extensions/active_script_controller.h
index 169ac119898efd1e61644c6845949695dca5d406..b4310950a7d72b6d137c2fa81cf71054517307ce 100644
--- a/chrome/browser/extensions/active_script_controller.h
+++ b/chrome/browser/extensions/active_script_controller.h
@@ -130,10 +130,9 @@ class ActiveScriptController : public content::WebContentsObserver,
// The associated browser context.
content::BrowserContext* browser_context_;
- // Whether or not the ActiveScriptController is enabled (corresponding to the
- // kActiveScriptEnforcement switch). If it is not, it acts as an empty shell,
- // always allowing scripts to run and never displaying actions.
- bool enabled_;
+ // Whether or not the feature was used for any extensions. This may not be the
+ // case if the user never enabled the scripts-require-action flag.
+ bool was_used_on_page_;
// The map of extension_id:pending_request of all pending requests.
PendingRequestMap pending_requests_;
« no previous file with comments | « no previous file | chrome/browser/extensions/active_script_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698