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

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

Issue 2438443005: MD Settings: Date and Time page, part 2/3 (Closed)
Patch Set: rebase Created 4 years, 1 month 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 (*s_whitelist)["cros.device.allow_bluetooth"] = 252 (*s_whitelist)["cros.device.allow_bluetooth"] =
253 settings_private::PrefType::PREF_TYPE_BOOLEAN; 253 settings_private::PrefType::PREF_TYPE_BOOLEAN;
254 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] = 254 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] =
255 settings_private::PrefType::PREF_TYPE_BOOLEAN; 255 settings_private::PrefType::PREF_TYPE_BOOLEAN;
256 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] = 256 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] =
257 settings_private::PrefType::PREF_TYPE_BOOLEAN; 257 settings_private::PrefType::PREF_TYPE_BOOLEAN;
258 (*s_whitelist)["settings.enable_screen_lock"] = 258 (*s_whitelist)["settings.enable_screen_lock"] =
259 settings_private::PrefType::PREF_TYPE_BOOLEAN; 259 settings_private::PrefType::PREF_TYPE_BOOLEAN;
260 260
261 // Time zone settings. 261 // Time zone settings.
262 (*s_whitelist)["cros.system.timezone"] =
263 settings_private::PrefType::PREF_TYPE_BOOLEAN;
262 (*s_whitelist)["settings.resolve_timezone_by_geolocation"] = 264 (*s_whitelist)["settings.resolve_timezone_by_geolocation"] =
263 settings_private::PrefType::PREF_TYPE_BOOLEAN; 265 settings_private::PrefType::PREF_TYPE_BOOLEAN;
264 266
265 // Ash settings. 267 // Ash settings.
266 (*s_whitelist)["settings.enable_stylus_tools"] = 268 (*s_whitelist)["settings.enable_stylus_tools"] =
267 settings_private::PrefType::PREF_TYPE_BOOLEAN; 269 settings_private::PrefType::PREF_TYPE_BOOLEAN;
268 (*s_whitelist)["settings.launch_palette_on_eject_event"] = 270 (*s_whitelist)["settings.launch_palette_on_eject_event"] =
269 settings_private::PrefType::PREF_TYPE_BOOLEAN; 271 settings_private::PrefType::PREF_TYPE_BOOLEAN;
270 272
271 // Input method settings. 273 // Input method settings.
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 668
667 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 669 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
668 #if defined(OS_CHROMEOS) 670 #if defined(OS_CHROMEOS)
669 return CrosSettings::Get()->IsCrosSettings(pref_name); 671 return CrosSettings::Get()->IsCrosSettings(pref_name);
670 #else 672 #else
671 return false; 673 return false;
672 #endif 674 #endif
673 } 675 }
674 676
675 } // namespace extensions 677 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698