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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 8c394bc69afc15741c64f1925317fd4efff26eec..ba63945eeb29b13d2d8344f7be2a404fe2520c91 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -867,7 +867,6 @@ bool RenderProcessHostImpl::Init() {
// in-process plugins.
options.message_loop_type = base::MessageLoop::TYPE_DEFAULT;
#endif
-
// As for execution sequence, this callback should have no any dependency
// on starting in-process-render-thread.
// So put it here to trigger ChannelMojo initialization earlier to enable
@@ -1596,6 +1595,8 @@ void RenderProcessHostImpl::AppendRendererCommandLine(
command_line->AppendSwitchASCII(switches::kServiceRequestChannelToken,
child_connection_->service_token());
+ command_line->AppendSwitchASCII(switches::kRendererClientId,
+ std::to_string(GetID()));
}
void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
@@ -2804,8 +2805,14 @@ void RenderProcessHostImpl::OnProcessLaunched() {
// Not all platforms launch processes in the same backgrounded state. Make
// sure |is_process_backgrounded_| reflects this platform's initial process
// state.
+#if defined(OS_MACOSX)
+ is_process_backgrounded_ =
+ child_process_launcher_->GetProcess().IsProcessBackgrounded(
+ MachBroker::GetInstance());
+#else
is_process_backgrounded_ =
child_process_launcher_->GetProcess().IsProcessBackgrounded();
+#endif // defined(OS_MACOSX)
// Disable updating process priority on startup for now as it incorrectly
// results in backgrounding foreground navigations until their first commit

Powered by Google App Engine
This is Rietveld 408576698