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 9afc9d7c0f9bf626b415e12c1657e2f9fe7e8b2b..717502f2bfc7e8c062e5ababf5868268c7509439 100644 |
--- a/chrome/browser/extensions/api/tabs/tabs.cc |
+++ b/chrome/browser/extensions/api/tabs/tabs.cc |
@@ -1640,7 +1640,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; |
@@ -1801,9 +1801,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() { |