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

Unified Diff: components/invalidation/invalidator_storage.cc

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 years, 8 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
Index: components/invalidation/invalidator_storage.cc
diff --git a/components/invalidation/invalidator_storage.cc b/components/invalidation/invalidator_storage.cc
index 13ba4b1bf90def24a91c82bba9f7386ea4cd6648..cd7ae9ce1a722015e201d4f8e2585f466c6868ba 100644
--- a/components/invalidation/invalidator_storage.cc
+++ b/components/invalidation/invalidator_storage.cc
@@ -57,21 +57,14 @@ namespace invalidation {
// static
void InvalidatorStorage::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
- registry->RegisterListPref(prefs::kInvalidatorSavedInvalidations,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterStringPref(
- prefs::kInvalidatorInvalidationState,
- std::string(),
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterStringPref(
- prefs::kInvalidatorClientId,
- std::string(),
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterListPref(prefs::kInvalidatorSavedInvalidations);
+ registry->RegisterStringPref(prefs::kInvalidatorInvalidationState,
+ std::string());
+ registry->RegisterStringPref(prefs::kInvalidatorClientId, std::string());
// This pref is obsolete. We register it so we can clear it.
// At some point in the future, it will be safe to remove this.
- registry->RegisterListPref(kInvalidatorMaxInvalidationVersions,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterListPref(kInvalidatorMaxInvalidationVersions);
}
// static
« no previous file with comments | « components/gcm_driver/gcm_channel_status_syncer.cc ('k') | components/password_manager/core/browser/password_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698