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

Issue 11828036: First cut at UI for saving net_logs data into a temporary file on (Closed)

Created:
7 years, 11 months ago by ramant (doing other things)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, arv (Not doing code reviews), darin-cc_chromium.org, eroman, droger
Visibility:
Public.

Description

First cut at UI for saving net_logs data into a temporary file on Mobile (Android and iOS). Added a new page chrome://net-export to start/stop/send the net_log for mobile platforms. net_log entries are saved in "chrome-net-export-log.json" file created in temporary directory. Button "Start Saving (after deleting old data)" will start saving to a temporary file in "NetLog" directory in Temp directory. It deletes all the old temporary files that were in that directory before creating a new temporty file. It is a no-op if we are already saving data into a file. Button "Stop Saving Data" closes the temporary file so that it could be mailed. It is a no-op if we haven't started saving data into a file. Button "Send Data" emails the data file if a temporary file exists in "NetLog" directory. It is a no-op if there is no file. There is only a single temporary file into which we log the data. NetLog data is saved in the browser process. Logging of net_log data behaves similar to the command line option --log-net-log. If chrome://net-export is accessed in multiple tabs, action in first tab wins. If Stop is clicked in any tab, logging stops. If start is clicked in any tab, net logging starts. about:about lists chrome://net-export as one of the links. unit tests create a temporary file for each test run and they delete the file at the end of the test run. mmenke@ and/or eroman@ for chrome\browser\resources and webui changes. jar@ for net_log_temp_file changes. jhawkins@chromium.org for chrome\browser\ui\webui and chrome\browser\resources OWNERS stamp. R=jar@chromium.org, mmenke@chromium.org BUG=151212 TEST=chrome://net-export Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180026

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 58

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 48

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Total comments: 27

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Patch Set 24 : #

Patch Set 25 : #

Total comments: 31

Patch Set 26 : #

Patch Set 27 : #

Patch Set 28 : #

Patch Set 29 : #

Patch Set 30 : #

Total comments: 20

Patch Set 31 : #

Patch Set 32 : #

Patch Set 33 : #

Patch Set 34 : #

Patch Set 35 : #

Patch Set 36 : #

Patch Set 37 : #

Patch Set 38 : #

Patch Set 39 : #

Total comments: 24

Patch Set 40 : #

Patch Set 41 : #

Patch Set 42 : #

Patch Set 43 : #

Patch Set 44 : #

Patch Set 45 : #

Patch Set 46 : #

Patch Set 47 : #

Total comments: 34

Patch Set 48 : #

Total comments: 14

Patch Set 49 : #

Patch Set 50 : #

Patch Set 51 : #

Total comments: 10

Patch Set 52 : #

Patch Set 53 : #

Patch Set 54 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1052 lines, -3 lines) Patch
M build/ios/grit_whitelist.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/browser_about_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_net_log.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_net_log.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/net/net_log_logger.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/net/net_log_logger.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/net/net_log_temp_file.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 1 chunk +135 lines, -0 lines 0 comments Download
A chrome/browser/net/net_log_temp_file.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 1 chunk +156 lines, -0 lines 0 comments Download
A chrome/browser/net/net_log_temp_file_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 1 chunk +287 lines, -0 lines 0 comments Download
A chrome/browser/resources/net_export/net_export.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/browser/resources/net_export/net_export.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/resources/net_export/net_export.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 1 chunk +110 lines, -0 lines 0 comments Download
M chrome/browser/resources/web_dev_style/js_checker.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 2 chunks +8 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/net_export_ui.h View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/net_export_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 1 chunk +243 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
ramant (doing other things)
Hi Matt, Built the new WebUI as per your comments in https://codereview.chromium.org/11635023/ (somehow this CL ...
7 years, 11 months ago (2013-01-10 22:00:22 UTC) #1
mmenke
A lot of comments, but most of them are pretty minor. https://codereview.chromium.org/11828036/diff/23001/chrome/browser/net/net_log_temp_file.cc File chrome/browser/net/net_log_temp_file.cc (right): ...
7 years, 11 months ago (2013-01-11 18:31:12 UTC) #2
ramant (doing other things)
Hi Matt, Many many thanks for the detailed code review and for your time. Made ...
7 years, 11 months ago (2013-01-12 04:34:04 UTC) #3
ramant (doing other things)
https://codereview.chromium.org/11828036/diff/23001/chrome/browser/net/net_log_temp_file.cc File chrome/browser/net/net_log_temp_file.cc (right): https://codereview.chromium.org/11828036/diff/23001/chrome/browser/net/net_log_temp_file.cc#newcode188 chrome/browser/net/net_log_temp_file.cc:188: void NetLogTempFile::SendEmail(const FilePath& file_to_send) { On 2013/01/12 04:34:04, ramant ...
7 years, 11 months ago (2013-01-15 02:19:27 UTC) #4
mmenke
More mostly minor comments. I expect to sign off on this on the next round. ...
7 years, 11 months ago (2013-01-17 17:49:43 UTC) #5
ramant (doing other things)
Thanks very much for your comments. Made all the changes. https://codereview.chromium.org/11828036/diff/42024/chrome/browser/net/net_log_temp_file.h File chrome/browser/net/net_log_temp_file.h (right): https://codereview.chromium.org/11828036/diff/42024/chrome/browser/net/net_log_temp_file.h#newcode23 ...
7 years, 11 months ago (2013-01-18 04:59:52 UTC) #6
mmenke
Still don't think the tests are threadsafe. https://chromiumcodereview.appspot.com/11828036/diff/72004/chrome/browser/net/chrome_net_log.cc File chrome/browser/net/chrome_net_log.cc (right): https://chromiumcodereview.appspot.com/11828036/diff/72004/chrome/browser/net/chrome_net_log.cc#newcode48 chrome/browser/net/chrome_net_log.cc:48: net_log_temp_file_.reset(); Think ...
7 years, 11 months ago (2013-01-18 15:58:00 UTC) #7
mmenke
https://chromiumcodereview.appspot.com/11828036/diff/72004/chrome/browser/net/net_log_temp_file_unittest.cc File chrome/browser/net/net_log_temp_file_unittest.cc (right): https://chromiumcodereview.appspot.com/11828036/diff/72004/chrome/browser/net/net_log_temp_file_unittest.cc#newcode138 chrome/browser/net/net_log_temp_file_unittest.cc:138: } On 2013/01/18 15:58:00, Matt Menke wrote: > Worth ...
7 years, 11 months ago (2013-01-18 16:02:02 UTC) #8
ramant (doing other things)
Many many thanks for your comments. Would appreciate if you could take another look. -raman ...
7 years, 11 months ago (2013-01-18 23:22:33 UTC) #9
mmenke
Looks like your tests are failing on Windows. For some reason you're getting a legacy ...
7 years, 11 months ago (2013-01-23 17:40:59 UTC) #10
mmenke
Mostly just minor cleanups and suggestions on unit tests. My review slate is much cleaner ...
7 years, 11 months ago (2013-01-23 19:01:27 UTC) #11
mmenke
Sorry for all these rounds of review - most of these I should have noticed ...
7 years, 11 months ago (2013-01-23 19:05:33 UTC) #12
ramant (doing other things)
Hi Matt, Made all the changes (except one of the nits). PTAL. thanks, raman https://codereview.chromium.org/11828036/diff/80057/chrome/browser/net/net_log_temp_file.cc ...
7 years, 11 months ago (2013-01-24 03:23:55 UTC) #13
mmenke
https://codereview.chromium.org/11828036/diff/80057/chrome/browser/net/net_log_temp_file_unittest.cc File chrome/browser/net/net_log_temp_file_unittest.cc (right): https://codereview.chromium.org/11828036/diff/80057/chrome/browser/net/net_log_temp_file_unittest.cc#newcode60 chrome/browser/net/net_log_temp_file_unittest.cc:60: net_log_temp_file_->log_filename_ = net_export_log_filename.value(); On 2013/01/24 03:23:55, ramant wrote: > ...
7 years, 11 months ago (2013-01-24 03:55:34 UTC) #14
mmenke
One more thing...Should we have the tab available on desktop/iOS? I had initially thought yes, ...
7 years, 11 months ago (2013-01-24 18:07:39 UTC) #15
ramant (doing other things)
Could you please look at this change one more time? https://codereview.chromium.org/11828036/diff/89028/chrome/browser/net/net_log_temp_file.cc File chrome/browser/net/net_log_temp_file.cc (right): https://codereview.chromium.org/11828036/diff/89028/chrome/browser/net/net_log_temp_file.cc#newcode88 ...
7 years, 11 months ago (2013-01-24 21:56:49 UTC) #16
mmenke
Still want to do a final pass, particularly looking for missing tests, but only one ...
7 years, 11 months ago (2013-01-25 17:39:11 UTC) #17
ramant (doing other things)
As we had talked, added tests to test the failure clauses for EnsureInit() method. PTAL. ...
7 years, 11 months ago (2013-01-25 20:05:24 UTC) #18
mmenke
LGTM. All but the last are pretty much nits. https://codereview.chromium.org/11828036/diff/111010/chrome/browser/net/net_log_temp_file.cc File chrome/browser/net/net_log_temp_file.cc (right): https://codereview.chromium.org/11828036/diff/111010/chrome/browser/net/net_log_temp_file.cc#newcode22 chrome/browser/net/net_log_temp_file.cc:22: ...
7 years, 10 months ago (2013-01-28 21:51:40 UTC) #19
ramant (doing other things)
https://codereview.chromium.org/11828036/diff/111010/chrome/browser/net/net_log_temp_file.cc File chrome/browser/net/net_log_temp_file.cc (right): https://codereview.chromium.org/11828036/diff/111010/chrome/browser/net/net_log_temp_file.cc#newcode22 chrome/browser/net/net_log_temp_file.cc:22: if (net_log_logger_.get()) On 2013/01/28 21:51:41, Matt Menke wrote: > ...
7 years, 10 months ago (2013-01-29 04:48:36 UTC) #20
ramant (doing other things)
jhawkins@ can I get owner's rubber stamp please? thanks
7 years, 10 months ago (2013-01-29 04:51:03 UTC) #21
James Hawkins
On 2013/01/29 04:51:03, ramant wrote: > jhawkins@ can I get owner's rubber stamp please? thanks ...
7 years, 10 months ago (2013-01-29 22:43:04 UTC) #22
James Hawkins
https://codereview.chromium.org/11828036/diff/129007/chrome/browser/resources/net_export/net_export.html File chrome/browser/resources/net_export/net_export.html (right): https://codereview.chromium.org/11828036/diff/129007/chrome/browser/resources/net_export/net_export.html#newcode9 chrome/browser/resources/net_export/net_export.html:9: <style> Move styling to CSS file. https://codereview.chromium.org/11828036/diff/129007/chrome/browser/resources/net_export/net_export.html#newcode29 chrome/browser/resources/net_export/net_export.html:29: <div ...
7 years, 10 months ago (2013-01-29 22:48:34 UTC) #23
ramant (doing other things)
Many many thanks jhawkins@. Made all the changes you had suggested. PTAL. https://codereview.chromium.org/11828036/diff/129007/chrome/browser/resources/net_export/net_export.html File chrome/browser/resources/net_export/net_export.html ...
7 years, 10 months ago (2013-01-30 02:35:42 UTC) #24
James Hawkins
https://codereview.chromium.org/11828036/diff/130058/chrome/browser/resources/net_export/net_export.html File chrome/browser/resources/net_export/net_export.html (right): https://codereview.chromium.org/11828036/diff/130058/chrome/browser/resources/net_export/net_export.html#newcode9 chrome/browser/resources/net_export/net_export.html:9: nit: Remove blank line. https://codereview.chromium.org/11828036/diff/130058/chrome/browser/resources/net_export/net_export.html#newcode15 chrome/browser/resources/net_export/net_export.html:15: <button id=export-view-start-data>Start Logging ...
7 years, 10 months ago (2013-01-31 18:58:46 UTC) #25
ramant (doing other things)
Hi James Hawkins, Made all the changes you have suggested. PTAL. https://codereview.chromium.org/11828036/diff/130058/chrome/browser/resources/net_export/net_export.html File chrome/browser/resources/net_export/net_export.html (right): ...
7 years, 10 months ago (2013-01-31 19:58:26 UTC) #26
James Hawkins
lgtm
7 years, 10 months ago (2013-01-31 20:00:16 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/11828036/127037
7 years, 10 months ago (2013-01-31 21:14:32 UTC) #28
commit-bot: I haz the power
Presubmit check for 11828036-127037 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 10 months ago (2013-01-31 21:14:41 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/11828036/132033
7 years, 10 months ago (2013-01-31 21:27:01 UTC) #30
commit-bot: I haz the power
7 years, 10 months ago (2013-02-01 01:11:46 UTC) #31
Message was sent while issue was closed.
Change committed as 180026

Powered by Google App Engine
This is Rietveld 408576698