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

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

Issue 2393703005: MD Settings: Date and Time page, part 1/3 (Closed)
Patch Set: . 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 settings_private::PrefType::PREF_TYPE_BOOLEAN; 247 settings_private::PrefType::PREF_TYPE_BOOLEAN;
248 (*s_whitelist)["cros.device.allow_bluetooth"] = 248 (*s_whitelist)["cros.device.allow_bluetooth"] =
249 settings_private::PrefType::PREF_TYPE_BOOLEAN; 249 settings_private::PrefType::PREF_TYPE_BOOLEAN;
250 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] = 250 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] =
251 settings_private::PrefType::PREF_TYPE_BOOLEAN; 251 settings_private::PrefType::PREF_TYPE_BOOLEAN;
252 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] = 252 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] =
253 settings_private::PrefType::PREF_TYPE_BOOLEAN; 253 settings_private::PrefType::PREF_TYPE_BOOLEAN;
254 (*s_whitelist)["settings.enable_screen_lock"] = 254 (*s_whitelist)["settings.enable_screen_lock"] =
255 settings_private::PrefType::PREF_TYPE_BOOLEAN; 255 settings_private::PrefType::PREF_TYPE_BOOLEAN;
256 256
257 // Time zone settings.
258 (*s_whitelist)["settings.resolve_timezone_by_geolocation"] =
259 settings_private::PrefType::PREF_TYPE_BOOLEAN;
260
257 // Ash settings. 261 // Ash settings.
258 (*s_whitelist)["settings.enable_stylus_tools"] = 262 (*s_whitelist)["settings.enable_stylus_tools"] =
259 settings_private::PrefType::PREF_TYPE_BOOLEAN; 263 settings_private::PrefType::PREF_TYPE_BOOLEAN;
260 (*s_whitelist)["settings.launch_palette_on_eject_event"] = 264 (*s_whitelist)["settings.launch_palette_on_eject_event"] =
261 settings_private::PrefType::PREF_TYPE_BOOLEAN; 265 settings_private::PrefType::PREF_TYPE_BOOLEAN;
262 266
263 // Input method settings. 267 // Input method settings.
264 (*s_whitelist)["settings.language.preload_engines"] = 268 (*s_whitelist)["settings.language.preload_engines"] =
265 settings_private::PrefType::PREF_TYPE_STRING; 269 settings_private::PrefType::PREF_TYPE_STRING;
266 (*s_whitelist)["settings.language.enabled_extension_imes"] = 270 (*s_whitelist)["settings.language.enabled_extension_imes"] =
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 662
659 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 663 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
660 #if defined(OS_CHROMEOS) 664 #if defined(OS_CHROMEOS)
661 return CrosSettings::Get()->IsCrosSettings(pref_name); 665 return CrosSettings::Get()->IsCrosSettings(pref_name);
662 #else 666 #else
663 return false; 667 return false;
664 #endif 668 #endif
665 } 669 }
666 670
667 } // namespace extensions 671 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698