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

Issue 2738813004: [Cronet] Write effective experimental options to NetLog (Closed)

Created:
3 years, 9 months ago by xunjieli
Modified:
3 years, 9 months ago
Reviewers:
mgersh, kapishnikov
CC:
chromium-reviews, cbentzel+watch_chromium.org, agrieve+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Cronet] Write effective experimental options to NetLog This CL does the following: (1) Have a warning in Experimental Options parsing code if there is an unrecognized option. (2) Make cronet_url_request_context_adapter use the new FileNetLogObserver which allows writing polled data. (3) Put the effective experimental options in the polled data. BUG=584806, 699567 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2738813004 Cr-Original-Commit-Position: refs/heads/master@{#457158} Committed: https://chromium.googlesource.com/chromium/src/+/3c275e0a2333511ec831b3c396dc9f38a161a8c6 Review-Url: https://codereview.chromium.org/2738813004 Cr-Commit-Position: refs/heads/master@{#457550} Committed: https://chromium.googlesource.com/chromium/src/+/d67295ebc58b086ac493e26fe8e4498c09ffc21e

Patch Set 1 #

Patch Set 2 : self #

Total comments: 2

Patch Set 3 : Address mgersh comment #

Total comments: 6

Patch Set 4 : preserve signature #

Total comments: 2

Patch Set 5 : Change LOG(ERROR) to LOG(WARNING) #

Patch Set 6 : Fix use-after-free bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -211 lines) Patch
M components/cronet/android/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.h View 1 2 3 5 chunks +15 lines, -15 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 2 3 9 chunks +54 lines, -39 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java View 1 2 3 4 chunks +0 lines, -14 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/ExperimentalOptionsTest.java View 1 chunk +44 lines, -0 lines 0 comments Download
M components/cronet/url_request_context_config.h View 3 chunks +5 lines, -1 line 0 comments Download
M components/cronet/url_request_context_config.cc View 1 2 3 4 5 5 chunks +176 lines, -141 lines 0 comments Download
M components/cronet/url_request_context_config_unittest.cc View 3 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 39 (24 generated)
xunjieli
PTAL.
3 years, 9 months ago (2017-03-08 19:52:14 UTC) #3
mgersh
lgtm, and sorry for the long delay. Thanks for fixing this! https://codereview.chromium.org/2738813004/diff/20001/components/cronet/android/cronet_url_request_context_adapter.h File components/cronet/android/cronet_url_request_context_adapter.h (right): ...
3 years, 9 months ago (2017-03-13 18:31:52 UTC) #6
xunjieli
Thanks, Miriam. Andrei: Do you want to take a look? https://codereview.chromium.org/2738813004/diff/20001/components/cronet/android/cronet_url_request_context_adapter.h File components/cronet/android/cronet_url_request_context_adapter.h (right): https://codereview.chromium.org/2738813004/diff/20001/components/cronet/android/cronet_url_request_context_adapter.h#newcode87 ...
3 years, 9 months ago (2017-03-14 13:22:25 UTC) #7
kapishnikov
Sorry Helen for the late review. It looks good although I am not very familiar ...
3 years, 9 months ago (2017-03-14 14:37:09 UTC) #8
xunjieli
https://codereview.chromium.org/2738813004/diff/40001/components/cronet/android/cronet_url_request_context_adapter.cc File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2738813004/diff/40001/components/cronet/android/cronet_url_request_context_adapter.cc#newcode1011 components/cronet/android/cronet_url_request_context_adapter.cc:1011: base::ScopedFILE file(base::OpenFile(file_path, "w")); On 2017/03/14 14:37:09, kapishnikov wrote: > ...
3 years, 9 months ago (2017-03-14 19:03:06 UTC) #9
kapishnikov
https://codereview.chromium.org/2738813004/diff/40001/components/cronet/url_request_context_config.cc File components/cronet/url_request_context_config.cc (right): https://codereview.chromium.org/2738813004/diff/40001/components/cronet/url_request_context_config.cc#newcode299 components/cronet/url_request_context_config.cc:299: LOG(ERROR) << "Unrecognized Cronet experimental option \"" << it.key() ...
3 years, 9 months ago (2017-03-14 22:39:07 UTC) #14
xunjieli
https://codereview.chromium.org/2738813004/diff/40001/components/cronet/url_request_context_config.cc File components/cronet/url_request_context_config.cc (right): https://codereview.chromium.org/2738813004/diff/40001/components/cronet/url_request_context_config.cc#newcode299 components/cronet/url_request_context_config.cc:299: LOG(ERROR) << "Unrecognized Cronet experimental option \"" << it.key() ...
3 years, 9 months ago (2017-03-14 23:10:46 UTC) #15
kapishnikov
lgtm
3 years, 9 months ago (2017-03-15 05:01:55 UTC) #16
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/2738813004/80001
3 years, 9 months ago (2017-03-15 19:06:27 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/3c275e0a2333511ec831b3c396dc9f38a161a8c6
3 years, 9 months ago (2017-03-15 19:12:06 UTC) #26
cblume
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2751113004/ by cblume@chromium.org. ...
3 years, 9 months ago (2017-03-16 05:14:14 UTC) #27
xunjieli
Miriam and Andrei: PTAL at diff btw #5 and #6. I thought DictionaryValue supports Remove() ...
3 years, 9 months ago (2017-03-16 17:44:06 UTC) #29
kapishnikov
lgtm
3 years, 9 months ago (2017-03-16 19:55:33 UTC) #30
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/2738813004/100001
3 years, 9 months ago (2017-03-16 20:34:29 UTC) #36
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 21:06:34 UTC) #39
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/d67295ebc58b086ac493e26fe8e4...

Powered by Google App Engine
This is Rietveld 408576698