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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 357723003: Implement prediction_options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index f557c4d6e3642b8f5a2bf02f8c0f670a18a7ff0a..f3c2afbba065af983cb60549686c5e45d7b6070e 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -432,10 +432,15 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
media_device_id_salt_ = new MediaDeviceIDSalt(pref_service, IsOffTheRecord());
+ // TODO(bnc): remove per https://crbug.com/334602.
network_prediction_enabled_.Init(prefs::kNetworkPredictionEnabled,
pref_service);
network_prediction_enabled_.MoveToThread(io_message_loop_proxy);
+ allow_network_prediction_.Init(prefs::kAllowNetworkPrediction,
+ pref_service);
jkarlin 2014/06/26 16:28:52 formatting. Please run 'git cl format'
Bence 2014/06/26 20:02:06 Done.
+ allow_network_prediction_.MoveToThread(io_message_loop_proxy);
+
#if defined(OS_CHROMEOS)
cert_verifier_ = policy::PolicyCertServiceFactory::CreateForProfile(profile);
#endif
@@ -1167,7 +1172,9 @@ void ProfileIOData::ShutdownOnUIThread() {
printing_enabled_.Destroy();
sync_disabled_.Destroy();
signin_allowed_.Destroy();
+ // TODO(bnc): remove per https://crbug.com/334602.
network_prediction_enabled_.Destroy();
+ allow_network_prediction_.Destroy();
quick_check_enabled_.Destroy();
if (media_device_id_salt_)
media_device_id_salt_->ShutdownOnUIThread();

Powered by Google App Engine
This is Rietveld 408576698