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

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

Issue 148983006: Fix a crash due to uninitialized preference member in ProfileIOData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a comment typo Created 6 years, 10 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
« no previous file with comments | « chrome/browser/prefetch/prefetch_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c50866594235383b26b36dec462029c0b67b7145..0b164cddb0de67cf3474e4b447975096d3c6bbba 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -411,10 +411,6 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
signin_allowed_.Init(prefs::kSigninAllowed, pref_service);
signin_allowed_.MoveToThread(io_message_loop_proxy);
-
- network_prediction_enabled_.Init(prefs::kNetworkPredictionEnabled,
- pref_service);
- network_prediction_enabled_.MoveToThread(io_message_loop_proxy);
}
quick_check_enabled_.Init(prefs::kQuickCheckEnabled,
@@ -424,6 +420,10 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
media_device_id_salt_.reset(new MediaDeviceIDSalt(pref_service,
is_incognito()));
+ network_prediction_enabled_.Init(prefs::kNetworkPredictionEnabled,
+ pref_service);
+ network_prediction_enabled_.MoveToThread(io_message_loop_proxy);
+
#if defined(OS_CHROMEOS)
cert_verifier_ = policy::PolicyCertServiceFactory::CreateForProfile(profile);
#endif
« no previous file with comments | « chrome/browser/prefetch/prefetch_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698