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

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

Issue 2413623004: MD Settings: allow changing to GTK+ theme on Linux (Closed)
Patch Set: rejigger tests Created 4 years, 2 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
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.custom_chrome_frame"] = 70 (*s_whitelist)["browser.custom_chrome_frame"] =
71 settings_private::PrefType::PREF_TYPE_BOOLEAN; 71 settings_private::PrefType::PREF_TYPE_BOOLEAN;
72 (*s_whitelist)["browser.show_home_button"] = 72 (*s_whitelist)["browser.show_home_button"] =
73 settings_private::PrefType::PREF_TYPE_BOOLEAN; 73 settings_private::PrefType::PREF_TYPE_BOOLEAN;
74 74
75 // Appearance settings. 75 // Appearance settings.
76 (*s_whitelist)["extensions.theme.id"] = 76 (*s_whitelist)["extensions.theme.id"] =
77 settings_private::PrefType::PREF_TYPE_STRING; 77 settings_private::PrefType::PREF_TYPE_STRING;
78 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
79 (*s_whitelist)["extensions.theme.use_system"] =
80 settings_private::PrefType::PREF_TYPE_BOOLEAN;
81 #endif
78 (*s_whitelist)["webkit.webprefs.default_fixed_font_size"] = 82 (*s_whitelist)["webkit.webprefs.default_fixed_font_size"] =
79 settings_private::PrefType::PREF_TYPE_NUMBER; 83 settings_private::PrefType::PREF_TYPE_NUMBER;
80 (*s_whitelist)["webkit.webprefs.default_font_size"] = 84 (*s_whitelist)["webkit.webprefs.default_font_size"] =
81 settings_private::PrefType::PREF_TYPE_NUMBER; 85 settings_private::PrefType::PREF_TYPE_NUMBER;
82 (*s_whitelist)["webkit.webprefs.minimum_font_size"] = 86 (*s_whitelist)["webkit.webprefs.minimum_font_size"] =
83 settings_private::PrefType::PREF_TYPE_NUMBER; 87 settings_private::PrefType::PREF_TYPE_NUMBER;
84 (*s_whitelist)["webkit.webprefs.fonts.fixed.Zyyy"] = 88 (*s_whitelist)["webkit.webprefs.fonts.fixed.Zyyy"] =
85 settings_private::PrefType::PREF_TYPE_STRING; 89 settings_private::PrefType::PREF_TYPE_STRING;
86 (*s_whitelist)["webkit.webprefs.fonts.sansserif.Zyyy"] = 90 (*s_whitelist)["webkit.webprefs.fonts.sansserif.Zyyy"] =
87 settings_private::PrefType::PREF_TYPE_STRING; 91 settings_private::PrefType::PREF_TYPE_STRING;
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 666
663 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 667 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
664 #if defined(OS_CHROMEOS) 668 #if defined(OS_CHROMEOS)
665 return CrosSettings::Get()->IsCrosSettings(pref_name); 669 return CrosSettings::Get()->IsCrosSettings(pref_name);
666 #else 670 #else
667 return false; 671 return false;
668 #endif 672 #endif
669 } 673 }
670 674
671 } // namespace extensions 675 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698