15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "chrome/browser/chromeos/settings/cros_settings_names.h" 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace chromeos { 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCrosSettingsPrefix[] = "cros."; 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// All cros.accounts.* settings are stored in SignedSettings. 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAccountsPrefAllowGuest[] = "cros.accounts.allowBWSI"; 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAccountsPrefAllowNewUser[] = "cros.accounts.allowGuest"; 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAccountsPrefShowUserNamesOnSignIn[] 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) = "cros.accounts.showUserNamesOnSignIn"; 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAccountsPrefUsers[] = "cros.accounts.users"; 175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAccountsPrefEphemeralUsersEnabled[] = 185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) "cros.accounts.ephemeralUsersEnabled"; 192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAccountsPrefDeviceLocalAccounts[] = 202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) "cros.accounts.deviceLocalAccounts"; 21c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAccountsPrefDeviceLocalAccountsKeyId[] = 22c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) "id"; 23c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAccountsPrefDeviceLocalAccountsKeyType[] = 24c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) "type"; 25c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAccountsPrefDeviceLocalAccountsKeyKioskAppId[] = 26c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) "kiosk_app_id"; 27c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAccountsPrefDeviceLocalAccountsKeyKioskAppUpdateURL[] = 28c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) "kiosk_app_id_update_url"; 292a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAccountsPrefDeviceLocalAccountAutoLoginId[] = 302a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) "cros.accounts.deviceLocalAccountAutoLoginId"; 312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAccountsPrefDeviceLocalAccountAutoLoginDelay[] = 322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) "cros.accounts.deviceLocalAccountAutoLoginDelay"; 33c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAccountsPrefDeviceLocalAccountAutoLoginBailoutEnabled[] = 34c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) "cros.accounts.deviceLocalAccountAutoLoginBailoutEnabled"; 35eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kAccountsPrefSupervisedUsersEnabled[] = 36eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch "cros.accounts.supervisedUsersEnabled"; 375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// All cros.signed.* settings are stored in SignedSettings. 395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled"; 405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 41868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// True if auto-update was disabled by the system administrator. 42868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kUpdateDisabled[] = "cros.system.updateDisabled"; 43868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 44868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// A list of strings which specifies allowed connection types for 45868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// update. 46868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kAllowedConnectionTypesForUpdate[] = 47868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) "cros.system.allowedConnectionTypesForUpdate"; 48868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The first constant refers to the user setting editable in the UI. The second 505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// refers to the timezone policy. This seperation is necessary to allow the user 515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to temporarily change the timezone for the current session and reset it to 525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the policy's value on logout. 535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSystemTimezone[] = "cros.system.timezone"; 545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSystemTimezonePolicy[] = "cros.system.timezone_policy"; 555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 56bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// Value of kUse24HourClock user preference of device' owner. 57bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// ChromeOS device uses this setting on login screen. 58bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSystemUse24HourClock[] = "cros.system.use_24hour_clock"; 59bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch 605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceOwner[] = "cros.device.owner"; 615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStatsReportingPref[] = "cros.metrics.reportingEnabled"; 635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kReleaseChannel[] = "cros.system.releaseChannel"; 655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kReleaseChannelDelegated[] = "cros.system.releaseChannelDelegated"; 665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref that indicates whether OS & firmware version info should be 685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// reported along with device policy requests. 695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kReportDeviceVersionInfo[] = 705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) "cros.device_status.report_version_info"; 715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref that indicates whether device activity times should be 735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// recorded and reported along with device policy requests. 745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kReportDeviceActivityTimes[] = 755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) "cros.device_status.report_activity_times"; 765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref that indicates whether the state of the dev mode switch at 785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// boot should be reported along with device policy requests. 795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kReportDeviceBootMode[] = "cros.device_status.report_boot_mode"; 805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref that indicates whether the current location should be reported 825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// along with device policy requests. 835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kReportDeviceLocation[] = "cros.device_status.report_location"; 845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 857dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Determines whether the device reports network interface types and addresses 867dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// in device status reports to the device management server. 877dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kReportDeviceNetworkInterfaces[] = 887dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch "cros.device_status.report_network_interfaces"; 897dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch 905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A list of dictionaries, each detailing one extension to install as part of 915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the AppPack and including the following fields: 925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "extension-id": ID of the extension to install 935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "update-url": URL to check the extension's version and download location 945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "key-checksum": checksum of the extension's CRX public key, encoded in hex. 955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppPack[] = "cros.app_pack"; 96c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAppPackKeyExtensionId[] = "extension-id"; 97c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAppPackKeyUpdateUrl[] = "update-url"; 985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Values from the ScreenSaver proto. Defines the extension ID of the screen 1005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// saver extension and the timeout before the screen saver should be started. 1015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kScreenSaverExtensionId[] = "cros.screen_saver.extension_id"; 1025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kScreenSaverTimeout[] = "cros.screen_saver.timeout"; 1035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Values from the ForcedLogoutTimeouts proto. Defines the timeouts before a 1055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// user is logged out after some period of inactivity as well as the duration of 1065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a warning message informing the user about the pending logout. 1075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIdleLogoutTimeout[] = "cros.idle_logout.timeout"; 1085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIdleLogoutWarningDuration[] = "cros.idle_logout.warning_duration"; 1095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Defines the set of URLs to be opened on login to the anonymous account used 1115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// if the device is in KIOSK mode. 1125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStartUpUrls[] = "cros.start_up_urls"; 1135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This policy should not appear in the protobuf ever but is used internally to 1155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// signal that we are running in a "safe-mode" for policy recovery. 1165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPolicyMissingMitigationMode[] = 1175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) "cros.internal.policy_mitigation_mode"; 1182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 1192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A boolean pref that indicates whether users are allowed to redeem offers 1202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// through Chrome OS Registration. 1212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAllowRedeemChromeOsRegistrationOffers[] = 1222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) "cros.echo.allow_redeem_chrome_os_registration_offers"; 1232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 1242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A list pref storing the flags that need to be applied to the browser upon 1252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// start-up. 1262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kStartUpFlags[] = "cros.startup_flags"; 127c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) 128c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A string pref for the restrict parameter to be appended to the Variations URL 129c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// when pinging the Variations server. 130c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kVariationsRestrictParameter[] = 131c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) "cros.variations_restrict_parameter"; 132c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) 133c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A boolean pref that indicates whether attestation is enabled for the device. 134c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDeviceAttestationEnabled[] = "cros.device.attestation_enabled"; 135c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) 1365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} // namespace chromeos 137