| Index: chrome/browser/extensions/active_script_controller.cc
|
| diff --git a/chrome/browser/extensions/active_script_controller.cc b/chrome/browser/extensions/active_script_controller.cc
|
| index 7ea009e156234b09117604da42b5d27bad6ec624..1ea6295ae956ca765ade92d4572757fce91bedfe 100644
|
| --- a/chrome/browser/extensions/active_script_controller.cc
|
| +++ b/chrome/browser/extensions/active_script_controller.cc
|
| @@ -73,10 +73,11 @@ ActiveScriptController* ActiveScriptController::GetForWebContents(
|
| bool ActiveScriptController::RequiresUserConsentForScriptInjection(
|
| const Extension* extension) {
|
| CHECK(extension);
|
| - if (!PermissionsData::RequiresActionForScriptExecution(
|
| - extension,
|
| - SessionID::IdForTab(web_contents()),
|
| - web_contents()->GetVisibleURL()) ||
|
| + if (!PermissionsData::ForExtension(extension)
|
| + ->RequiresActionForScriptExecution(
|
| + extension,
|
| + SessionID::IdForTab(web_contents()),
|
| + web_contents()->GetVisibleURL()) ||
|
| util::AllowedScriptingOnAllUrls(extension->id(),
|
| web_contents()->GetBrowserContext())) {
|
| return false;
|
|
|