Index: chrome/browser/extensions/api/tabs/tabs.cc |
diff --git a/chrome/browser/extensions/api/tabs/tabs.cc b/chrome/browser/extensions/api/tabs/tabs.cc |
index b7871dc3e1b62edc724347bacea4754ed58b50ef..6e033fba04b3b430f514712737a5854322c5f337 100644 |
--- a/chrome/browser/extensions/api/tabs/tabs.cc |
+++ b/chrome/browser/extensions/api/tabs/tabs.cc |
@@ -1639,7 +1639,7 @@ bool CaptureVisibleTabFunction::GetTabToCapture(WebContents** web_contents) { |
}; |
bool CaptureVisibleTabFunction::RunImpl() { |
- PrefService* service = profile()->GetPrefs(); |
+ PrefServiceBase* service = profile()->GetPrefs(); |
if (service->GetBoolean(prefs::kDisableScreenshots)) { |
error_ = keys::kScreenshotsDisabled; |
return false; |
@@ -1800,9 +1800,10 @@ void CaptureVisibleTabFunction::SendResultFromBitmap( |
SendResponse(true); |
} |
-void CaptureVisibleTabFunction::RegisterUserPrefs(PrefService* service) { |
+void CaptureVisibleTabFunction::RegisterUserPrefs( |
+ PrefServiceSyncable* service) { |
service->RegisterBooleanPref(prefs::kDisableScreenshots, false, |
- PrefService::UNSYNCABLE_PREF); |
+ PrefServiceSyncable::UNSYNCABLE_PREF); |
} |
bool DetectTabLanguageFunction::RunImpl() { |