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

Issue 2965623002: Fix about:flags information not showing up in chrome://net-export/ logs (Closed)

Created:
3 years, 5 months ago by eroman
Modified:
3 years, 5 months ago
Reviewers:
davidben, xunjieli
CC:
chromium-reviews, bnc+watch_chromium.org, mmenke, eroman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix about:flags information not showing up in chrome://net-export/ logs Pass the command-line and channel as dependencies to StartNetLog() rather than saving them in the ChromeNetLog constructor. The issue is that the CommandLine singleton may be mutated after ChromeNetLog has been initialized (it gets re-written to include synthesized switches for about:flags). BUG=711432 Review-Url: https://codereview.chromium.org/2965623002 Cr-Commit-Position: refs/heads/master@{#483754} Committed: https://chromium.googlesource.com/chromium/src/+/30355da69277622a7f6bb2129c0435b1e1223f49

Patch Set 1 #

Patch Set 2 : change implementation to pass dependencies in StartNetLog() #

Patch Set 3 : fix ios build #

Patch Set 4 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -39 lines) Patch
M chrome/browser/ui/webui/net_export_ui.cc View 1 5 chunks +14 lines, -3 lines 0 comments Download
M components/net_log/chrome_net_log.h View 1 2 chunks +9 lines, -1 line 0 comments Download
M components/net_log/chrome_net_log.cc View 1 2 chunks +7 lines, -2 lines 2 comments Download
M components/net_log/net_log_file_writer.h View 1 3 chunks +3 lines, -6 lines 0 comments Download
M components/net_log/net_log_file_writer.cc View 1 3 chunks +4 lines, -7 lines 0 comments Download
M components/net_log/net_log_file_writer_unittest.cc View 1 2 3 5 chunks +23 lines, -20 lines 0 comments Download
M ios/chrome/browser/ui/webui/net_export/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/webui/net_export/net_export_ui.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (20 generated)
eroman
3 years, 5 months ago (2017-06-29 23:39:29 UTC) #13
xunjieli
I am confused. "activeFieldTrialGroups" is set by GetNetConstants() which doesn't depend on |command_line_string| or |channel_string|. ...
3 years, 5 months ago (2017-06-30 13:27:08 UTC) #18
xunjieli
LGTM. I confused this with activeFieldTrialGroups. Talked to davidben@ offline. This makes sense.
3 years, 5 months ago (2017-06-30 15:00:15 UTC) #19
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/2965623002/60001
3 years, 5 months ago (2017-06-30 17:53:29 UTC) #21
eroman
Thanks for the review! I am happy to chat more about the problem or proposed ...
3 years, 5 months ago (2017-06-30 17:58:01 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/30355da69277622a7f6bb2129c0435b1e1223f49
3 years, 5 months ago (2017-06-30 17:59:33 UTC) #25
davidben
https://codereview.chromium.org/2965623002/diff/60001/components/net_log/chrome_net_log.cc File components/net_log/chrome_net_log.cc (right): https://codereview.chromium.org/2965623002/diff/60001/components/net_log/chrome_net_log.cc#newcode52 components/net_log/chrome_net_log.cc:52: GetConstants(command_line_string, channel_string)); This bit means we still won't capture ...
3 years, 5 months ago (2017-06-30 18:03:26 UTC) #27
eroman
3 years, 5 months ago (2017-06-30 18:24:37 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/2965623002/diff/60001/components/net_log/chro...
File components/net_log/chrome_net_log.cc (right):

https://codereview.chromium.org/2965623002/diff/60001/components/net_log/chro...
components/net_log/chrome_net_log.cc:52: GetConstants(command_line_string,
channel_string));
On 2017/06/30 18:03:26, davidben wrote:
> This bit means we still won't capture about:flags if you use --log-net-log,
> right? (Dunno how much we care about that.)

Correct.
--log-net-log needs some more loving, before it is worth tackling this.

The way I expect this should be sequenced is:

(1) Make --log-net-log use the same code for writing logs as net-export
(https://bugs.chromium.org/p/chromium/issues/detail?id=716570). It is not
feasible to improve things when we have so many variants of log writing. At
least the net-internals version is dead now, but still some left to kill.

(2) Switch the underlying file logging mechanism to support truncation
(https://bugs.chromium.org/p/chromium/issues/detail?id=679030). Should complete
the interns work and enable the bounded logger.

(3) Further change the log format to make things not suck. #profit.
 * Choices like requiring naming all enums complicates things like
https://bugs.chromium.org/p/chromium/issues/detail?id=90674
  * Compress and/or use a binary format instead of the terrible JSON -
https://bugs.chromium.org/p/chromium/issues/detail?id=132160

Powered by Google App Engine
This is Rietveld 408576698