| Index: extensions/browser/extension_function_dispatcher.cc
|
| diff --git a/extensions/browser/extension_function_dispatcher.cc b/extensions/browser/extension_function_dispatcher.cc
|
| index 1fa43ec9c2fb955fbb53761ad423bfc2977e25f7..e682701bc3f257d7ac950e4d1b376dfe3b16def7 100644
|
| --- a/extensions/browser/extension_function_dispatcher.cc
|
| +++ b/extensions/browser/extension_function_dispatcher.cc
|
| @@ -186,8 +186,11 @@ class ExtensionFunctionDispatcher::UIThreadResponseCallbackWrapper
|
| const base::ListValue& results,
|
| const std::string& error,
|
| functions::HistogramValue histogram_value) {
|
| - base::Process process = base::Process::DeprecatedGetProcessFromHandle(
|
| - render_view_host_->GetProcess()->GetHandle());
|
| + base::Process process =
|
| + content::RenderProcessHost::run_renderer_in_process()
|
| + ? base::Process::Current()
|
| + : base::Process::DeprecatedGetProcessFromHandle(
|
| + render_view_host_->GetProcess()->GetHandle());
|
| CommonResponseCallback(render_view_host_, render_view_host_->GetRoutingID(),
|
| process, request_id, type, results, error,
|
| histogram_value);
|
|
|