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

Issue 2944043002: Add NetLog events for HttpServerPropertiesManager (Closed)

Created:
3 years, 6 months ago by xunjieli
Modified:
3 years, 6 months ago
Reviewers:
droger, mmenke, Zhongyi Shi
CC:
chromium-reviews, cbentzel+watch_chromium.org, bnc+watch_chromium.org, eroman, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add NetLog events for HttpServerPropertiesManager This CL adds NetLog events for HttpServerPropertiesManager. (1) HTTP_SERVER_PROPERTIES_INITIALIZATION This is emitted when initialization starts and finishes. This is useful to know if server information is used in making network requests. (2) HTTP_SERVER_PROPERTIES_UPDATE_CACHE This is emitted when we are populating the in-memory HttpServerProperties from the on-disk version. (2) HTTP_SERVER_PROPERTIES_UPDATE_PREFS This is emitted when we are persisting the in-memory HttpServerProperties to disk. A sample NetLog: https://drive.google.com/a/chromium.org/file/d/0Bw0C8-TgzJfsVHVmaTJacjNlQzg/view?usp=sharing BUG=718576 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2944043002 Cr-Commit-Position: refs/heads/master@{#481267} Committed: https://chromium.googlesource.com/chromium/src/+/cb70779863bf9dfe419601a6de536c336feaf591

Patch Set 1 #

Patch Set 2 : self #

Patch Set 3 : fix ios #

Total comments: 6

Patch Set 4 : fix ios attempt 2 #

Patch Set 5 : address zhongyi@ comment #

Patch Set 6 : fix ios #

Patch Set 7 : fix compile #

Total comments: 3

Patch Set 8 : Add parameters in net_log_event_type_list.h #

Total comments: 2

Patch Set 9 : address droger comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -13 lines) Patch
M chrome/browser/net/http_server_properties_manager_factory.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/net/http_server_properties_manager_factory.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M ios/chrome/browser/net/http_server_properties_manager_factory.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M ios/chrome/browser/net/http_server_properties_manager_factory.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M net/http/http_server_properties_manager.h View 3 chunks +5 lines, -1 line 0 comments Download
M net/http/http_server_properties_manager.cc View 1 2 3 4 5 6 6 chunks +19 lines, -2 lines 0 comments Download
M net/http/http_server_properties_manager_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/log/net_log_event_type_list.h View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
M net/log/net_log_source_type_list.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 42 (28 generated)
xunjieli
Matt: PTAL at chrome/browser/profiles/profile_impl_io_data.cc Cherie: PTAL at the rest Thank you.
3 years, 6 months ago (2017-06-19 17:23:26 UTC) #5
mmenke
On 2017/06/19 17:23:26, xunjieli wrote: > Matt: PTAL at chrome/browser/profiles/profile_impl_io_data.cc > Cherie: PTAL at the ...
3 years, 6 months ago (2017-06-19 17:48:51 UTC) #10
Zhongyi Shi
Mostly looks good, I am on bug triage today and slowly responding to incoming code ...
3 years, 6 months ago (2017-06-19 19:50:25 UTC) #15
xunjieli
Thanks, PTAL. https://codereview.chromium.org/2944043002/diff/40001/net/http/http_server_properties_manager.cc File net/http/http_server_properties_manager.cc (right): https://codereview.chromium.org/2944043002/diff/40001/net/http/http_server_properties_manager.cc#newcode73 net/http/http_server_properties_manager.cc:73: return std::move(dict); On 2017/06/19 19:50:24, Zhongyi Shi ...
3 years, 6 months ago (2017-06-19 20:09:32 UTC) #16
xunjieli
+droger@: PTAL at ios/chrome/* Thank you.
3 years, 6 months ago (2017-06-19 20:33:43 UTC) #18
Zhongyi Shi
Back from the QUIC merge rotation and Network triage. Sorry about the delay. https://codereview.chromium.org/2944043002/diff/40001/net/log/net_log_event_type_list.h File ...
3 years, 6 months ago (2017-06-20 20:00:53 UTC) #23
xunjieli
https://codereview.chromium.org/2944043002/diff/120001/net/http/http_server_properties_manager.cc File net/http/http_server_properties_manager.cc (right): https://codereview.chromium.org/2944043002/diff/120001/net/http/http_server_properties_manager.cc#newcode1070 net/http/http_server_properties_manager.cc:1070: base::Bind(&NetLogCallback, http_server_properties_dict)); On 2017/06/20 20:00:53, Zhongyi Shi wrote: > ...
3 years, 6 months ago (2017-06-20 20:19:08 UTC) #24
Zhongyi Shi
lgtm https://codereview.chromium.org/2944043002/diff/120001/net/http/http_server_properties_manager.cc File net/http/http_server_properties_manager.cc (right): https://codereview.chromium.org/2944043002/diff/120001/net/http/http_server_properties_manager.cc#newcode1070 net/http/http_server_properties_manager.cc:1070: base::Bind(&NetLogCallback, http_server_properties_dict)); On 2017/06/20 20:19:08, xunjieli wrote: > ...
3 years, 6 months ago (2017-06-20 21:38:48 UTC) #25
xunjieli
Thank you for the review. droger@: PTAL.
3 years, 6 months ago (2017-06-20 21:56:01 UTC) #26
droger
Why are you passing null on iOS? See suggestion below. https://codereview.chromium.org/2944043002/diff/140001/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm File ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm (right): https://codereview.chromium.org/2944043002/diff/140001/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm#newcode162 ...
3 years, 6 months ago (2017-06-21 16:28:55 UTC) #31
xunjieli
Thank you. PTAL. https://codereview.chromium.org/2944043002/diff/140001/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm File ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm (right): https://codereview.chromium.org/2944043002/diff/140001/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm#newcode162 ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm:162: /*net_log=*/nullptr); On 2017/06/21 16:28:55, droger wrote: ...
3 years, 6 months ago (2017-06-21 16:38:28 UTC) #32
droger
lgtm
3 years, 6 months ago (2017-06-21 16:41:26 UTC) #33
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/2944043002/160001
3 years, 6 months ago (2017-06-21 17:11:23 UTC) #39
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 19:12:25 UTC) #42
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/cb70779863bf9dfe419601a6de53...

Powered by Google App Engine
This is Rietveld 408576698