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

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

Issue 2772673002: mash: switch to the new pref service (Closed)
Patch Set: Address review comments Created 3 years, 9 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/prefs/profile_pref_store_manager.cc ('k') | chrome/common/chrome_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 8cf0d1b3e925b3959278ab4cf7185264b9a30f5a..403a2cd4e49886ccf84cb8ab4bf1e07a98a49c31 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -496,7 +496,7 @@ ProfileImpl::ProfileImpl(
{
service_manager::Connector* connector = nullptr;
- if (base::FeatureList::IsEnabled(features::kPrefService)) {
+ if (features::PrefServiceEnabled()) {
connector = content::BrowserContext::GetConnectorFor(this);
}
prefs_ = chrome_prefs::CreateProfilePrefs(
@@ -1068,7 +1068,7 @@ ProfileImpl::CreateMediaRequestContextForStoragePartition(
}
void ProfileImpl::RegisterInProcessServices(StaticServiceMap* services) {
- if (base::FeatureList::IsEnabled(features::kPrefService)) {
+ if (features::PrefServiceEnabled()) {
content::ServiceInfo info;
info.factory = base::Bind(
&prefs::CreatePrefService, std::set<PrefValueStore::PrefStoreType>(),
« no previous file with comments | « chrome/browser/prefs/profile_pref_store_manager.cc ('k') | chrome/common/chrome_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698