| Index: extensions/browser/extension_function_dispatcher.cc
|
| diff --git a/extensions/browser/extension_function_dispatcher.cc b/extensions/browser/extension_function_dispatcher.cc
|
| index fb3b50d66b28fedf401c357d85df84a44ec02079..d02b7990da398a10222cb89ce27c452ce540bfea 100644
|
| --- a/extensions/browser/extension_function_dispatcher.cc
|
| +++ b/extensions/browser/extension_function_dispatcher.cc
|
| @@ -474,7 +474,7 @@ ExtensionFunction* ExtensionFunctionDispatcher::CreateExtensionFunction(
|
|
|
| // Privileged APIs can only be called from the process the extension
|
| // is running in.
|
| - if (allowed && api->IsPrivileged(params.name))
|
| + if (allowed && !api->IsAvailableInUntrustedContext(params.name, extension))
|
| allowed = process_map.Contains(extension->id(), requesting_process_id);
|
|
|
| if (!allowed) {
|
|
|