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

Unified Diff: content/child/child_thread_impl.cc

Issue 1069253003: [tracing] Fix single-process detection logic of ChildTraceMessageFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc_4_child
Patch Set: Fix DCHECK_EQ 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 | « base/trace_event/memory_dump_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index 013d1d51302d1920edcbe76ec7b463357789c8f5..62518ea2ee60f5b9c63fcda1e6218978293a9c9c 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -401,8 +401,7 @@ void ChildThreadImpl::Init(const Options& options) {
channel_->AddFilter(bluetooth_message_filter_->GetFilter());
channel_->AddFilter(navigator_connect_dispatcher_->GetFilter());
- if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kSingleProcess)) {
+ if (!IsInBrowserProcess()) {
// In single process mode, browser-side tracing will cover the whole
// process including renderers.
channel_->AddFilter(new tracing::ChildTraceMessageFilter(
« no previous file with comments | « base/trace_event/memory_dump_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698