Chromium Code Reviews| Index: chrome/browser/web_resource/promo_resource_service.cc |
| diff --git a/chrome/browser/web_resource/promo_resource_service.cc b/chrome/browser/web_resource/promo_resource_service.cc |
| index 12ede8654f0beae8afc2bed49e3915533c430125..c823bfb5b17e80791afce3efb733d3b88686671e 100644 |
| --- a/chrome/browser/web_resource/promo_resource_service.cc |
| +++ b/chrome/browser/web_resource/promo_resource_service.cc |
| @@ -11,7 +11,8 @@ |
| #include "base/values.h" |
| #include "chrome/browser/browser_process.h" |
| #include "chrome/browser/prefs/pref_registry_simple.h" |
| -#include "chrome/browser/prefs/pref_service_syncable.h" |
| +#include "chrome/browser/prefs/pref_registry_syncable.h" |
| +#include "chrome/browser/prefs/pref_service.h" |
| #include "chrome/browser/web_resource/notification_promo.h" |
| #include "chrome/common/chrome_notification_types.h" |
| #include "chrome/common/chrome_switches.h" |
| @@ -67,14 +68,15 @@ void PromoResourceService::RegisterPrefs(PrefRegistrySimple* registry) { |
| } |
| // static |
| -void PromoResourceService::RegisterUserPrefs(PrefServiceSyncable* prefs) { |
| +void PromoResourceService::RegisterUserPrefs(PrefService* prefs, |
| + PrefRegistrySyncable* registry) { |
| // TODO(dbeam): remove in M28 when all prefs have been cleared. |
| // http://crbug.com/168887 |
| - prefs->RegisterStringPref(prefs::kNtpPromoResourceCacheUpdate, |
| - "0", |
| - PrefServiceSyncable::UNSYNCABLE_PREF); |
| + registry->RegisterStringPref(prefs::kNtpPromoResourceCacheUpdate, |
| + "0", |
| + PrefRegistrySyncable::UNSYNCABLE_PREF); |
| prefs->ClearPref(prefs::kNtpPromoResourceCacheUpdate); |
|
Mattias Nissler (ping if slow)
2013/02/06 17:53:33
TODO: move to migration code.
Jói
2013/02/07 14:52:32
Done.
|
| - NotificationPromo::RegisterUserPrefs(prefs); |
| + NotificationPromo::RegisterUserPrefs(prefs, registry); |
| } |
| PromoResourceService::PromoResourceService() |