| Index: chrome/browser/extensions/extension_function_dispatcher.cc
|
| diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
|
| index bb263fb93ad02fdf2167787e31ef52d139a1817f..9641187d06436a105a5147e791bd25774335792f 100644
|
| --- a/chrome/browser/extensions/extension_function_dispatcher.cc
|
| +++ b/chrome/browser/extensions/extension_function_dispatcher.cc
|
| @@ -523,7 +523,8 @@ void ExtensionFunctionDispatcher::DispatchOnIOThread(
|
| const Extension* extension =
|
| extension_info_map->extensions().GetByURL(params.source_url);
|
|
|
| - if (!extension_info_map->AreBindingsEnabledForProcess(render_process_id)) {
|
| + if (!extension_info_map->IsExtensionInProcess(extension->id(),
|
| + render_process_id)) {
|
| // TODO(aa): Allow content scripts access to low-threat extension APIs.
|
| // See: crbug.com/80308.
|
| LOG(ERROR) << "Extension API called from non-extension process.";
|
|
|