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

Unified Diff: chrome/browser/resources/extensions/extension_list.js

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
Index: chrome/browser/resources/extensions/extension_list.js
diff --git a/chrome/browser/resources/extensions/extension_list.js b/chrome/browser/resources/extensions/extension_list.js
index b8ab0d4a66a37583a7a6017dad241355cc6a3d44..0dc61fa43ece0d26ce4d0b2817b9255683316a09 100644
--- a/chrome/browser/resources/extensions/extension_list.js
+++ b/chrome/browser/resources/extensions/extension_list.js
@@ -51,6 +51,7 @@
* prettifiedPath: (string|undefined),
* recommendedInstall: boolean,
* runtimeErrors: (Array.<RuntimeError>|undefined),
+ * showAllUrls: boolean,
* suspiciousInstall: boolean,
* terminated: boolean,
* updateRequiredByPolicy: boolean,
@@ -58,7 +59,6 @@
* views: Array.<{renderViewId: number, renderProcessId: number,
* path: string, incognito: boolean,
* generatedBackgroundPage: boolean}>,
- * wantsAllUrls: boolean,
* wantsErrorCollection: boolean,
* wantsFileAccess: boolean,
* warnings: (Array|undefined)}}
@@ -260,7 +260,7 @@ cr.define('options', function() {
// The 'allow on all urls' checkbox. This should only be visible if
// active script restrictions are enabled. If they are not enabled, no
// extensions should want all urls.
- if (extension.wantsAllUrls) {
+ if (extension.showAllUrls) {
var allUrls = node.querySelector('.all-urls-control');
allUrls.addEventListener('click', function(e) {
chrome.send('extensionSettingsAllowOnAllUrls',

Powered by Google App Engine
This is Rietveld 408576698