Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Issue 2524043002: Android: Make netlog available in startup traces. (Closed)

Created:
4 years ago by Benoit L
Modified:
4 years ago
Reviewers:
eroman, xunjieli
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman, mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Make netlog available in startup traces. Netlog events are made available to trace events through TraceNetLogObserver. On Android, it is created after tracing has started, yet only listens for tracing state changes. Before listening for tracing state changes, first check whether tracing is already enabled. TEST= $ adb shell 'echo "_ --trace-startup=*,netlog" > /data/local/tmp/chrome-command-line' $ adb shell 'am force-stop com.google.android.apps.chrome' && adb shell am start -a 'android.intent.action.VIEW' -n com.google.android.apps.chrome/.Main -d 'https://android.com'" This was busted before, works with this patch. BUG=668195 Committed: https://crrev.com/9da0f1a6adf25390c93d0ddd384defcedda25f89 Cr-Commit-Position: refs/heads/master@{#435895}

Patch Set 1 #

Patch Set 2 : Tests. #

Total comments: 2

Patch Set 3 : Address comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -0 lines) Patch
M net/log/trace_net_log_observer.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M net/log/trace_net_log_observer_unittest.cc View 1 2 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (18 generated)
Benoit L
4 years ago (2016-11-23 16:58:08 UTC) #1
Benoit L
4 years ago (2016-11-23 17:09:15 UTC) #3
eroman
+Helen who is more familiar with the tracing integration. (1) How does this relate to ...
4 years ago (2016-11-23 20:36:01 UTC) #9
xunjieli
On 2016/11/23 20:36:01, eroman (slow) wrote: > +Helen who is more familiar with the tracing ...
4 years ago (2016-11-29 14:45:44 UTC) #10
Benoit L
On 2016/11/29 14:45:44, xunjieli wrote: > On 2016/11/23 20:36:01, eroman (slow) wrote: > > +Helen ...
4 years ago (2016-11-30 16:58:30 UTC) #11
xunjieli
Acknowledged. LGTM. Please wait for eroman@ to sign off. https://codereview.chromium.org/2524043002/diff/20001/net/log/trace_net_log_observer_unittest.cc File net/log/trace_net_log_observer_unittest.cc (right): https://codereview.chromium.org/2524043002/diff/20001/net/log/trace_net_log_observer_unittest.cc#newcode327 net/log/trace_net_log_observer_unittest.cc:327: ...
4 years ago (2016-11-30 18:12:32 UTC) #16
Benoit L
Thanks! eroman@: PTAL, thank you. https://codereview.chromium.org/2524043002/diff/20001/net/log/trace_net_log_observer_unittest.cc File net/log/trace_net_log_observer_unittest.cc (right): https://codereview.chromium.org/2524043002/diff/20001/net/log/trace_net_log_observer_unittest.cc#newcode327 net/log/trace_net_log_observer_unittest.cc:327: set_trace_net_log_observer(NULL); On 2016/11/30 18:12:32, ...
4 years ago (2016-12-01 10:41:32 UTC) #17
eroman
lgtm
4 years ago (2016-12-01 20:42:13 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2524043002/40001
4 years ago (2016-12-02 09:22:40 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-02 09:27:19 UTC) #27
commit-bot: I haz the power
4 years ago (2016-12-02 09:30:25 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9da0f1a6adf25390c93d0ddd384defcedda25f89
Cr-Commit-Position: refs/heads/master@{#435895}

Powered by Google App Engine
This is Rietveld 408576698