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

Issue 1069253003: [tracing] Fix single-process detection logic of ChildTraceMessageFilter (Closed)

Created:
5 years, 8 months ago by Primiano Tucci (use gerrit)
Modified:
5 years, 8 months ago
Reviewers:
Avi (use Gerrit), nduca
CC:
chromium-reviews, darin-cc_chromium.org, dsinclair, erikwright+watch_chromium.org, jam, mnaganov (inactive), picksi1, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@ipc_4_child
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Fix single-process detection logic of ChildTraceMessageFilter Currently the instantiation of ChildTraceMessageFilter in child_thread_impl.cc is guarded by a check on CommandLine.HasSwitch(kSingleProcess) The rationale is that in single-process mode we don't want to have any message filter as the browser-side tracing will cover all the threads. However, the aforementioned check is not complete, as it does not covers the case of tests using the InProcessUtilityThreadHelper [1]. In those tests, the kSingleProcess flag is not present, but the renderer is in-process anyways. Replacing the the HasSwitch check in with IsInBrowserProcess(), which covers also the latter case. [1] for instance extensions/browser/sandboxed_unpacker_unittest.cc BUG=474973 Committed: https://crrev.com/4950a30243ae4573b78033781830a113d220f938 Cr-Commit-Position: refs/heads/master@{#324276}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix DCHECK_EQ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -6 lines) Patch
M base/trace_event/memory_dump_manager.cc View 1 1 chunk +1 line, -4 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Primiano Tucci (use gerrit)
PTAL, it's just a one line change.
5 years, 8 months ago (2015-04-08 12:07:26 UTC) #2
Avi (use Gerrit)
lgtm; nit https://codereview.chromium.org/1069253003/diff/1/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1069253003/diff/1/base/trace_event/memory_dump_manager.cc#newcode80 base/trace_event/memory_dump_manager.cc:80: DCHECK(delegate_ == nullptr); DCHECK_EQ(nullptr, delegate);
5 years, 8 months ago (2015-04-08 14:42:35 UTC) #3
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1069253003/diff/1/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1069253003/diff/1/base/trace_event/memory_dump_manager.cc#newcode80 base/trace_event/memory_dump_manager.cc:80: DCHECK(delegate_ == nullptr); On 2015/04/08 14:42:35, Avi wrote: > ...
5 years, 8 months ago (2015-04-08 15:04:29 UTC) #4
Avi (use Gerrit)
https://codereview.chromium.org/1069253003/diff/1/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1069253003/diff/1/base/trace_event/memory_dump_manager.cc#newcode80 base/trace_event/memory_dump_manager.cc:80: DCHECK(delegate_ == nullptr); On 2015/04/08 15:04:29, Primiano Tucci wrote: ...
5 years, 8 months ago (2015-04-08 15:20:19 UTC) #5
nduca
lgtm
5 years, 8 months ago (2015-04-08 16:06:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1069253003/20001
5 years, 8 months ago (2015-04-08 17:54:42 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-08 20:06:51 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 20:07:48 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4950a30243ae4573b78033781830a113d220f938
Cr-Commit-Position: refs/heads/master@{#324276}

Powered by Google App Engine
This is Rietveld 408576698