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

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

Issue 64193003: Clean up PrefServiceBuilder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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_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());
}

Powered by Google App Engine
This is Rietveld 408576698