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

Issue 2146563002: Expose effective connection type to Cronet (Closed)

Created:
4 years, 5 months ago by tbansal1
Modified:
4 years, 4 months ago
Reviewers:
RyanSturm, Nico, xunjieli
CC:
chromium-reviews, cbentzel+watch_chromium.org, pauljensen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose effective connection type to Cronet CronetURLContextAdapter registers as an Effective Connection Type (ECT) Observer. When it receives notifications on network thread about changes in ECT, it passes them to Java land where ECT is stored in a guarded variable. ECT is computed using transport RTT and downlink bandwidth. This CL also adds default transport RTT thresholds for different effective connection types so that NQE can compute ECT when thresholds have not been specified using field trial params (as is the case for Cronet). BUG=625305 Committed: https://crrev.com/16cad789693aa8032dec86a8585e0dcec5f6124e Cr-Commit-Position: refs/heads/master@{#409624}

Patch Set 1 : Patch #

Total comments: 4

Patch Set 2 : Updated comments #

Total comments: 2

Patch Set 3 : Rebased, addressed Paul comments #

Total comments: 8

Patch Set 4 : Addressed xunjieli comments #

Total comments: 4

Patch Set 5 : Rebased #

Patch Set 6 : Addressed comments (added periods) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -6 lines) Patch
M components/cronet/android/BUILD.gn View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
M components/cronet/android/api/src/org/chromium/net/CronetEngine.java View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
A components/cronet/android/api/src/org/chromium/net/EffectiveConnectionType.java View 1 2 3 4 5 1 chunk +110 lines, -0 lines 0 comments Download
M components/cronet/android/api/src/org/chromium/net/JavaCronetEngine.java View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.h View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 2 4 chunks +21 lines, -3 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java View 1 2 3 4 4 chunks +31 lines, -0 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/CronetUrlRequestContextTest.java View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/QuicTest.java View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M net/nqe/effective_connection_type.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M net/nqe/network_quality_estimator.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 47 (21 generated)
tbansal1
ryansturm: PTAL at * before I pass this on to cronet OWNERS. Thanks!
4 years, 5 months ago (2016-07-12 18:33:22 UTC) #5
RyanSturm
lgtm % a nit https://codereview.chromium.org/2146563002/diff/40001/net/nqe/network_quality_estimator.cc File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2146563002/diff/40001/net/nqe/network_quality_estimator.cc#newcode330 net/nqe/network_quality_estimator.cc:330: base::TimeDelta::FromMilliseconds(1870), nit: Can you move ...
4 years, 5 months ago (2016-07-12 19:57:55 UTC) #7
tbansal1
xunjieli: ptal. Thanks. https://codereview.chromium.org/2146563002/diff/40001/net/nqe/network_quality_estimator.cc File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2146563002/diff/40001/net/nqe/network_quality_estimator.cc#newcode330 net/nqe/network_quality_estimator.cc:330: base::TimeDelta::FromMilliseconds(1870), On 2016/07/12 19:57:55, RyanSturm wrote: ...
4 years, 5 months ago (2016-07-12 20:32:25 UTC) #9
RyanSturm
https://codereview.chromium.org/2146563002/diff/40001/net/nqe/network_quality_estimator.cc File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2146563002/diff/40001/net/nqe/network_quality_estimator.cc#newcode330 net/nqe/network_quality_estimator.cc:330: base::TimeDelta::FromMilliseconds(1870), On 2016/07/12 20:32:25, tbansal1 wrote: > On 2016/07/12 ...
4 years, 5 months ago (2016-07-12 20:44:48 UTC) #10
tbansal1
https://codereview.chromium.org/2146563002/diff/40001/net/nqe/network_quality_estimator.cc File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2146563002/diff/40001/net/nqe/network_quality_estimator.cc#newcode330 net/nqe/network_quality_estimator.cc:330: base::TimeDelta::FromMilliseconds(1870), On 2016/07/12 20:44:47, RyanSturm wrote: > On 2016/07/12 ...
4 years, 5 months ago (2016-07-13 05:52:03 UTC) #11
xunjieli
Do we have a design doc for this? If not, can we make one and ...
4 years, 5 months ago (2016-07-13 13:54:17 UTC) #12
tbansal1
On 2016/07/13 13:54:17, xunjieli wrote: > Do we have a design doc for this? If ...
4 years, 5 months ago (2016-07-13 17:59:41 UTC) #13
xunjieli
On 2016/07/13 17:59:41, tbansal1 wrote: > On 2016/07/13 13:54:17, xunjieli wrote: > > Do we ...
4 years, 5 months ago (2016-07-13 18:04:24 UTC) #15
pauljensen
https://codereview.chromium.org/2146563002/diff/60001/components/cronet/android/api/src/org/chromium/net/CronetEngine.java File components/cronet/android/api/src/org/chromium/net/CronetEngine.java (right): https://codereview.chromium.org/2146563002/diff/60001/components/cronet/android/api/src/org/chromium/net/CronetEngine.java#newcode905 components/cronet/android/api/src/org/chromium/net/CronetEngine.java:905: * //net/nqe/network_quality_estimator.h. I think there are a few issues ...
4 years, 5 months ago (2016-07-18 13:42:17 UTC) #16
tbansal1
xunjieli: PTAL. Thanks. I moved Paul to cc' since he is on vacation.
4 years, 4 months ago (2016-08-01 20:57:36 UTC) #19
tbansal1
https://codereview.chromium.org/2146563002/diff/60001/components/cronet/android/api/src/org/chromium/net/CronetEngine.java File components/cronet/android/api/src/org/chromium/net/CronetEngine.java (right): https://codereview.chromium.org/2146563002/diff/60001/components/cronet/android/api/src/org/chromium/net/CronetEngine.java#newcode905 components/cronet/android/api/src/org/chromium/net/CronetEngine.java:905: * //net/nqe/network_quality_estimator.h. On 2016/07/18 13:42:17, pauljensen wrote: > I ...
4 years, 4 months ago (2016-08-01 20:58:09 UTC) #20
xunjieli
Can you send out the design doc to cronet@? I didn't see that design doc ...
4 years, 4 months ago (2016-08-01 21:25:09 UTC) #21
tbansal1
xunjieli: PTAL. Since this is a hidden API, the risk is low. We can always ...
4 years, 4 months ago (2016-08-02 19:03:11 UTC) #25
xunjieli
I still think we should avoid duplicating the generated Java files. I will look into ...
4 years, 4 months ago (2016-08-03 16:54:13 UTC) #26
tbansal1
https://codereview.chromium.org/2146563002/diff/120002/components/cronet/android/api/src/org/chromium/net/EffectiveConnectionType.java File components/cronet/android/api/src/org/chromium/net/EffectiveConnectionType.java (right): https://codereview.chromium.org/2146563002/diff/120002/components/cronet/android/api/src/org/chromium/net/EffectiveConnectionType.java#newcode56 components/cronet/android/api/src/org/chromium/net/EffectiveConnectionType.java:56: * faster 2G connection On 2016/08/03 16:54:13, xunjieli wrote: ...
4 years, 4 months ago (2016-08-03 17:26:19 UTC) #28
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/2146563002/200001
4 years, 4 months ago (2016-08-03 21:12:31 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:200001)
4 years, 4 months ago (2016-08-03 21:18:49 UTC) #36
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/16cad789693aa8032dec86a8585e0dcec5f6124e Cr-Commit-Position: refs/heads/master@{#409624}
4 years, 4 months ago (2016-08-03 21:21:54 UTC) #38
Nico
I'm seeing stacks in this file on some bots: https://build.chromium.org/p/chromium.fyi/builders/ClangToTWin%28dbg%29%20tester/builds/2914/steps/browser_tests%20on%20Windows-7-SP1/logs/CrSettingsMainPageTest.All [4960:4152:0803/192101:FATAL:network_quality_estimator.cc(805)] Check failed: !load_timing_info.send_start.is_null() && ...
4 years, 4 months ago (2016-08-04 03:38:51 UTC) #40
chromium-reviews
thakis@, thanks for reporting. This should be fixed now ( https://bugs.chromium.org/p/chromium/issues/detail?id=634240). On Wed, Aug 3, ...
4 years, 4 months ago (2016-08-04 17:13:20 UTC) #41
Nico
Thanks for the change, but the test is still failing, just with a different error: ...
4 years, 4 months ago (2016-08-04 19:21:56 UTC) #42
tbansal1
On 2016/08/04 19:21:56, Nico wrote: > Thanks for the change, but the test is still ...
4 years, 4 months ago (2016-08-04 19:32:14 UTC) #43
Nico
On https://build.chromium.org/p/chromium.fyi/builders/ClangToTWin%28dbg%29%20tester/builds/2919, click on "CrSettingsMainPageTest.All" (leading here: https://build.chromium.org/p/chromium.fyi/builders/ClangToTWin%28dbg%29%20tester/builds/2919/steps/browser_tests%20on%20Windows-7-SP1/logs/CrSettingsMainPageTest.All ) The test has been failing consistently ...
4 years, 4 months ago (2016-08-04 19:34:14 UTC) #44
tbansal1
On 2016/08/04 19:34:14, Nico wrote: > On > https://build.chromium.org/p/chromium.fyi/builders/ClangToTWin%28dbg%29%20tester/builds/2919, > click on "CrSettingsMainPageTest.All" (leading here: ...
4 years, 4 months ago (2016-08-04 19:44:00 UTC) #45
tbansal1
A revert of this CL (patchset #6 id:200001) has been created in https://codereview.chromium.org/2214163002/ by tbansal@chromium.org. ...
4 years, 4 months ago (2016-08-04 19:45:10 UTC) #46
Nico
4 years, 4 months ago (2016-08-04 19:48:24 UTC) #47
Message was sent while issue was closed.
Oh, if the test is new then I agree it makes more sense to revert the CL that
added the test.

Powered by Google App Engine
This is Rietveld 408576698