|
|
Chromium Code Reviews
DescriptionNQE: Always read prefs in cronet
Always read the network quality estimator (NQE) prefs in Cronet, and
store the read prefs in the network quality store. This
ensures that prefs on the disk are not written over by empty prefs by
the store.
BUG=688121
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
Review-Url: https://codereview.chromium.org/2671233003
Cr-Commit-Position: refs/heads/master@{#449373}
Committed: https://chromium.googlesource.com/chromium/src/+/fad042aa5ace0033293dbbddcd7204fafccd4bdc
Patch Set 1 : ps #
Total comments: 2
Messages
Total messages: 37 (31 generated)
Description was changed from ========== NQE read prefs in cronet BUG= ========== to ========== NQE read prefs in cronet BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ==========
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_cronet_tester on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_cron...)
Description was changed from ========== NQE read prefs in cronet BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ========== to ========== NQE: Always read prefs in cronet BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ==========
Description was changed from ========== NQE: Always read prefs in cronet BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ========== to ========== NQE: Always read prefs in cronet BUG=688121 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ==========
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_cronet_tester on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_cron...)
Patchset #2 (id:20001) has been deleted
Patchset #2 (id:40001) has been deleted
Patchset #2 (id:60001) has been deleted
Patchset #1 (id:1) has been deleted
Patchset #1 (id:80001) has been deleted
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== NQE: Always read prefs in cronet BUG=688121 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ========== to ========== NQE: Always read prefs in cronet Always read the network quality estimator (NQE) prefs in Cronet, and store the read prefs in the network quality store. This ensures that prefs on the disk are not written over by empty prefs by the store. BUG=688121 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ==========
tbansal@chromium.org changed reviewers: + xunjieli@chromium.org
xunjieli: ptal. Thanks.
https://codereview.chromium.org/2671233003/diff/100001/components/cronet/andr... File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2671233003/diff/100001/components/cronet/andr... components/cronet/android/cronet_url_request_context_adapter.cc:209: return pref_service_->GetDictionary(kNetworkQualities)->CreateDeepCopy(); Does |pref_service_| return empty DictionaryValue if prefs are not yet loaded?
ptal. Thanks. https://codereview.chromium.org/2671233003/diff/100001/components/cronet/andr... File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2671233003/diff/100001/components/cronet/andr... components/cronet/android/cronet_url_request_context_adapter.cc:209: return pref_service_->GetDictionary(kNetworkQualities)->CreateDeepCopy(); On 2017/02/07 21:05:59, xunjieli wrote: > Does |pref_service_| return empty DictionaryValue if prefs are not yet loaded? Yes, it will return an empty map. Prefs are read synchronously in Cronet and in the initial profile in Chrome, so that should not be a problem.
lgtm Talked to Tarun offline. NQE will revisit the decision to store observations in user prefs, which might be loaded synchronously in Chrome and thus slow down startup.
The CQ bit was checked by tbansal@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 100001, "attempt_start_ts": 1486665097649630,
"parent_rev": "2de0058601feb0158f1b50a7348effb62de1bc86", "commit_rev":
"fad042aa5ace0033293dbbddcd7204fafccd4bdc"}
Message was sent while issue was closed.
Description was changed from ========== NQE: Always read prefs in cronet Always read the network quality estimator (NQE) prefs in Cronet, and store the read prefs in the network quality store. This ensures that prefs on the disk are not written over by empty prefs by the store. BUG=688121 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ========== to ========== NQE: Always read prefs in cronet Always read the network quality estimator (NQE) prefs in Cronet, and store the read prefs in the network quality store. This ensures that prefs on the disk are not written over by empty prefs by the store. BUG=688121 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2671233003 Cr-Commit-Position: refs/heads/master@{#449373} Committed: https://chromium.googlesource.com/chromium/src/+/fad042aa5ace0033293dbbddcd72... ==========
Message was sent while issue was closed.
Committed patchset #1 (id:100001) as https://chromium.googlesource.com/chromium/src/+/fad042aa5ace0033293dbbddcd72... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
