| Index: chrome/browser/sync/invalidations/invalidator_storage.cc
|
| diff --git a/chrome/browser/sync/invalidations/invalidator_storage.cc b/chrome/browser/sync/invalidations/invalidator_storage.cc
|
| index ebd6dbc74f447a0b4a9d8fa3387a543b182aa248..b17ba509c05dab8b56cdb69c04799b4ee0e2fc6c 100644
|
| --- a/chrome/browser/sync/invalidations/invalidator_storage.cc
|
| +++ b/chrome/browser/sync/invalidations/invalidator_storage.cc
|
| @@ -93,17 +93,17 @@ DictionaryValue* ObjectIdAndStateToValue(
|
|
|
| } // namespace
|
|
|
| -InvalidatorStorage::InvalidatorStorage(PrefService* pref_service)
|
| +InvalidatorStorage::InvalidatorStorage(PrefServiceSyncable* pref_service)
|
| : pref_service_(pref_service) {
|
| // TODO(tim): Create a Mock instead of maintaining the if(!pref_service_) case
|
| // throughout this file. This is a problem now due to lack of injection at
|
| // ProfileSyncService. Bug 130176.
|
| if (pref_service_) {
|
| pref_service_->RegisterListPref(prefs::kInvalidatorMaxInvalidationVersions,
|
| - PrefService::UNSYNCABLE_PREF);
|
| + PrefServiceSyncable::UNSYNCABLE_PREF);
|
| pref_service_->RegisterStringPref(prefs::kInvalidatorInvalidationState,
|
| std::string(),
|
| - PrefService::UNSYNCABLE_PREF);
|
| + PrefServiceSyncable::UNSYNCABLE_PREF);
|
|
|
| MigrateMaxInvalidationVersionsPref();
|
| }
|
| @@ -195,7 +195,7 @@ void InvalidatorStorage::SerializeToList(
|
| // Legacy migration code.
|
| void InvalidatorStorage::MigrateMaxInvalidationVersionsPref() {
|
| pref_service_->RegisterDictionaryPref(prefs::kSyncMaxInvalidationVersions,
|
| - PrefService::UNSYNCABLE_PREF);
|
| + PrefServiceSyncable::UNSYNCABLE_PREF);
|
| const base::DictionaryValue* max_versions_dict =
|
| pref_service_->GetDictionary(prefs::kSyncMaxInvalidationVersions);
|
| CHECK(max_versions_dict);
|
|
|