Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(975)

Unified Diff: chrome/browser/download/download_prefs.cc

Issue 10828345: Extract PrefServiceBase into chrome/browser/api. Use in api and autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_prefs.cc
diff --git a/chrome/browser/download/download_prefs.cc b/chrome/browser/download/download_prefs.cc
index e5590b6e1cb71956f3b8af9ebc152813e936d534..6bf07ff8acf4f1afd8e1737fcd5110cb07fab8e8 100644
--- a/chrome/browser/download/download_prefs.cc
+++ b/chrome/browser/download/download_prefs.cc
@@ -67,26 +67,26 @@ DownloadPrefs::~DownloadPrefs() {
}
// static
-void DownloadPrefs::RegisterUserPrefs(PrefService* prefs) {
+void DownloadPrefs::RegisterUserPrefs(PrefServiceBase* prefs) {
prefs->RegisterBooleanPref(prefs::kPromptForDownload,
false,
- PrefService::SYNCABLE_PREF);
+ PrefServiceBase::SYNCABLE_PREF);
prefs->RegisterStringPref(prefs::kDownloadExtensionsToOpen,
"",
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceBase::UNSYNCABLE_PREF);
prefs->RegisterBooleanPref(prefs::kDownloadDirUpgraded,
false,
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceBase::UNSYNCABLE_PREF);
prefs->RegisterIntegerPref(prefs::kSaveFileType,
content::SAVE_PAGE_TYPE_AS_COMPLETE_HTML,
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceBase::UNSYNCABLE_PREF);
// The default download path is userprofile\download.
const FilePath& default_download_path =
download_util::GetDefaultDownloadDirectory();
prefs->RegisterFilePathPref(prefs::kDownloadDefaultDirectory,
default_download_path,
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceBase::UNSYNCABLE_PREF);
#if defined(OS_CHROMEOS)
// Ensure that the download directory specified in the preferences exists.
« no previous file with comments | « chrome/browser/download/download_prefs.h ('k') | chrome/browser/extensions/api/font_settings/font_settings_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698