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

Unified Diff: chrome/common/pref_names.cc

Issue 10409046: Migrate the rest of the "global" prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 8 years, 7 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/common/pref_names.cc
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index 30de06eeb0937764231674287cc8498ea4d78e0d..f56d35f74f1b7ff161af944eeb1e5666bca03a68 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -105,7 +105,7 @@ const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
// The default character encoding to assume for a web page in the
// absence of MIME charset specification
-const char kGlobalDefaultCharset[] = "intl.global.charset_default";
+const char kDefaultCharset[] = "intl.charset_default";
// The value to use for Accept-Languages HTTP header when making an HTTP
// request.
@@ -116,7 +116,24 @@ const char kAcceptLanguages[] = "intl.accept_languages";
// stored in non-translatable part of the resource bundle.
const char kStaticEncodings[] = "intl.static_encodings";
-// WebKit preferences.
+// Obselete WebKit prefs for migration.
+const char kGlobalDefaultCharset[] = "intl.global.charset_default";
+const char kWebKitGlobalDefaultFontSize[] =
+ "webkit.webprefs.global.default_font_size";
+const char kWebKitGlobalDefaultFixedFontSize[] =
+ "webkit.webprefs.global.default_fixed_font_size";
+const char kWebKitGlobalMinimumFontSize[] =
+ "webkit.webprefs.global.minimum_font_size";
+const char kWebKitGlobalMinimumLogicalFontSize[] =
+ "webkit.webprefs.global.minimum_logical_font_size";
+const char kWebKitGlobalJavascriptCanOpenWindowsAutomatically[] =
+ "webkit.webprefs.global.javascript_can_open_windows_automatically";
+const char kWebKitGlobalJavascriptEnabled[] =
+ "webkit.webprefs.global.javascript_enabled";
+const char kWebKitGlobalLoadsImagesAutomatically[] =
+ "webkit.webprefs.global.loads_images_automatically";
+const char kWebKitGlobalPluginsEnabled[] =
+ "webkit.webprefs.global.plugins_enabled";
const char kWebKitGlobalStandardFontFamily[] =
"webkit.webprefs.global.standard_font_family";
const char kWebKitGlobalFixedFontFamily[] =
@@ -164,6 +181,7 @@ const char* const kWebKitScriptsForFontFamilyMaps[] = {
const size_t kWebKitScriptsForFontFamilyMapsLength =
arraysize(kWebKitScriptsForFontFamilyMaps);
+// WebKit preferences.
const char kWebKitStandardFontFamilyArabic[] =
"webkit.webprefs.fonts.standard.Arab";
const char kWebKitFixedFontFamilyArabic[] =
@@ -207,22 +225,6 @@ const char kWebKitSerifFontFamilyTraditionalHan[] =
const char kWebKitSansSerifFontFamilyTraditionalHan[] =
"webkit.webprefs.fonts.sansserif.Hant";
-const char kWebKitGlobalDefaultFontSize[] =
- "webkit.webprefs.global.default_font_size";
-const char kWebKitGlobalDefaultFixedFontSize[] =
- "webkit.webprefs.global.default_fixed_font_size";
-const char kWebKitGlobalMinimumFontSize[] =
- "webkit.webprefs.global.minimum_font_size";
-const char kWebKitGlobalMinimumLogicalFontSize[] =
- "webkit.webprefs.global.minimum_logical_font_size";
-const char kWebKitGlobalJavascriptCanOpenWindowsAutomatically[] =
- "webkit.webprefs.global.javascript_can_open_windows_automatically";
-const char kWebKitGlobalJavascriptEnabled[] =
- "webkit.webprefs.global.javascript_enabled";
-const char kWebKitGlobalLoadsImagesAutomatically[] =
- "webkit.webprefs.global.loads_images_automatically";
-const char kWebKitGlobalPluginsEnabled[] =
- "webkit.webprefs.global.plugins_enabled";
const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled";
const char kWebKitShrinksStandaloneImagesToFit[] =
@@ -239,7 +241,6 @@ const char kWebKitAllowDisplayingInsecureContent[] =
const char kWebKitAllowRunningInsecureContent[] =
"webkit.webprefs.allow_running_insecure_content";
-const char kDefaultCharset[] = "intl.charset_default";
const char kWebKitCommonScript[] = "Zyyy";
const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy";
const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy";
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/test/data/profiles/webkit_global_reverse_migration/Default/Preferences » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698