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

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

Issue 2017283002: MD Settings: implement printing page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: asdf 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
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 settings_private::PrefType::PREF_TYPE_STRING; 89 settings_private::PrefType::PREF_TYPE_STRING;
90 90
91 // Downloads settings. 91 // Downloads settings.
92 (*s_whitelist)["download.default_directory"] = 92 (*s_whitelist)["download.default_directory"] =
93 settings_private::PrefType::PREF_TYPE_STRING; 93 settings_private::PrefType::PREF_TYPE_STRING;
94 (*s_whitelist)["download.prompt_for_download"] = 94 (*s_whitelist)["download.prompt_for_download"] =
95 settings_private::PrefType::PREF_TYPE_BOOLEAN; 95 settings_private::PrefType::PREF_TYPE_BOOLEAN;
96 (*s_whitelist)["gdata.disabled"] = 96 (*s_whitelist)["gdata.disabled"] =
97 settings_private::PrefType::PREF_TYPE_BOOLEAN; 97 settings_private::PrefType::PREF_TYPE_BOOLEAN;
98 98
99 // Printing settings.
100 (*s_whitelist)["local_discovery.notifications_enabled"] =
101 settings_private::PrefType::PREF_TYPE_BOOLEAN;
102
99 (*s_whitelist)["enable_do_not_track"] = 103 (*s_whitelist)["enable_do_not_track"] =
100 settings_private::PrefType::PREF_TYPE_BOOLEAN; 104 settings_private::PrefType::PREF_TYPE_BOOLEAN;
101 (*s_whitelist)["homepage"] = settings_private::PrefType::PREF_TYPE_URL; 105 (*s_whitelist)["homepage"] = settings_private::PrefType::PREF_TYPE_URL;
102 (*s_whitelist)["homepage_is_newtabpage"] = 106 (*s_whitelist)["homepage_is_newtabpage"] =
103 settings_private::PrefType::PREF_TYPE_BOOLEAN; 107 settings_private::PrefType::PREF_TYPE_BOOLEAN;
104 (*s_whitelist)["intl.app_locale"] = 108 (*s_whitelist)["intl.app_locale"] =
105 settings_private::PrefType::PREF_TYPE_STRING; 109 settings_private::PrefType::PREF_TYPE_STRING;
106 (*s_whitelist)["net.network_prediction_options"] = 110 (*s_whitelist)["net.network_prediction_options"] =
107 settings_private::PrefType::PREF_TYPE_NUMBER; 111 settings_private::PrefType::PREF_TYPE_NUMBER;
108 (*s_whitelist)["profile.password_manager_enabled"] = 112 (*s_whitelist)["profile.password_manager_enabled"] =
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 633
630 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 634 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
631 #if defined(OS_CHROMEOS) 635 #if defined(OS_CHROMEOS)
632 return CrosSettings::Get()->IsCrosSettings(pref_name); 636 return CrosSettings::Get()->IsCrosSettings(pref_name);
633 #else 637 #else
634 return false; 638 return false;
635 #endif 639 #endif
636 } 640 }
637 641
638 } // namespace extensions 642 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | chrome/browser/resources/settings/advanced_page/advanced_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698