Index: extensions/renderer/script_injection.cc |
diff --git a/extensions/renderer/script_injection.cc b/extensions/renderer/script_injection.cc |
index 5299bd401bc1005f629649bf72c662749f57892f..9d82fbef4da9842d67e2156c664325840af6b3e6 100644 |
--- a/extensions/renderer/script_injection.cc |
+++ b/extensions/renderer/script_injection.cc |
@@ -256,14 +256,14 @@ bool ScriptInjection::WantsToRun(blink::WebFrame* frame, |
GURL effective_document_url = ScriptContext::GetEffectiveDocumentURL( |
frame, document_url, script_->match_about_blank()); |
- if (!PermissionsData::ForExtension(extension) |
- ->CanExecuteScriptOnPage(extension, |
- effective_document_url, |
- frame->top()->document().url(), |
- kNoTabId, |
- script_.get(), |
- kNoProcessId, |
- NULL /* ignore error */)) { |
+ if (!extension->permissions_data()->CanExecuteScriptOnPage( |
+ extension, |
+ effective_document_url, |
+ frame->top()->document().url(), |
+ kNoTabId, |
+ script_.get(), |
+ kNoProcessId, |
+ NULL /* ignore error */)) { |
return false; |
} |