Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: extensions/browser/extension_function_dispatcher.cc

Issue 1113343002: ExtensionFunctionDispatcher should use base::Process::Current() if single process mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698