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

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

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 8 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
« no previous file with comments | « chrome/browser/download/download_prefs.h ('k') | chrome/browser/extensions/api/commands/command_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/download/download_prefs.h ('k') | chrome/browser/extensions/api/commands/command_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698