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

Issue 976483002: Add ability for NetLogLogger to gather data from more than just NetLog (Closed)

Created:
5 years, 9 months ago by mmenke
Modified:
5 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, cbentzel+watch_chromium.org, zea+watch_chromium.org, jam, eroman, darin-cc_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org, mef
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ability for NetLogLogger to gather data from more than just NetLog This includes data from other net-internals tabs and from pending URLRequests. This also changes the semantices of NetLogLogger so that it takes the input file in StartObserving and closes it in StopObserving, to make thread restrictions when using the new capability a little simpler. This CL also fixes a number of cases where StopObserving either wasn't being called, or was being called incorrectly by consumers. BUG=426918 Committed: https://crrev.com/853ed15d6d080b116bbc496de3302276f3668f1f Cr-Commit-Position: refs/heads/master@{#320745}

Patch Set 1 #

Patch Set 2 : Rework API #

Patch Set 3 : Fix Stuff #

Patch Set 4 : Fix ChromeOS #

Patch Set 5 : Fix comments #

Total comments: 3

Patch Set 6 : Response to comments, fix removal calls #

Patch Set 7 : Fix Cronet #

Patch Set 8 : Fix Cronet (Really!) #

Total comments: 4

Patch Set 9 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -131 lines) Patch
M chrome/browser/extensions/api/log_private/log_private_api.h View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc View 1 2 3 4 5 4 chunks +19 lines, -20 lines 0 comments Download
M chrome/browser/net/chrome_net_log.cc View 1 2 3 4 5 4 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/net/net_log_temp_file.cc View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -5 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -6 lines 0 comments Download
M components/cronet/android/url_request_context_adapter.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -5 lines 0 comments Download
M content/shell/browser/shell_net_log.cc View 1 2 3 4 5 4 chunks +14 lines, -9 lines 0 comments Download
M google_apis/gcm/tools/mcs_probe.cc View 1 2 3 4 5 6 3 chunks +9 lines, -7 lines 0 comments Download
M net/base/net_log_logger.h View 1 2 3 4 5 2 chunks +28 lines, -17 lines 0 comments Download
M net/base/net_log_logger.cc View 1 2 3 4 5 3 chunks +55 lines, -22 lines 0 comments Download
M net/base/net_log_logger_unittest.cc View 1 2 3 4 5 7 chunks +125 lines, -21 lines 0 comments Download

Messages

Total messages: 35 (14 generated)
mmenke
Eric: PTAL Misha: FYI. This should get us information about hung/active requests, proxy config, socket ...
5 years, 9 months ago (2015-03-03 18:27:25 UTC) #5
mmenke
https://codereview.chromium.org/976483002/diff/140001/net/base/net_log_logger.h File net/base/net_log_logger.h (right): https://codereview.chromium.org/976483002/diff/140001/net/base/net_log_logger.h#newcode53 net/base/net_log_logger.h:53: net::URLRequestContext* url_request_context); One downside of this approach is that ...
5 years, 9 months ago (2015-03-03 18:33:58 UTC) #6
eroman
lgtm https://codereview.chromium.org/976483002/diff/140001/net/base/net_log_logger.h File net/base/net_log_logger.h (right): https://codereview.chromium.org/976483002/diff/140001/net/base/net_log_logger.h#newcode48 net/base/net_log_logger.h:48: // StopObserving must be called on the context's ...
5 years, 9 months ago (2015-03-05 19:25:58 UTC) #7
mmenke
I also noticed that we were using NetLog::RemoveObserver instead of NetLogLogger::StopObserving in a bunch of ...
5 years, 9 months ago (2015-03-05 22:04:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976483002/220001
5 years, 9 months ago (2015-03-09 14:48:34 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/48234)
5 years, 9 months ago (2015-03-09 15:06:27 UTC) #14
mmenke
On 2015/03/09 15:06:27, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 9 months ago (2015-03-09 15:10:46 UTC) #15
mmenke
[+kalman]: Please review chrome/browser/extensions/api/log_private/ [+pfeldman]: Please review content/shell/browser/shell_net_log.cc. [+zea]: Please review google_apis/gcm/tools/mcs_probe.cc I'm just modifying ...
5 years, 9 months ago (2015-03-09 20:10:18 UTC) #17
not at google - send to devlin
lgtm https://codereview.chromium.org/976483002/diff/220001/chrome/browser/extensions/api/log_private/log_private_api.h File chrome/browser/extensions/api/log_private/log_private_api.h (right): https://codereview.chromium.org/976483002/diff/220001/chrome/browser/extensions/api/log_private/log_private_api.h#newcode94 chrome/browser/extensions/api/log_private/log_private_api.h:94: const std::string& owner_extension_id, base::ScopedFILE* file); FILE!!!!!!!!!
5 years, 9 months ago (2015-03-09 21:26:25 UTC) #18
mmenke
https://codereview.chromium.org/976483002/diff/220001/chrome/browser/extensions/api/log_private/log_private_api.h File chrome/browser/extensions/api/log_private/log_private_api.h (right): https://codereview.chromium.org/976483002/diff/220001/chrome/browser/extensions/api/log_private/log_private_api.h#newcode94 chrome/browser/extensions/api/log_private/log_private_api.h:94: const std::string& owner_extension_id, base::ScopedFILE* file); On 2015/03/09 21:26:25, kalman ...
5 years, 9 months ago (2015-03-09 21:59:30 UTC) #19
not at google - send to devlin
https://codereview.chromium.org/976483002/diff/220001/chrome/browser/extensions/api/log_private/log_private_api.h File chrome/browser/extensions/api/log_private/log_private_api.h (right): https://codereview.chromium.org/976483002/diff/220001/chrome/browser/extensions/api/log_private/log_private_api.h#newcode94 chrome/browser/extensions/api/log_private/log_private_api.h:94: const std::string& owner_extension_id, base::ScopedFILE* file); On 2015/03/09 21:59:30, mmenke ...
5 years, 9 months ago (2015-03-09 22:03:38 UTC) #20
mmenke
https://codereview.chromium.org/976483002/diff/220001/chrome/browser/extensions/api/log_private/log_private_api.h File chrome/browser/extensions/api/log_private/log_private_api.h (right): https://codereview.chromium.org/976483002/diff/220001/chrome/browser/extensions/api/log_private/log_private_api.h#newcode94 chrome/browser/extensions/api/log_private/log_private_api.h:94: const std::string& owner_extension_id, base::ScopedFILE* file); On 2015/03/09 22:03:38, kalman ...
5 years, 9 months ago (2015-03-09 22:21:43 UTC) #21
mmenke
pfeldman: Ping! zea: Ping!
5 years, 9 months ago (2015-03-11 17:05:00 UTC) #22
mmenke
[+tim]: Please review google_apis/gcm/tools/mcs_probe.cc. [+mkwst]: Please review content/shell/browser/shell_net_log.cc.
5 years, 9 months ago (2015-03-13 16:56:59 UTC) #24
Nicolas Zea
gcm LGTM
5 years, 9 months ago (2015-03-13 16:59:04 UTC) #25
pfeldman
shell lgtm
5 years, 9 months ago (2015-03-16 13:36:16 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976483002/220001
5 years, 9 months ago (2015-03-16 16:05:16 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/5682) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 9 months ago (2015-03-16 16:08:33 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976483002/240001
5 years, 9 months ago (2015-03-16 16:44:55 UTC) #33
commit-bot: I haz the power
Committed patchset #9 (id:240001)
5 years, 9 months ago (2015-03-16 17:38:56 UTC) #34
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 17:39:22 UTC) #35
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/853ed15d6d080b116bbc496de3302276f3668f1f
Cr-Commit-Position: refs/heads/master@{#320745}

Powered by Google App Engine
This is Rietveld 408576698