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

Issue 2369673004: Wire NQE Prefs to Profile (Closed)

Created:
4 years, 3 months ago by tbansal1
Modified:
4 years, 2 months ago
Reviewers:
bengr, RyanSturm, rkaplow, gab
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org, mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Wire Network Quality Estimator (NQE) Prefs to Profile With this CL, prefs containing the network quality would be written to the disk if |enable_prefs| is set to true in the field trial config params. The prefs are written by PrefDelegateImpl which is profile-specific. Additionally, prefs would be read at the time of startup, and read prefs would be parsed and notified to NetworkQualityEstimator. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.android:android_cronet BUG=490870 Committed: https://crrev.com/0d42d6c0fa774d6682b6ca90edc90b14cb94de3d Cr-Commit-Position: refs/heads/master@{#426802}

Patch Set 1 : ps #

Total comments: 12

Patch Set 2 : Added functionality for reading and writing multiple network IDs, Rebased, Addressed Ryan's comments #

Total comments: 10

Patch Set 3 : Addressed ryansturm comments #

Total comments: 12

Patch Set 4 : rebased #

Patch Set 5 : Addressed ryansturm comments #

Total comments: 26

Patch Set 6 : Addressed bengr comments #

Total comments: 10

Patch Set 7 : Addressed bengr, mmenke comments #

Patch Set 8 : Rebased #

Patch Set 9 : Fixed the errors #

Patch Set 10 : More fixups #

Unified diffs Side-by-side diffs Delta from patch set Stats (+678 lines, -41 lines) Patch
M chrome/browser/net/nqe/ui_network_quality_estimator_service.h View 1 2 3 4 5 7 8 3 chunks +27 lines, -2 lines 0 comments Download
M chrome/browser/net/nqe/ui_network_quality_estimator_service.cc View 1 2 3 4 5 6 7 8 9 5 chunks +139 lines, -11 lines 0 comments Download
M chrome/browser/net/nqe/ui_network_quality_estimator_service_browsertest.cc View 1 2 3 4 5 2 chunks +126 lines, -1 line 0 comments Download
M chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M net/nqe/cached_network_quality.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M net/nqe/cached_network_quality.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M net/nqe/network_id.h View 1 2 3 chunks +42 lines, -2 lines 0 comments Download
M net/nqe/network_qualities_prefs_manager.h View 1 2 3 4 5 6 chunks +22 lines, -6 lines 0 comments Download
M net/nqe/network_qualities_prefs_manager.cc View 1 2 3 4 5 6 7 8 9 4 chunks +82 lines, -9 lines 0 comments Download
M net/nqe/network_qualities_prefs_manager_unittest.cc View 1 2 3 4 5 6 3 chunks +168 lines, -9 lines 0 comments Download
M net/nqe/network_quality_estimator.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M net/nqe/network_quality_estimator.cc View 1 2 3 4 5 6 2 chunks +15 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 191 (168 generated)
tbansal1
ryansturm: ptal. thanks.
4 years, 2 months ago (2016-10-04 03:20:05 UTC) #110
RyanSturm
I need more time to look at this to make sure its doing what I ...
4 years, 2 months ago (2016-10-04 22:08:01 UTC) #113
RyanSturm
https://codereview.chromium.org/2369673004/diff/540001/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/2369673004/diff/540001/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc#newcode65 chrome/browser/net/nqe/ui_network_quality_estimator_service.cc:65: pref_service_->Set(path_, value); Won't this overwrite the previous value? Is ...
4 years, 2 months ago (2016-10-05 20:59:42 UTC) #114
tbansal1
ryansturm: ptal. Thanks. https://codereview.chromium.org/2369673004/diff/540001/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/2369673004/diff/540001/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc#newcode65 chrome/browser/net/nqe/ui_network_quality_estimator_service.cc:65: pref_service_->Set(path_, value); On 2016/10/05 20:59:42, Ryan ...
4 years, 2 months ago (2016-10-11 20:49:26 UTC) #118
RyanSturm
I need to look again later, but here are some comments from a first pass. ...
4 years, 2 months ago (2016-10-12 21:33:34 UTC) #126
tbansal1
ryansturm: ptal. Thanks. https://codereview.chromium.org/2369673004/diff/580001/net/base/network_change_notifier.cc File net/base/network_change_notifier.cc (right): https://codereview.chromium.org/2369673004/diff/580001/net/base/network_change_notifier.cc#newcode697 net/base/network_change_notifier.cc:697: kConnectionTypeNames, On 2016/10/12 21:33:34, Ryan Sturm ...
4 years, 2 months ago (2016-10-12 22:04:01 UTC) #129
RyanSturm
lgtm % nits https://codereview.chromium.org/2369673004/diff/600001/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/2369673004/diff/600001/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc#newcode11 chrome/browser/net/nqe/ui_network_quality_estimator_service.cc:11: #include "base/memory/ptr_util.h" is this used? https://codereview.chromium.org/2369673004/diff/600001/chrome/browser/net/nqe/ui_network_quality_estimator_service.h ...
4 years, 2 months ago (2016-10-14 18:36:21 UTC) #133
tbansal1
bengr: ptal. thanks. https://codereview.chromium.org/2369673004/diff/600001/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/2369673004/diff/600001/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc#newcode11 chrome/browser/net/nqe/ui_network_quality_estimator_service.cc:11: #include "base/memory/ptr_util.h" On 2016/10/14 18:36:20, Ryan ...
4 years, 2 months ago (2016-10-14 21:15:10 UTC) #142
bengr
https://codereview.chromium.org/2369673004/diff/660001/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/2369673004/diff/660001/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc#newcode193 chrome/browser/net/nqe/ui_network_quality_estimator_service.cc:193: DCHECK(content::BrowserThread::DeleteSoon(content::BrowserThread::IO, Why is this in a DCHECK? Do you ...
4 years, 2 months ago (2016-10-14 22:37:13 UTC) #145
RyanSturm
https://codereview.chromium.org/2369673004/diff/660001/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/2369673004/diff/660001/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc#newcode193 chrome/browser/net/nqe/ui_network_quality_estimator_service.cc:193: DCHECK(content::BrowserThread::DeleteSoon(content::BrowserThread::IO, On 2016/10/14 22:37:12, bengr wrote: > Why is ...
4 years, 2 months ago (2016-10-14 22:52:03 UTC) #146
tbansal1
ptal. thanks. https://codereview.chromium.org/2369673004/diff/660001/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/2369673004/diff/660001/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc#newcode193 chrome/browser/net/nqe/ui_network_quality_estimator_service.cc:193: DCHECK(content::BrowserThread::DeleteSoon(content::BrowserThread::IO, On 2016/10/14 22:37:12, bengr wrote: > ...
4 years, 2 months ago (2016-10-14 23:25:54 UTC) #148
tbansal1
bengr: ping....
4 years, 2 months ago (2016-10-18 18:15:15 UTC) #156
bengr
lgtm with nits. https://codereview.chromium.org/2369673004/diff/700001/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/2369673004/diff/700001/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc#newcode28 chrome/browser/net/nqe/ui_network_quality_estimator_service.cc:28: const char kNetworkQualityEstimatorFieldTrialName[] = "NetworkQualityEstimator"; This ...
4 years, 2 months ago (2016-10-18 21:47:36 UTC) #157
tbansal1
mmenke: ptal at profile_impl_io_data.cc gab: chrome/browser/prefs/browser_prefs.cc rkaplow: histograms.xml Thanks!
4 years, 2 months ago (2016-10-19 17:16:11 UTC) #159
mmenke
https://codereview.chromium.org/2369673004/diff/700001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/2369673004/diff/700001/chrome/browser/profiles/profile_impl_io_data.cc#newcode219 chrome/browser/profiles/profile_impl_io_data.cc:219: UINetworkQualityEstimatorServiceFactory::GetForProfile(profile_); Should this be in ChromeBrowserMainExtraPartsProfiles::EnsureBrowserContextKeyedServiceFactoriesBuilt instead, and give ...
4 years, 2 months ago (2016-10-19 17:24:58 UTC) #160
tbansal1
gab: PTAL at chrome/browser/prefs/browser_prefs.cc rkaplow: histograms.xml Moved mmenke to CC list since the CL no ...
4 years, 2 months ago (2016-10-19 18:34:47 UTC) #163
rkaplow
lgtm histogram lg
4 years, 2 months ago (2016-10-20 14:10:01 UTC) #172
tbansal1
gab: ptal at chrome/browser/prefs/browser_prefs.cc. Thanks.
4 years, 2 months ago (2016-10-20 20:56:49 UTC) #182
gab
On 2016/10/20 20:56:49, tbansal1 wrote: > gab: ptal at chrome/browser/prefs/browser_prefs.cc. Thanks. lgtm
4 years, 2 months ago (2016-10-21 15:36:42 UTC) #183
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/2369673004/830001
4 years, 2 months ago (2016-10-21 15:45:25 UTC) #186
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ is not running the ...
4 years, 2 months ago (2016-10-21 15:45:29 UTC) #187
commit-bot: I haz the power
Committed patchset #10 (id:830001)
4 years, 2 months ago (2016-10-21 16:01:27 UTC) #189
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 16:04:53 UTC) #191
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/0d42d6c0fa774d6682b6ca90edc90b14cb94de3d
Cr-Commit-Position: refs/heads/master@{#426802}

Powered by Google App Engine
This is Rietveld 408576698