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

Unified Diff: chrome/browser/ui/webui/options2/font_settings_handler2.cc

Issue 10107014: Migrate WebKit "global script" font prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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/browser/ui/webui/options2/font_settings_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/font_settings_handler2.cc b/chrome/browser/ui/webui/options2/font_settings_handler2.cc
index 1fc18fcb42a0037c8e953da7215b3733358b4e4d..338f2855145dd1add34c0130bf9f3ac5d0313840 100644
--- a/chrome/browser/ui/webui/options2/font_settings_handler2.cc
+++ b/chrome/browser/ui/webui/options2/font_settings_handler2.cc
@@ -106,12 +106,12 @@ void FontSettingsHandler::RegisterMessages() {
FontSettingsUtilities::ValidateSavedFonts(pref_service);
// Register for preferences that we need to observe manually.
- standard_font_.Init(prefs::kWebKitGlobalStandardFontFamily,
+ standard_font_.Init(prefs::kWebKitStandardFontFamily,
pref_service, this);
- serif_font_.Init(prefs::kWebKitGlobalSerifFontFamily, pref_service, this);
- sans_serif_font_.Init(prefs::kWebKitGlobalSansSerifFontFamily,
+ serif_font_.Init(prefs::kWebKitSerifFontFamily, pref_service, this);
+ sans_serif_font_.Init(prefs::kWebKitSansSerifFontFamily,
pref_service, this);
- fixed_font_.Init(prefs::kWebKitGlobalFixedFontFamily, pref_service, this);
+ fixed_font_.Init(prefs::kWebKitFixedFontFamily, pref_service, this);
font_encoding_.Init(prefs::kGlobalDefaultCharset, pref_service, this);
default_font_size_.Init(prefs::kWebKitGlobalDefaultFontSize,
pref_service, this);
@@ -196,14 +196,14 @@ void FontSettingsHandler::Observe(int type,
const content::NotificationDetails& details) {
if (type == chrome::NOTIFICATION_PREF_CHANGED) {
std::string* pref_name = content::Details<std::string>(details).ptr();
- if (*pref_name == prefs::kWebKitGlobalStandardFontFamily) {
+ if (*pref_name == prefs::kWebKitStandardFontFamily) {
SetUpStandardFontSample();
- } else if (*pref_name == prefs::kWebKitGlobalSerifFontFamily) {
+ } else if (*pref_name == prefs::kWebKitSerifFontFamily) {
SetUpSerifFontSample();
- } else if (*pref_name == prefs::kWebKitGlobalSansSerifFontFamily) {
+ } else if (*pref_name == prefs::kWebKitSansSerifFontFamily) {
SetUpSansSerifFontSample();
- } else if (*pref_name == prefs::kWebKitGlobalFixedFontFamily ||
- *pref_name == prefs::kWebKitGlobalDefaultFixedFontSize) {
+ } else if (*pref_name == prefs::kWebKitFixedFontFamily ||
+ *pref_name == prefs::kWebKitDefaultFixedFontSize) {
SetUpFixedFontSample();
} else if (*pref_name == prefs::kWebKitGlobalDefaultFontSize) {
SetUpStandardFontSample();
« no previous file with comments | « chrome/browser/ui/prefs/prefs_tab_helper_browsertest.cc ('k') | chrome/browser/ui/webui/options2/font_settings_utils2_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698