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

Side by Side Diff: chrome/browser/extensions/api/settings_private/prefs_util.cc

Issue 2066123002: [MD settings] set default fixed font size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/settings/appearance_page/appearance_fonts_page.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/settings_private/prefs_util.h" 5 #include "chrome/browser/extensions/api/settings_private/prefs_util.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/extensions/chrome_extension_function.h" 9 #include "chrome/browser/extensions/chrome_extension_function.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 (*s_whitelist)["autofill.enabled"] = 66 (*s_whitelist)["autofill.enabled"] =
67 settings_private::PrefType::PREF_TYPE_BOOLEAN; 67 settings_private::PrefType::PREF_TYPE_BOOLEAN;
68 (*s_whitelist)["bookmark_bar.show_on_all_tabs"] = 68 (*s_whitelist)["bookmark_bar.show_on_all_tabs"] =
69 settings_private::PrefType::PREF_TYPE_BOOLEAN; 69 settings_private::PrefType::PREF_TYPE_BOOLEAN;
70 (*s_whitelist)["browser.show_home_button"] = 70 (*s_whitelist)["browser.show_home_button"] =
71 settings_private::PrefType::PREF_TYPE_BOOLEAN; 71 settings_private::PrefType::PREF_TYPE_BOOLEAN;
72 72
73 // Appearance settings. 73 // Appearance settings.
74 (*s_whitelist)["extensions.theme.id"] = 74 (*s_whitelist)["extensions.theme.id"] =
75 settings_private::PrefType::PREF_TYPE_STRING; 75 settings_private::PrefType::PREF_TYPE_STRING;
76 (*s_whitelist)["webkit.webprefs.default_fixed_font_size"] =
77 settings_private::PrefType::PREF_TYPE_NUMBER;
76 (*s_whitelist)["webkit.webprefs.default_font_size"] = 78 (*s_whitelist)["webkit.webprefs.default_font_size"] =
77 settings_private::PrefType::PREF_TYPE_NUMBER; 79 settings_private::PrefType::PREF_TYPE_NUMBER;
78 (*s_whitelist)["webkit.webprefs.minimum_font_size"] = 80 (*s_whitelist)["webkit.webprefs.minimum_font_size"] =
79 settings_private::PrefType::PREF_TYPE_NUMBER; 81 settings_private::PrefType::PREF_TYPE_NUMBER;
80 (*s_whitelist)["webkit.webprefs.fonts.fixed.Zyyy"] = 82 (*s_whitelist)["webkit.webprefs.fonts.fixed.Zyyy"] =
81 settings_private::PrefType::PREF_TYPE_STRING; 83 settings_private::PrefType::PREF_TYPE_STRING;
82 (*s_whitelist)["webkit.webprefs.fonts.sansserif.Zyyy"] = 84 (*s_whitelist)["webkit.webprefs.fonts.sansserif.Zyyy"] =
83 settings_private::PrefType::PREF_TYPE_STRING; 85 settings_private::PrefType::PREF_TYPE_STRING;
84 (*s_whitelist)["webkit.webprefs.fonts.serif.Zyyy"] = 86 (*s_whitelist)["webkit.webprefs.fonts.serif.Zyyy"] =
85 settings_private::PrefType::PREF_TYPE_STRING; 87 settings_private::PrefType::PREF_TYPE_STRING;
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 639
638 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 640 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
639 #if defined(OS_CHROMEOS) 641 #if defined(OS_CHROMEOS)
640 return CrosSettings::Get()->IsCrosSettings(pref_name); 642 return CrosSettings::Get()->IsCrosSettings(pref_name);
641 #else 643 #else
642 return false; 644 return false;
643 #endif 645 #endif
644 } 646 }
645 647
646 } // namespace extensions 648 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/appearance_page/appearance_fonts_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698