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 2010003002: Reduce the number of calls to external estimate provider (Closed)

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

Description

Reduce the number of calls to external estimate provider Currently, the External Estimate Provider (EEP) may get called multiple times per connection change. This CL ensures that EEP is called exactly once per connection change. This CL also updates the callback to UpdatedEstimateDelegate. The callback now contains the updated estimates. This means that the delegate does not have to query for those estimates on receiving the callback. It makes the logic easier to understand. BUG=604417 Committed: https://crrev.com/bb48cb54901af25602c71fed388756a76e8499c6 Cr-Commit-Position: refs/heads/master@{#396938}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed bengr comments #

Patch Set 3 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -217 lines) Patch
M chrome/browser/android/net/external_estimate_provider_android.h View 3 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/android/net/external_estimate_provider_android.cc View 1 3 chunks +14 lines, -9 lines 0 comments Download
M chrome/browser/android/net/external_estimate_provider_android_unittest.cc View 3 chunks +12 lines, -22 lines 0 comments Download
M net/nqe/external_estimate_provider.h View 1 1 chunk +9 lines, -2 lines 0 comments Download
M net/nqe/network_quality_estimator.h View 1 2 3 chunks +3 lines, -10 lines 0 comments Download
M net/nqe/network_quality_estimator.cc View 1 2 4 chunks +36 lines, -54 lines 0 comments Download
M net/nqe/network_quality_estimator_unittest.cc View 1 2 10 chunks +51 lines, -112 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
tbansal1
bengr: ptal. Thanks.
4 years, 7 months ago (2016-05-26 01:23:42 UTC) #7
bengr
https://codereview.chromium.org/2010003002/diff/140001/chrome/browser/android/net/external_estimate_provider_android.cc File chrome/browser/android/net/external_estimate_provider_android.cc (right): https://codereview.chromium.org/2010003002/diff/140001/chrome/browser/android/net/external_estimate_provider_android.cc#newcode132 chrome/browser/android/net/external_estimate_provider_android.cc:132: if (!GetRTT(&rtt)) Shouldn't GetRTT not modify &rtt if it ...
4 years, 6 months ago (2016-05-27 19:58:42 UTC) #13
tbansal1
bengr: ptal. Thanks. https://codereview.chromium.org/2010003002/diff/140001/chrome/browser/android/net/external_estimate_provider_android.cc File chrome/browser/android/net/external_estimate_provider_android.cc (right): https://codereview.chromium.org/2010003002/diff/140001/chrome/browser/android/net/external_estimate_provider_android.cc#newcode132 chrome/browser/android/net/external_estimate_provider_android.cc:132: if (!GetRTT(&rtt)) On 2016/05/27 19:58:42, bengr ...
4 years, 6 months ago (2016-05-27 23:39:15 UTC) #15
bengr
lgtm
4 years, 6 months ago (2016-05-31 17:32:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2010003002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2010003002/220001
4 years, 6 months ago (2016-05-31 19:58:36 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:220001)
4 years, 6 months ago (2016-05-31 21:38:20 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-05-31 21:40:43 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bb48cb54901af25602c71fed388756a76e8499c6
Cr-Commit-Position: refs/heads/master@{#396938}

Powered by Google App Engine
This is Rietveld 408576698