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

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

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 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/devtools/devtools_window.cc ('k') | chrome/browser/extensions/activity_log/activity_log.cc » ('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 9597aac712ed31718ba70f369f720d7a704e236a..19fc13e5536117e141c3af8abec0b020c2995e54 100644
--- a/chrome/browser/download/download_prefs.cc
+++ b/chrome/browser/download/download_prefs.cc
@@ -183,34 +183,19 @@ void DownloadPrefs::RegisterProfilePrefs(
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);
+ registry->RegisterStringPref(prefs::kDownloadExtensionsToOpen, std::string());
+ registry->RegisterBooleanPref(prefs::kDownloadDirUpgraded, false);
+ registry->RegisterIntegerPref(prefs::kSaveFileType,
+ content::SAVE_PAGE_TYPE_AS_COMPLETE_HTML);
const base::FilePath& default_download_path = GetDefaultDownloadDirectory();
- registry->RegisterFilePathPref(
- prefs::kDownloadDefaultDirectory,
- default_download_path,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterFilePathPref(
- prefs::kSaveFileDefaultDirectory,
- default_download_path,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterFilePathPref(prefs::kDownloadDefaultDirectory,
+ default_download_path);
+ registry->RegisterFilePathPref(prefs::kSaveFileDefaultDirectory,
+ default_download_path);
#if defined(OS_WIN) || defined(OS_LINUX) || \
(defined(OS_MACOSX) && !defined(OS_IOS))
- registry->RegisterBooleanPref(
- prefs::kOpenPdfDownloadInSystemReader,
- false,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterBooleanPref(prefs::kOpenPdfDownloadInSystemReader, false);
#endif
}
« no previous file with comments | « chrome/browser/devtools/devtools_window.cc ('k') | chrome/browser/extensions/activity_log/activity_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698