Index: chrome/browser/ui/alternate_error_tab_observer.cc |
diff --git a/chrome/browser/ui/alternate_error_tab_observer.cc b/chrome/browser/ui/alternate_error_tab_observer.cc |
index 6bac4c32d1d8a29081c3ddccaf34bc91e9291d12..bf5258640595f837f5e56a2fe92be1578a818184 100644 |
--- a/chrome/browser/ui/alternate_error_tab_observer.cc |
+++ b/chrome/browser/ui/alternate_error_tab_observer.cc |
@@ -22,7 +22,7 @@ AlternateErrorPageTabObserver::AlternateErrorPageTabObserver( |
WebContents* web_contents) |
: content::WebContentsObserver(web_contents), |
profile_(Profile::FromBrowserContext(web_contents->GetBrowserContext())) { |
- PrefService* prefs = profile_->GetPrefs(); |
+ PrefServiceSyncable* prefs = profile_->GetPrefs(); |
if (prefs) { |
pref_change_registrar_.Init(prefs); |
pref_change_registrar_.Add( |
@@ -40,9 +40,10 @@ AlternateErrorPageTabObserver::~AlternateErrorPageTabObserver() { |
} |
// static |
-void AlternateErrorPageTabObserver::RegisterUserPrefs(PrefService* prefs) { |
+void AlternateErrorPageTabObserver::RegisterUserPrefs( |
+ PrefServiceSyncable* prefs) { |
prefs->RegisterBooleanPref(prefs::kAlternateErrorPagesEnabled, true, |
- PrefService::SYNCABLE_PREF); |
+ PrefServiceSyncable::SYNCABLE_PREF); |
} |
//////////////////////////////////////////////////////////////////////////////// |