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
Review-Url: https://codereview.chromium.org/2524043002
Cr-Commit-Position: refs/heads/master@{#435895}
2 files changed