diff options
Diffstat (limited to 'chrome/browser/extensions/active_script_controller.cc')
-rw-r--r-- | chrome/browser/extensions/active_script_controller.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/extensions/active_script_controller.cc b/chrome/browser/extensions/active_script_controller.cc index 1ea6295..62d1ce5 100644 --- a/chrome/browser/extensions/active_script_controller.cc +++ b/chrome/browser/extensions/active_script_controller.cc @@ -73,11 +73,10 @@ ActiveScriptController* ActiveScriptController::GetForWebContents( bool ActiveScriptController::RequiresUserConsentForScriptInjection( const Extension* extension) { CHECK(extension); - if (!PermissionsData::ForExtension(extension) - ->RequiresActionForScriptExecution( - extension, - SessionID::IdForTab(web_contents()), - web_contents()->GetVisibleURL()) || + if (!extension->permissions_data()->RequiresActionForScriptExecution( + extension, + SessionID::IdForTab(web_contents()), + web_contents()->GetVisibleURL()) || util::AllowedScriptingOnAllUrls(extension->id(), web_contents()->GetBrowserContext())) { return false; |