Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index 9012e15dca08cc155e2e32d1909c7b29b30535f7..ebef63acc35a8cddc68574364998e494c3cadef3 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -448,7 +448,7 @@ ProfileImpl::ProfileImpl( |
// will work here. |
startup_metric_utils::ScopedSlowStartupUMA |
scoped_timer("Startup.SlowStartupPreferenceLoading"); |
- prefs_.reset(chrome_prefs::CreateProfilePrefs( |
+ prefs_ = chrome_prefs::CreateProfilePrefs( |
GetPrefFilePath(), |
sequenced_task_runner, |
profile_policy_connector_->policy_service(), |
@@ -456,7 +456,7 @@ ProfileImpl::ProfileImpl( |
new ExtensionPrefStore( |
ExtensionPrefValueMapFactory::GetForBrowserContext(this), false), |
pref_registry_, |
- async_prefs)); |
+ async_prefs).Pass(); |
// Register on BrowserContext. |
user_prefs::UserPrefs::Set(this, prefs_.get()); |
} |