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: components/sync_preferences/pref_service_syncable_factory.cc

Issue 2746023002: Pref service: enable for user prefs in chrome behind a flag. (Closed)
Patch Set: no, the other pref service 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/profiles/profile_browsertest.cc ('k') | components/user_prefs/tracked/pref_hash_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_preferences/pref_service_syncable_factory.cc
diff --git a/components/sync_preferences/pref_service_syncable_factory.cc b/components/sync_preferences/pref_service_syncable_factory.cc
index 95a1a3441d79d432068a60222fd210c8e7227cb8..9e5989aa0a25a3ab6c66017eed0e5127e28669f4 100644
--- a/components/sync_preferences/pref_service_syncable_factory.cc
+++ b/components/sync_preferences/pref_service_syncable_factory.cc
@@ -64,7 +64,7 @@ scoped_refptr<::PrefStore> CreateRegisteredPrefStore(
PrefValueStore::PrefStoreType type) {
// If we're testing or if the prefs service feature flag is off we don't
// register.
- if (!connector)
+ if (!connector || !backing_pref_store)
return backing_pref_store;
prefs::mojom::PrefStoreRegistryPtr registry_ptr;
« no previous file with comments | « chrome/browser/profiles/profile_browsertest.cc ('k') | components/user_prefs/tracked/pref_hash_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698