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

Issue 6025017: Adds the ability to load JSON log files to about:net-internals. (Closed)

Created:
9 years, 11 months ago by mmenke
Modified:
9 years, 7 months ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org, arv (Not doing code reviews), darin-cc_chromium.org
Visibility:
Public.

Description

Adds the ability to load JSON log files to about:net-internals. Only works with logs created by the new "--log-net-log=file", which writes NetLog events to the specified file, regardless of other logging command line parameters. Using "--log-net-log" without a file name will just write NetLog events to VLOG(1), as before. BUG=63687 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72567

Patch Set 1 : '' #

Total comments: 8

Patch Set 2 : respones to comments #

Patch Set 3 : Fix a minor issue, log data on event type errors. #

Total comments: 4

Patch Set 4 : Sync to trunk #

Patch Set 5 : Response to comments #

Patch Set 6 : Put load log button on its own line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -43 lines) Patch
M chrome/browser/dom_ui/net_internals_ui.cc View 1 2 3 4 7 chunks +88 lines, -5 lines 0 comments Download
M chrome/browser/net/chrome_net_log.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/net/net_log_logger.h View 1 2 3 4 2 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/net/net_log_logger.cc View 1 2 3 2 chunks +19 lines, -3 lines 0 comments Download
M chrome/browser/resources/net_internals/dataview.js View 1 2 3 4 chunks +30 lines, -1 line 0 comments Download
M chrome/browser/resources/net_internals/eventsview.js View 1 2 3 1 chunk +11 lines, -1 line 0 comments Download
M chrome/browser/resources/net_internals/index.html View 1 2 3 4 5 1 chunk +31 lines, -13 lines 0 comments Download
M chrome/browser/resources/net_internals/main.js View 1 2 3 8 chunks +157 lines, -16 lines 0 comments Download
M chrome/browser/resources/net_internals/proxyview.js View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/net_internals/tabswitcherview.js View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
mmenke
Just wanted to get your take on this. Some images of the data tab, before ...
9 years, 11 months ago (2011-01-06 21:47:41 UTC) #1
eroman
Neat, sorry for taking a while to get to this! I gave a quick first ...
9 years, 11 months ago (2011-01-12 05:57:34 UTC) #2
mmenke
On 2011/01/12 05:57:34, eroman wrote: > Neat, sorry for taking a while to get to ...
9 years, 11 months ago (2011-01-13 03:45:29 UTC) #3
eroman
LGTM. So sorry it took so long to finish this review! http://codereview.chromium.org/6025017/diff/56002/chrome/browser/dom_ui/net_internals_ui.cc File chrome/browser/dom_ui/net_internals_ui.cc (right): ...
9 years, 11 months ago (2011-01-24 20:45:55 UTC) #4
mmenke
Thanks. http://codereview.chromium.org/6025017/diff/56002/chrome/browser/dom_ui/net_internals_ui.cc File chrome/browser/dom_ui/net_internals_ui.cc (right): http://codereview.chromium.org/6025017/diff/56002/chrome/browser/dom_ui/net_internals_ui.cc#newcode472 chrome/browser/dom_ui/net_internals_ui.cc:472: dom_ui_->RegisterMessageCallback("loadLogFile", On 2011/01/24 20:45:56, eroman wrote: > nit: ...
9 years, 11 months ago (2011-01-25 20:08:13 UTC) #5
eroman
9 years, 11 months ago (2011-01-25 20:09:46 UTC) #6
LGTM

On Tue, Jan 25, 2011 at 12:08 PM, <mmenke@chromium.org> wrote:

> Thanks.
>
>
>
>
>
http://codereview.chromium.org/6025017/diff/56002/chrome/browser/dom_ui/net_i...
> File chrome/browser/dom_ui/net_internals_ui.cc (right):
>
>
>
http://codereview.chromium.org/6025017/diff/56002/chrome/browser/dom_ui/net_i...
> chrome/browser/dom_ui/net_internals_ui.cc:472:
> dom_ui_->RegisterMessageCallback("loadLogFile",
> On 2011/01/24 20:45:56, eroman wrote:
>
>> nit: can you break the line here, for consistency with the other
>> RegisterMessageCallback() lines?
>>
>
> Done.  It also violated Google style guidelines.
>
>
>
>
http://codereview.chromium.org/6025017/diff/56002/chrome/browser/net/net_log_...
> File chrome/browser/net/net_log_logger.h (right):
>
>
>
http://codereview.chromium.org/6025017/diff/56002/chrome/browser/net/net_log_...
> chrome/browser/net/net_log_logger.h:22: // If |log_path| is empty or
> file creation fails, writes to VLOG(1) using
> On 2011/01/24 20:45:56, eroman wrote:
>
>> I think this comment needs to be updated, no longer pretty-printing.
>>
>
> Done.
>
>
> http://codereview.chromium.org/6025017/
>

Powered by Google App Engine
This is Rietveld 408576698