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
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/settings/cros_settings_names.h"
9 const char kCrosSettingsPrefix
[] = "cros.";
11 // All cros.accounts.* settings are stored in SignedSettings.
12 const char kAccountsPrefAllowGuest
[] = "cros.accounts.allowBWSI";
13 const char kAccountsPrefAllowNewUser
[] = "cros.accounts.allowGuest";
14 const char kAccountsPrefShowUserNamesOnSignIn
[]
15 = "cros.accounts.showUserNamesOnSignIn";
16 const char kAccountsPrefUsers
[] = "cros.accounts.users";
17 const char kAccountsPrefEphemeralUsersEnabled
[] =
18 "cros.accounts.ephemeralUsersEnabled";
19 const char kAccountsPrefDeviceLocalAccounts
[] =
20 "cros.accounts.deviceLocalAccounts";
22 // Name of signed setting persisted on device, writeable only by owner.
23 const char kSettingProxyEverywhere
[] = "cros.proxy.everywhere";
25 // All cros.signed.* settings are stored in SignedSettings.
26 const char kSignedDataRoamingEnabled
[] = "cros.signed.data_roaming_enabled";
28 // The first constant refers to the user setting editable in the UI. The second
29 // refers to the timezone policy. This seperation is necessary to allow the user
30 // to temporarily change the timezone for the current session and reset it to
31 // the policy's value on logout.
32 const char kSystemTimezone
[] = "cros.system.timezone";
33 const char kSystemTimezonePolicy
[] = "cros.system.timezone_policy";
35 const char kDeviceOwner
[] = "cros.device.owner";
37 const char kStatsReportingPref
[] = "cros.metrics.reportingEnabled";
39 const char kReleaseChannel
[] = "cros.system.releaseChannel";
40 const char kReleaseChannelDelegated
[] = "cros.system.releaseChannelDelegated";
42 // A boolean pref that indicates whether OS & firmware version info should be
43 // reported along with device policy requests.
44 const char kReportDeviceVersionInfo
[] =
45 "cros.device_status.report_version_info";
47 // A boolean pref that indicates whether device activity times should be
48 // recorded and reported along with device policy requests.
49 const char kReportDeviceActivityTimes
[] =
50 "cros.device_status.report_activity_times";
52 // A boolean pref that indicates whether the state of the dev mode switch at
53 // boot should be reported along with device policy requests.
54 const char kReportDeviceBootMode
[] = "cros.device_status.report_boot_mode";
56 // A boolean pref that indicates whether the current location should be reported
57 // along with device policy requests.
58 const char kReportDeviceLocation
[] = "cros.device_status.report_location";
60 // A list of dictionaries, each detailing one extension to install as part of
61 // the AppPack and including the following fields:
62 // "extension-id": ID of the extension to install
63 // "update-url": URL to check the extension's version and download location
64 // "key-checksum": checksum of the extension's CRX public key, encoded in hex.
65 const char kAppPack
[] = "cros.app_pack";
67 // Values from the ScreenSaver proto. Defines the extension ID of the screen
68 // saver extension and the timeout before the screen saver should be started.
69 const char kScreenSaverExtensionId
[] = "cros.screen_saver.extension_id";
70 const char kScreenSaverTimeout
[] = "cros.screen_saver.timeout";
72 // Values from the ForcedLogoutTimeouts proto. Defines the timeouts before a
73 // user is logged out after some period of inactivity as well as the duration of
74 // a warning message informing the user about the pending logout.
75 const char kIdleLogoutTimeout
[] = "cros.idle_logout.timeout";
76 const char kIdleLogoutWarningDuration
[] = "cros.idle_logout.warning_duration";
78 // Defines the set of URLs to be opened on login to the anonymous account used
79 // if the device is in KIOSK mode.
80 const char kStartUpUrls
[] = "cros.start_up_urls";
82 // This policy should not appear in the protobuf ever but is used internally to
83 // signal that we are running in a "safe-mode" for policy recovery.
84 const char kPolicyMissingMitigationMode
[] =
85 "cros.internal.policy_mitigation_mode";
86 } // namespace chromeos