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

Issue 2491703003: NQE: Notify observer as soon as it is added (Closed)

Created:
4 years, 1 month ago by tbansal1
Modified:
4 years, 1 month ago
Reviewers:
bengr, RyanSturm
CC:
chromium-reviews, cbentzel+watch_chromium.org, tbansal+watch-nqe_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

NQE: Notify observer as soon as it is added When an EffectiveConnectionTypeObserver or an RTTAndThroughputEstimatesObserver is added to NetworkQualityEstimator (NQE), it is notified of the current effective connection type or current RTT/throughput estimates. Doing this makes the API simpler (the caller does not have to call Get*() functions when registering as an observer). It also reduces the need of exposing both Get*() and Add*() APIs to different layers of Chromium. BUG=638304 Committed: https://crrev.com/286d35bb3f13b27ada977c535d35fbe3977b9426 Cr-Commit-Position: refs/heads/master@{#432637}

Patch Set 1 : ps #

Total comments: 2

Patch Set 2 : ryansturm comments #

Total comments: 2

Patch Set 3 : Moar tests #

Total comments: 6

Patch Set 4 : Addressed bengr comments #

Patch Set 5 : Addressed bengr comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -12 lines) Patch
M chrome/browser/net/nqe/ui_network_quality_estimator_service.h View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/net/nqe/ui_network_quality_estimator_service.cc View 1 2 3 4 3 chunks +21 lines, -6 lines 0 comments Download
M chrome/browser/net/nqe/ui_network_quality_estimator_service_browsertest.cc View 1 2 3 chunks +23 lines, -1 line 0 comments Download
M net/nqe/network_quality_estimator.h View 1 2 3 3 chunks +14 lines, -2 lines 0 comments Download
M net/nqe/network_quality_estimator.cc View 1 2 3 4 3 chunks +39 lines, -0 lines 0 comments Download
M net/nqe/network_quality_estimator_unittest.cc View 1 2 3 chunks +46 lines, -2 lines 0 comments Download

Messages

Total messages: 46 (30 generated)
tbansal1
ryansturm: ptal. thanks.
4 years, 1 month ago (2016-11-09 23:02:48 UTC) #6
RyanSturm
This is a little weird. Would it make more sense to return the ECT instead ...
4 years, 1 month ago (2016-11-10 21:25:25 UTC) #10
tbansal1
On 2016/11/10 21:25:25, Ryan Sturm wrote: > This is a little weird. Would it make ...
4 years, 1 month ago (2016-11-10 22:18:48 UTC) #12
RyanSturm
Add parity to the UI thread API that does the same thing. https://codereview.chromium.org/2491703003/diff/20001/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc File chrome/browser/net/nqe/ui_network_quality_estimator_service.cc ...
4 years, 1 month ago (2016-11-10 22:21:34 UTC) #13
tbansal1
ptal. thanks. https://codereview.chromium.org/2491703003/diff/20001/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc File chrome/browser/net/nqe/ui_network_quality_estimator_service.cc (right): https://codereview.chromium.org/2491703003/diff/20001/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc#newcode208 chrome/browser/net/nqe/ui_network_quality_estimator_service.cc:208: void UINetworkQualityEstimatorService::AddEffectiveConnectionTypeObserver( On 2016/11/10 22:21:34, Ryan Sturm ...
4 years, 1 month ago (2016-11-10 22:55:21 UTC) #16
RyanSturm
lgtm % testing corner cases. https://codereview.chromium.org/2491703003/diff/60001/net/nqe/network_quality_estimator.cc File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2491703003/diff/60001/net/nqe/network_quality_estimator.cc#newcode1521 net/nqe/network_quality_estimator.cc:1521: if (!effective_connection_type_observer_list_.HasObserver(observer)) Add testing ...
4 years, 1 month ago (2016-11-10 23:07:22 UTC) #18
tbansal1
https://codereview.chromium.org/2491703003/diff/60001/net/nqe/network_quality_estimator.cc File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2491703003/diff/60001/net/nqe/network_quality_estimator.cc#newcode1521 net/nqe/network_quality_estimator.cc:1521: if (!effective_connection_type_observer_list_.HasObserver(observer)) On 2016/11/10 23:07:22, Ryan Sturm wrote: > ...
4 years, 1 month ago (2016-11-11 00:49:45 UTC) #23
tbansal1
bengr: ptal. thanks.
4 years, 1 month ago (2016-11-11 00:50:06 UTC) #26
bengr
https://codereview.chromium.org/2491703003/diff/120001/net/nqe/network_quality_estimator.cc File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2491703003/diff/120001/net/nqe/network_quality_estimator.cc#newcode1153 net/nqe/network_quality_estimator.cc:1153: base::ThreadTaskRunnerHandle::Get()->PostTask( The real question is why do you post ...
4 years, 1 month ago (2016-11-11 17:26:44 UTC) #30
RyanSturm
https://codereview.chromium.org/2491703003/diff/120001/net/nqe/network_quality_estimator.cc File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2491703003/diff/120001/net/nqe/network_quality_estimator.cc#newcode1153 net/nqe/network_quality_estimator.cc:1153: base::ThreadTaskRunnerHandle::Get()->PostTask( On 2016/11/11 17:26:44, bengr wrote: > The real ...
4 years, 1 month ago (2016-11-11 17:30:18 UTC) #31
tbansal1
bengr: ptal. Thanks. https://codereview.chromium.org/2491703003/diff/120001/net/nqe/network_quality_estimator.cc File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2491703003/diff/120001/net/nqe/network_quality_estimator.cc#newcode1153 net/nqe/network_quality_estimator.cc:1153: base::ThreadTaskRunnerHandle::Get()->PostTask( On 2016/11/11 17:30:18, Ryan Sturm ...
4 years, 1 month ago (2016-11-11 18:20:45 UTC) #32
tbansal1
bengr: ping.
4 years, 1 month ago (2016-11-15 18:04:29 UTC) #33
bengr
lgtm, with request for comment. https://codereview.chromium.org/2491703003/diff/120001/net/nqe/network_quality_estimator.cc File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2491703003/diff/120001/net/nqe/network_quality_estimator.cc#newcode1153 net/nqe/network_quality_estimator.cc:1153: base::ThreadTaskRunnerHandle::Get()->PostTask( On 2016/11/11 18:20:45, ...
4 years, 1 month ago (2016-11-16 17:06:40 UTC) #34
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/2491703003/160001
4 years, 1 month ago (2016-11-16 20:52:41 UTC) #42
commit-bot: I haz the power
Committed patchset #5 (id:160001)
4 years, 1 month ago (2016-11-16 21:59:29 UTC) #44
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 22:04:07 UTC) #46
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/286d35bb3f13b27ada977c535d35fbe3977b9426
Cr-Commit-Position: refs/heads/master@{#432637}

Powered by Google App Engine
This is Rietveld 408576698