Index: chrome/browser/ui/webui/extensions/extension_settings_handler.cc |
diff --git a/chrome/browser/ui/webui/extensions/extension_settings_handler.cc b/chrome/browser/ui/webui/extensions/extension_settings_handler.cc |
index b938f65bfd7c2620f1de9a0964c26101684b7c92..4b595d0e9831bfab10aa008739346e05f81e3114 100644 |
--- a/chrome/browser/ui/webui/extensions/extension_settings_handler.cc |
+++ b/chrome/browser/ui/webui/extensions/extension_settings_handler.cc |
@@ -285,13 +285,12 @@ base::DictionaryValue* ExtensionSettingsHandler::CreateExtensionDetailValue( |
extension_data->Set("dependentExtensions", dependents_list); |
// Extensions only want all URL access if: |
- // - The feature is enabled. |
+ // - The feature is enabled for the given extension. |
// - The extension has access to enough urls that we can't just let it run |
// on those specified in the permissions. |
bool wants_all_urls = |
- extension->permissions_data()->HasWithheldImpliedAllHosts() || |
- util::AllowedScriptingOnAllUrls(extension->id(), |
- extension_service_->GetBrowserContext()); |
+ util::ScriptsMayRequireActionForExtension(extension) && |
+ extension->permissions_data()->HasWithheldImpliedAllHosts(); |
extension_data->SetBoolean("wantsAllUrls", wants_all_urls); |
extension_data->SetBoolean( |
"allowAllUrls", |