| Index: chrome/browser/extensions/execute_code_in_tab_function.cc
|
| diff --git a/chrome/browser/extensions/execute_code_in_tab_function.cc b/chrome/browser/extensions/execute_code_in_tab_function.cc
|
| index b3bfee042c250685ff9f4a28b0c7e69f8beba599..7c515733b190b471deeee8e94a03a9d56bfbd447 100644
|
| --- a/chrome/browser/extensions/execute_code_in_tab_function.cc
|
| +++ b/chrome/browser/extensions/execute_code_in_tab_function.cc
|
| @@ -79,15 +79,8 @@ bool ExecuteCodeInTabFunction::RunImpl() {
|
|
|
| // NOTE: This can give the wrong answer due to race conditions, but it is OK,
|
| // we check again in the renderer.
|
| - 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;
|
| }
|
|
|
|
|