Index: chrome/browser/extensions/extension_tabs_module.cc |
diff --git a/chrome/browser/extensions/extension_tabs_module.cc b/chrome/browser/extensions/extension_tabs_module.cc |
index e39d1f5e9c5fac306e0d6a34927de2e1a587d53a..1cce8ef151cc4ea82f370cd47c8fac6e69a83404 100644 |
--- a/chrome/browser/extensions/extension_tabs_module.cc |
+++ b/chrome/browser/extensions/extension_tabs_module.cc |
@@ -775,15 +775,8 @@ bool UpdateTabFunction::RunImpl() { |
// JavaScript URLs can do the same kinds of things as cross-origin XHR, so |
// we need to check host permissions before allowing them. |
if (url.SchemeIs(chrome::kJavaScriptScheme)) { |
- const Extension* extension = GetExtension(); |
- const std::vector<URLPattern> host_permissions = |
- extension->host_permissions(); |
- if (!Extension::CanExecuteScriptOnPage( |
- contents->tab_contents()->GetURL(), |
- extension->CanExecuteScriptEverywhere(), |
- &host_permissions, |
- NULL, |
- &error_)) { |
+ if (!GetExtension()->CanExecuteScriptOnPage( |
+ contents->tab_contents()->GetURL(), NULL, &error_)) { |
return false; |
} |