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

Issue 2416473004: Add functionality for embedders to configure NQE (Closed)

Created:
4 years, 2 months ago by tbansal1
Modified:
3 years, 5 months ago
Reviewers:
mgersh, RyanSturm
CC:
chromium-reviews, cbentzel+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add functionality for embedders to configure NQE Embedders can specify Network Quality Estimator's (NQE) configuration params via experimental options JSON string. These params are passed to NQE's constructor. This way the embedder can configure NQE similar to how Chrome currently does it using field trial params. The CL also makes |experimental_options| member in the UrlRequestContextContextConfig as a private member since |effective_experimental_options| captures similar information, and it is confusing to have 2 public members which capture similar information. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.android:android_cronet BUG=638308 Review-Url: https://codereview.chromium.org/2416473004 Cr-Commit-Position: refs/heads/master@{#484120} Committed: https://chromium.googlesource.com/chromium/src/+/e11aa36c4a842d64337c224824963527d5338847

Patch Set 1 : ps #

Patch Set 2 : rebased #

Total comments: 5

Patch Set 3 : ps #

Total comments: 30

Patch Set 4 : rebased, mgersh comments #

Patch Set 5 : rebased, mgersh comments #

Total comments: 8

Patch Set 6 : mgersh comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -40 lines) Patch
M components/cronet/android/cronet_url_request_context_adapter.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 2 3 4 5 3 chunks +26 lines, -13 lines 0 comments Download
M components/cronet/android/test/cronet_url_request_context_config_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/NQETest.java View 1 2 3 4 5 5 chunks +153 lines, -6 lines 0 comments Download
M components/cronet/url_request_context_config.h View 1 2 3 4 4 chunks +19 lines, -8 lines 0 comments Download
M components/cronet/url_request_context_config.cc View 1 2 3 4 5 4 chunks +42 lines, -2 lines 0 comments Download
M net/nqe/network_quality_estimator_params.h View 1 2 3 5 chunks +24 lines, -5 lines 0 comments Download
M net/nqe/network_quality_estimator_params.cc View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 161 (138 generated)
tbansal1
xunjieli: ptal. I had to update the include order in CronetUrlRequestContextTest.java because the rules for ...
4 years, 2 months ago (2016-10-13 23:59:04 UTC) #27
xunjieli
+mgersh@. Miriam, could you take this? it might be good to get more familiarity with ...
4 years, 2 months ago (2016-10-14 13:26:42 UTC) #30
mgersh
This API seems like it's doing a similar thing to setExperimentalOptions() (https://cs.chromium.org/chromium/src/components/cronet/android/api/src/org/chromium/net/CronetEngine.java?sq=package:chromium&l=670), and it would ...
4 years, 2 months ago (2016-10-14 14:56:57 UTC) #31
tbansal1
xunjieli, mgersh: ptal a high level look. I will land this after the refactor in ...
3 years, 7 months ago (2017-04-29 00:09:56 UTC) #46
mgersh
High-level idea looks good, ping when you want a full review.
3 years, 7 months ago (2017-05-01 14:46:14 UTC) #51
tbansal1
mgersh: ptal. Thanks.
3 years, 7 months ago (2017-05-02 00:29:32 UTC) #54
xunjieli
https://codereview.chromium.org/2416473004/diff/170001/components/cronet/android/cronet_url_request_context_adapter.cc File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2416473004/diff/170001/components/cronet/android/cronet_url_request_context_adapter.cc#newcode688 components/cronet/android/cronet_url_request_context_adapter.cc:688: kNetworkQualityEstimatorFieldTrialName, &nqe_args)) { Can we move the parsing of ...
3 years, 7 months ago (2017-05-02 17:56:34 UTC) #57
mgersh
https://codereview.chromium.org/2416473004/diff/170001/components/cronet/android/cronet_url_request_context_adapter.cc File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2416473004/diff/170001/components/cronet/android/cronet_url_request_context_adapter.cc#newcode679 components/cronet/android/cronet_url_request_context_adapter.cc:679: const char kNetworkQualityEstimatorFieldTrialName[] = Instead of duplicating this here, ...
3 years, 7 months ago (2017-05-02 18:06:49 UTC) #58
tbansal1
ptal. Thanks. Sorry for the delay. https://codereview.chromium.org/2416473004/diff/170001/components/cronet/android/cronet_url_request_context_adapter.cc File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2416473004/diff/170001/components/cronet/android/cronet_url_request_context_adapter.cc#newcode679 components/cronet/android/cronet_url_request_context_adapter.cc:679: const char kNetworkQualityEstimatorFieldTrialName[] ...
3 years, 5 months ago (2017-06-28 14:19:54 UTC) #106
mgersh
Thanks for the update! https://codereview.chromium.org/2416473004/diff/350001/components/cronet/android/cronet_url_request_context_adapter.cc File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2416473004/diff/350001/components/cronet/android/cronet_url_request_context_adapter.cc#newcode683 components/cronet/android/cronet_url_request_context_adapter.cc:683: config->nqe_params->DetachFromThread(); This shouldn't be necessary, ...
3 years, 5 months ago (2017-06-28 18:26:50 UTC) #107
tbansal1
mgersh: ptal. Thanks. https://codereview.chromium.org/2416473004/diff/350001/components/cronet/android/cronet_url_request_context_adapter.cc File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2416473004/diff/350001/components/cronet/android/cronet_url_request_context_adapter.cc#newcode683 components/cronet/android/cronet_url_request_context_adapter.cc:683: config->nqe_params->DetachFromThread(); On 2017/06/28 18:26:50, mgersh wrote: ...
3 years, 5 months ago (2017-06-29 01:17:59 UTC) #109
xunjieli
Removing myself and deferring to Miriam.
3 years, 5 months ago (2017-06-29 12:49:55 UTC) #120
tbansal1
mgersh: ptal. Thanks. The testbots are now all green.
3 years, 5 months ago (2017-06-29 16:17:31 UTC) #129
tbansal1
mgersh: ptal. Thanks. The testbots are now all green.
3 years, 5 months ago (2017-06-29 16:17:35 UTC) #130
mgersh
Cool, almost there. https://codereview.chromium.org/2416473004/diff/350001/components/cronet/android/cronet_url_request_context_adapter.cc File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2416473004/diff/350001/components/cronet/android/cronet_url_request_context_adapter.cc#newcode790 components/cronet/android/cronet_url_request_context_adapter.cc:790: !config->storage_path.empty()) { On 2017/06/29 01:17:58, tbansal1 ...
3 years, 5 months ago (2017-06-29 19:02:32 UTC) #131
tbansal1
mgersh: ptal. Thanks. https://codereview.chromium.org/2416473004/diff/350001/components/cronet/android/cronet_url_request_context_adapter.cc File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2416473004/diff/350001/components/cronet/android/cronet_url_request_context_adapter.cc#newcode790 components/cronet/android/cronet_url_request_context_adapter.cc:790: !config->storage_path.empty()) { On 2017/06/29 19:02:31, mgersh ...
3 years, 5 months ago (2017-06-29 22:45:05 UTC) #144
mgersh
lgtm, and thanks for doing this!
3 years, 5 months ago (2017-06-30 14:35:53 UTC) #145
tbansal1
ryansturm: ptal at net/nqe/. Thanks.
3 years, 5 months ago (2017-06-30 15:26:31 UTC) #147
RyanSturm
net/nqe:lgtm
3 years, 5 months ago (2017-06-30 21:03:16 UTC) #148
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/2416473004/470001
3 years, 5 months ago (2017-06-30 21:22:11 UTC) #150
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/480563)
3 years, 5 months ago (2017-06-30 22:48:32 UTC) #152
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/2416473004/470001
3 years, 5 months ago (2017-07-04 15:55:55 UTC) #158
commit-bot: I haz the power
3 years, 5 months ago (2017-07-04 15:59:56 UTC) #161
Message was sent while issue was closed.
Committed patchset #6 (id:470001) as
https://chromium.googlesource.com/chromium/src/+/e11aa36c4a842d64337c22482496...

Powered by Google App Engine
This is Rietveld 408576698