Index: chrome/browser/download/download_prefs.cc |
diff --git a/chrome/browser/download/download_prefs.cc b/chrome/browser/download/download_prefs.cc |
index b40b78b8e7c025d79d855bd3cf697541f35e1817..fbefa3d1afd1db392f5d6a423c128bfb2b07bc63 100644 |
--- a/chrome/browser/download/download_prefs.cc |
+++ b/chrome/browser/download/download_prefs.cc |
@@ -81,26 +81,32 @@ DownloadPrefs::~DownloadPrefs() { |
} |
// static |
-void DownloadPrefs::RegisterUserPrefs(PrefRegistrySyncable* registry) { |
- registry->RegisterBooleanPref(prefs::kPromptForDownload, |
- false, |
- PrefRegistrySyncable::SYNCABLE_PREF); |
- registry->RegisterStringPref(prefs::kDownloadExtensionsToOpen, |
- std::string(), |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
- registry->RegisterBooleanPref(prefs::kDownloadDirUpgraded, |
- false, |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
- registry->RegisterIntegerPref(prefs::kSaveFileType, |
- content::SAVE_PAGE_TYPE_AS_COMPLETE_HTML, |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
+void DownloadPrefs::RegisterUserPrefs( |
+ user_prefs::PrefRegistrySyncable* registry) { |
+ registry->RegisterBooleanPref( |
+ prefs::kPromptForDownload, |
+ false, |
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
+ registry->RegisterStringPref( |
+ prefs::kDownloadExtensionsToOpen, |
+ std::string(), |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterBooleanPref( |
+ prefs::kDownloadDirUpgraded, |
+ false, |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterIntegerPref( |
+ prefs::kSaveFileType, |
+ content::SAVE_PAGE_TYPE_AS_COMPLETE_HTML, |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
// The default download path is userprofile\download. |
const base::FilePath& default_download_path = |
download_util::GetDefaultDownloadDirectory(); |
- registry->RegisterFilePathPref(prefs::kDownloadDefaultDirectory, |
- default_download_path, |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterFilePathPref( |
+ prefs::kDownloadDefaultDirectory, |
+ default_download_path, |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
#if defined(OS_CHROMEOS) |
// Ensure that the download directory specified in the preferences exists. |