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

Side by Side Diff: chrome/browser/chromeos/settings/cros_settings_names.cc

Issue 10827050: Added a timezone policy and pyauto tests for it. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments. Created 8 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/settings/cros_settings_names.h" 5 #include "chrome/browser/chromeos/settings/cros_settings_names.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 8
9 const char kCrosSettingsPrefix[] = "cros."; 9 const char kCrosSettingsPrefix[] = "cros.";
10 10
11 // All cros.accounts.* settings are stored in SignedSettings. 11 // All cros.accounts.* settings are stored in SignedSettings.
12 const char kAccountsPrefAllowGuest[] = "cros.accounts.allowBWSI"; 12 const char kAccountsPrefAllowGuest[] = "cros.accounts.allowBWSI";
13 const char kAccountsPrefAllowNewUser[] = "cros.accounts.allowGuest"; 13 const char kAccountsPrefAllowNewUser[] = "cros.accounts.allowGuest";
14 const char kAccountsPrefShowUserNamesOnSignIn[] 14 const char kAccountsPrefShowUserNamesOnSignIn[]
15 = "cros.accounts.showUserNamesOnSignIn"; 15 = "cros.accounts.showUserNamesOnSignIn";
16 const char kAccountsPrefUsers[] = "cros.accounts.users"; 16 const char kAccountsPrefUsers[] = "cros.accounts.users";
17 const char kAccountsPrefEphemeralUsersEnabled[] = 17 const char kAccountsPrefEphemeralUsersEnabled[] =
18 "cros.accounts.ephemeralUsersEnabled"; 18 "cros.accounts.ephemeralUsersEnabled";
19 19
20 // Name of signed setting persisted on device, writeable only by owner. 20 // Name of signed setting persisted on device, writeable only by owner.
21 const char kSettingProxyEverywhere[] = "cros.proxy.everywhere"; 21 const char kSettingProxyEverywhere[] = "cros.proxy.everywhere";
22 22
23 // All cros.signed.* settings are stored in SignedSettings. 23 // All cros.signed.* settings are stored in SignedSettings.
24 const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled"; 24 const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled";
25 25
26 // The first constant refers to the user setting editable in the UI. The second
27 // refers to the timezone policy. These are currently separated because the
28 // policy stack for device settings does not support the required behavior (see
29 // the description in policy_templates.json).
26 const char kSystemTimezone[] = "cros.system.timezone"; 30 const char kSystemTimezone[] = "cros.system.timezone";
31 const char kSystemTimezonePolicy[] = "cros.system.timezone_policy";
27 32
28 const char kDeviceOwner[] = "cros.device.owner"; 33 const char kDeviceOwner[] = "cros.device.owner";
29 34
30 const char kStatsReportingPref[] = "cros.metrics.reportingEnabled"; 35 const char kStatsReportingPref[] = "cros.metrics.reportingEnabled";
31 36
32 const char kReleaseChannel[] = "cros.system.releaseChannel"; 37 const char kReleaseChannel[] = "cros.system.releaseChannel";
33 const char kReleaseChannelDelegated[] = "cros.system.releaseChannelDelegated"; 38 const char kReleaseChannelDelegated[] = "cros.system.releaseChannelDelegated";
34 39
35 // A boolean pref that indicates whether OS & firmware version info should be 40 // A boolean pref that indicates whether OS & firmware version info should be
36 // reported along with device policy requests. 41 // reported along with device policy requests.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 75
71 // Defines the set of URLs to be opened on login to the anonymous account used 76 // Defines the set of URLs to be opened on login to the anonymous account used
72 // if the device is in KIOSK mode. 77 // if the device is in KIOSK mode.
73 const char kStartUpUrls[] = "cros.start_up_urls"; 78 const char kStartUpUrls[] = "cros.start_up_urls";
74 79
75 // This policy should not appear in the protobuf ever but is used internally to 80 // This policy should not appear in the protobuf ever but is used internally to
76 // signal that we are running in a "safe-mode" for policy recovery. 81 // signal that we are running in a "safe-mode" for policy recovery.
77 const char kPolicyMissingMitigationMode[] = 82 const char kPolicyMissingMitigationMode[] =
78 "cros.internal.policy_mitigation_mode"; 83 "cros.internal.policy_mitigation_mode";
79 } // namespace chromeos 84 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/cros_settings_names.h ('k') | chrome/browser/chromeos/settings/device_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698