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/common/pref_names.h"
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "base/basictypes.h"
82a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#include "chrome/common/pref_font_webkit_names.h"
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace prefs {
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// *************** PROFILE PREFS ***************
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These are attached to the user profile
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string property indicating whether default apps should be installed
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// in this profile.  Use the value "install" to enable defaults apps, or
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "noinstall" to disable them.  This property is usually set in the
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// master_preferences and copied into the profile preferences on first run.
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Defaults apps are installed only when creating a new profile.
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultApps[] = "default_apps";
215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether we have installed default apps yet in this profile.
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultAppsInstalled[] = "default_apps_installed";
245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables screenshot accelerators and extension APIs.
262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// This setting resides both in profile prefs and local state. Accelerator
272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// handling code reads local state, while extension APIs use profile pref.
282a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableScreenshots[] = "disable_screenshots";
292a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
30116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// If set to true profiles are created in ephemeral mode and do not store their
31116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// data in the profile folder on disk but only in memory.
32116680a4aac90f2aa7413d9095a592090648e557Ben Murdochconst char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
33116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether the New Tab page is the home page or not.
355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This is the URL of the page to load when opening new tabs.
385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHomePage[] = "homepage";
395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
40ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// An integer that keeps track of the profile icon version. This allows us to
41ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// determine the state of the profile icon for icon format changes.
42ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kProfileIconVersion[] = "profile.icon_version";
43ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to determine if the last session exited cleanly. Set to false when
455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// first opened, and to true when closing. On startup if the value is false,
465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it means the profile didn't exit cleanly.
475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// DEPRECATED: this is replaced by kSessionExitType and exists for backwards
48cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// compatibility.
495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSessionExitedCleanly[] = "profile.exited_cleanly";
505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref whose values is one of the values defined by
525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// shutdown. Used to determine the exit type the last time the profile was open.
555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSessionExitType[] = "profile.exit_type";
565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref. Holds one of several values:
585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0: (deprecated) open the homepage on startup.
595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1: restore the last session.
605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2: this was used to indicate a specific session should be restored. It is
615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//    no longer used, but saved to avoid conflict with old preferences.
625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 3: unused, previously indicated the user wants to restore a saved session.
635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 4: restore the URLs defined in kURLsToRestoreOnStartup.
645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 5: open the New Tab Page on startup.
655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestoreOnStartup[] = "session.restore_on_startup";
665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A preference to keep track of whether we have already checked whether we
685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// We only need to do this check once, on upgrade from m18 or lower to m19 or
705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// higher.
715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
73116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Serialized migration time of kURLsToRestoreOnStartup (see
74116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// base::Time::ToInternalValue for details on serialization format).
75116680a4aac90f2aa7413d9095a592090648e557Ben Murdochconst char kRestoreStartupURLsMigrationTime[] =
76116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch    "session.startup_urls_migration_time";
77116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
78ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// The URLs to restore on startup or when the home button is pressed. The URLs
79ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// are only restored on startup if kRestoreOnStartup is 4.
808bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kURLsToRestoreOnStartup[] = "session.startup_urls";
818bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
828bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Old startup url pref name for kURLsToRestoreOnStartup.
838bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup";
848bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
85116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Stores the email address associated with the google account of the custodian
86116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// of the supervised user, set when the supervised user is created.
87116680a4aac90f2aa7413d9095a592090648e557Ben Murdochconst char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email";
88116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
89116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Stores the display name associated with the google account of the custodian
90116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// of the supervised user, updated (if possible) each time the supervised user
91116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// starts a session.
92116680a4aac90f2aa7413d9095a592090648e557Ben Murdochconst char kSupervisedUserCustodianName[] = "profile.managed.custodian_name";
93116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
946e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Stores the URL of the profile image associated with the google account of the
956e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// custodian of the supervised user.
966e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)const char kSupervisedUserCustodianProfileImageURL[] =
976e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)    "profile.managed.custodian_profile_image_url";
986e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
996e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Stores the URL of the profile associated with the google account of the
1006e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// custodian of the supervised user.
1016e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)const char kSupervisedUserCustodianProfileURL[] =
1026e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)    "profile.managed.custodian_profile_url";
1036e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
1046e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Maps host names to whether the host is manually allowed or blocked.
1056e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)const char kSupervisedUserManualHosts[] = "profile.managed.manual_hosts";
1066e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
1076e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Maps URLs to whether the URL is manually allowed or blocked.
1086e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)const char kSupervisedUserManualURLs[] = "profile.managed.manual_urls";
1096e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
1106e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Stores the email address associated with the google account of the secondary
1116e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// custodian of the supervised user, set when the supervised user is created.
1126e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)const char kSupervisedUserSecondCustodianEmail[] =
1136e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)    "profile.managed.second_custodian_email";
1146e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
1156e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Stores the display name associated with the google account of the secondary
1166e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// custodian of the supervised user, updated (if possible) each time the
1176e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// supervised user starts a session.
1186e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)const char kSupervisedUserSecondCustodianName[] =
1196e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)    "profile.managed.second_custodian_name";
1206e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
1216e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Stores the URL of the profile image associated with the google account of the
1226e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// secondary custodian of the supervised user.
1236e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)const char kSupervisedUserSecondCustodianProfileImageURL[] =
1246e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)    "profile.managed.second_custodian_profile_image_url";
1256e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
1266e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Stores the URL of the profile associated with the google account of the
1276e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// secondary custodian of the supervised user.
1286e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)const char kSupervisedUserSecondCustodianProfileURL[] =
1296e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)    "profile.managed.second_custodian_profile_url";
1306e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
131116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Stores settings that can be modified both by a supervised user and their
132116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// manager. See SupervisedUserSharedSettingsService for a description of
133116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// the format.
134116680a4aac90f2aa7413d9095a592090648e557Ben Murdochconst char kSupervisedUserSharedSettings[] = "profile.managed.shared_settings";
1354e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
1365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The application locale.
1375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// For OS_CHROMEOS we maintain kApplicationLocale property in both local state
1385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// and user's profile.  Global property determines locale of login screen,
1395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// while user's profile determines his personal locale preference.
1405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApplicationLocale[] = "intl.app_locale";
1415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
1425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Locale preference of device' owner.  ChromeOS device appears in this locale
1435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// after startup/wakeup/signout.
1445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOwnerLocale[] = "intl.owner_locale";
1455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Locale accepted by user.  Non-syncable.
1465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to determine whether we need to show Locale Change notification.
1475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted";
1485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Non-syncable item.
1495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// It is used in two distinct ways.
1505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (1) Used for two-step initialization of locale in ChromeOS
1515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//     because synchronization of kApplicationLocale is not instant.
1525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (2) Used to detect locale change.  Locale change is detected by
1535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//     LocaleChangeGuard in case values of kApplicationLocaleBackup and
1545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//     kApplicationLocale are both non-empty and differ.
1555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Following is a table showing how state of those prefs may change upon
1565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// common real-life use cases:
1575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//                                  AppLocale Backup Accepted
1585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sync                                B        A       -
1605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Accept (B)                          B        B       B
1615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------
1625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// No sync and second login            A        A       -
1645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Change options                      B        B       -
1655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------
1665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sync                                A        A       -
1685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Locale changed on login screen      A        C       -
1695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Accept (A)                          A        A       A
1705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------
1715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sync                                B        A       -
1735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Revert                              A        A       -
1745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
1755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
1765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The default character encoding to assume for a web page in the
1785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// absence of MIME charset specification
1795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultCharset[] = "intl.charset_default";
1805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value to use for Accept-Languages HTTP header when making an HTTP
1825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// request.
1835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAcceptLanguages[] = "intl.accept_languages";
1845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value to use for showing locale-dependent encoding list for different
1865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// locale, it's initialized from the corresponding string resource that is
1875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// stored in non-translatable part of the resource bundle.
1885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStaticEncodings[] = "intl.static_encodings";
1895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If these change, the corresponding enums in the extension API
1915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// experimental.fontSettings.json must also change.
1925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char* const kWebKitScriptsForFontFamilyMaps[] = {
1932a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#define EXPAND_SCRIPT_FONT(x, script_name) script_name ,
1942a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#include "chrome/common/pref_font_script_names-inl.h"
1952a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)ALL_FONT_SCRIPTS("unused param")
1962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#undef EXPAND_SCRIPT_FONT
1975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)};
1985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const size_t kWebKitScriptsForFontFamilyMapsLength =
2005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    arraysize(kWebKitScriptsForFontFamilyMaps);
2015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Strings for WebKit font family preferences. If these change, the pref prefix
2035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// in pref_names_util.cc and the pref format in font_settings_api.cc must also
2045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// change.
2055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyMap[] =
2062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_STANDARD;
2075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyMap[] =
2082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_FIXED;
2095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyMap[] =
2102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_SERIF;
2115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyMap[] =
2122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_SANSERIF;
2135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCursiveFontFamilyMap[] =
2142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_CURSIVE;
2155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFantasyFontFamilyMap[] =
2162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_FANTASY;
2175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitPictographFontFamilyMap[] =
2182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_PICTOGRAPH;
2195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyArabic[] =
2205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Arab";
2215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyArabic[] =
2225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Arab";
2235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyArabic[] =
2245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Arab";
2255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyArabic[] =
2265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Arab";
2275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyCyrillic[] =
2285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Cyrl";
2295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyCyrillic[] =
2305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Cyrl";
2315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyCyrillic[] =
2325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Cyrl";
2335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyCyrillic[] =
2345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Cyrl";
2355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyGreek[] =
2365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Grek";
2375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyGreek[] =
2385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Grek";
2395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyGreek[] =
2405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Grek";
2415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyGreek[] =
2425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Grek";
2435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyJapanese[] =
2445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Jpan";
2455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyJapanese[] =
2465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Jpan";
2475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyJapanese[] =
2485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Jpan";
2495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyJapanese[] =
2505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Jpan";
2515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyKorean[] =
2525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Hang";
2535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyKorean[] =
2545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Hang";
2555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyKorean[] =
2565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Hang";
2575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyKorean[] =
2585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Hang";
2595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCursiveFontFamilyKorean[] =
2605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.cursive.Hang";
2615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilySimplifiedHan[] =
2625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Hans";
2635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilySimplifiedHan[] =
2645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Hans";
2655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilySimplifiedHan[] =
2665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Hans";
2675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilySimplifiedHan[] =
2685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Hans";
2695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyTraditionalHan[] =
2705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Hant";
2715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyTraditionalHan[] =
2725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Hant";
2735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyTraditionalHan[] =
2745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Hant";
2755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyTraditionalHan[] =
2765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Hant";
2775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// WebKit preferences.
2795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
2805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled";
2815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitShrinksStandaloneImagesToFit[] =
2825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.shrinks_standalone_images_to_fit";
2835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitUsesUniversalDetector[] =
2845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.uses_universal_detector";
2855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitTextAreasAreResizable[] =
2865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.text_areas_are_resizable";
2875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled";
2885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links";
2895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitAllowDisplayingInsecureContent[] =
2905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.allow_displaying_insecure_content";
2915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitAllowRunningInsecureContent[] =
2925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.allow_running_insecure_content";
2935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
2945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor";
2955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom";
296868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kWebKitPasswordEchoEnabled[] =
297868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)    "webkit.webprefs.password_echo_enabled";
2985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
2995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCommonScript[] = "Zyyy";
3015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy";
3025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy";
3035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy";
3045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamily[] =
3055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Zyyy";
3065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy";
3075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy";
3085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitPictographFontFamily[] =
3095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.pictograph.Zyyy";
3105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size";
3115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitDefaultFixedFontSize[] =
3125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.default_fixed_font_size";
3135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
3145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitMinimumLogicalFontSize[] =
3155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.minimum_logical_font_size";
3165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
3175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
3185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.javascript_can_open_windows_automatically";
3195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitLoadsImagesAutomatically[] =
3205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.loads_images_automatically";
3215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled";
3225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when SafeBrowsing is enabled.
3245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
3255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3261320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Boolean that tell us whether Safe Browsing extended reporting is enabled.
327f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSafeBrowsingExtendedReportingEnabled[] =
328f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "safebrowsing.extended_reporting_enabled";
329f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
3305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when the SafeBrowsing interstitial should not allow
3315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// users to proceed anyway.
3325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingProceedAnywayDisabled[] =
3335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "safebrowsing.proceed_anyway_disabled";
3345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3356d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// Boolean that is true when SafeBrowsing has sent an incident report.
3366d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kSafeBrowsingIncidentReportSent[] =
3376d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)    "safebrowsing.incident_report_sent";
3386d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
3395f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// A dictionary mapping incident types to a dict of incident key:digest pairs.
3405f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)const char kSafeBrowsingIncidentsSent[] = "safebrowsing.incidents_sent";
3415f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
3425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enum that specifies whether Incognito mode is:
3435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0 - Enabled. Default behaviour. Default mode is available on demand.
3445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1 - Disabled. Used cannot browse pages in Incognito mode.
3455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2 - Forced. All pages/sessions are forced into Incognito.
3465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIncognitoModeAvailability[] = "incognito.mode_availability";
3475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when Suggest support is enabled.
3495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSearchSuggestEnabled[] = "search.suggest_enabled";
3505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3515d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#if defined(OS_ANDROID)
352116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// String indicating the Contextual Search enabled state.
353116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// "false" - opt-out (disabled)
354116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// "" (empty string) - undecided
355116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// "true" - opt-in (enabled)
3565d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kContextualSearchEnabled[] = "search.contextual_search_enabled";
3575d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#endif
3585d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
3595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether the browser should put up a confirmation
3605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// window when the user is attempting to quit. Mac only.
3615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
3625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE.  Enum that specifies whether to enforce a third-party cookie
3645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// blocking policy.  This has been superseded by kDefaultContentSettings +
3655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kBlockThirdPartyCookies.
3665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0 - allow all cookies.
3675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1 - block third-party cookies
3685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2 - block all cookies
3695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCookieBehavior[] = "security.cookie_behavior";
3705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean which specifies whether we should ask the user if we should download
3725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a file (true) or just download it automatically.
3735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPromptForDownload[] = "download.prompt_for_download";
3745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if we're using Link Doctor error pages.
3765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled";
3775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE: new pref now stored with user prefs instead of profile, as
3795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kDnsPrefetchingStartupList.
3805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList";
3815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An adaptively identified list of domain names to be pre-fetched during the
3835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// next startup, based on what was actually needed during this startup.
3845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list";
3855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE: new pref now stored with user prefs instead of profile, as
3875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kDnsPrefetchingHostReferralList.
3885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsHostReferralList[] = "HostReferralList";
3895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A list of host names used to fetch web pages, and their commonly used
3915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// sub-resource hostnames (and expected latency benefits from pre-resolving, or
3925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preconnecting to, such sub-resource hostnames).
3935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This list is adaptively grown and pruned.
3945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsPrefetchingHostReferralList[] =
3955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "dns_prefetching.host_referral_list";
3965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the SPDY protocol.
3985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSpdy[] = "spdy.disabled";
3995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for persisting HttpServerProperties.
4015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHttpServerProperties[] = "net.http_server_properties";
4025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for server names that support SPDY protocol.
4045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpdyServers[] = "spdy.servers";
4055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for servers that support Alternate-Protocol.
4075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAlternateProtocolServers[] = "spdy.alternate_protocol";
4085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the listed protocol schemes.
4105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisabledSchemes[] = "protocol.disabled_schemes";
4115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
412010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)#if defined(OS_ANDROID) || defined(OS_IOS)
4137dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Last time that a check for cloud policy management was done. This time is
4147dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// recorded on Android so that retries aren't attempted on every startup.
4157dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Instead the cloud policy registration is retried at least 1 or 3 days later.
4167dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kLastPolicyCheckTime[] = "policy.last_policy_check_time";
4177dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch#endif
4182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
4195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefix URL for the experimental Instant ZeroSuggest provider.
4205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInstantUIZeroSuggestUrlPrefix[] =
4215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "instant_ui.zero_suggest_url_prefix";
4225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to migrate preferences from local state to user preferences to
4245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enable multiple profiles.
4255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// BITMASK with possible values (see browser_prefs.cc for enum):
4265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0: No preferences migrated.
4275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList
4285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2: Browser window preferences migrated: kDevToolsSplitLocation and
4295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//    kBrowserWindowPlacement
4305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMultipleProfilePrefMigration[] =
4315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "local_state.multiple_profile_prefs_version";
4325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if prediction of network actions is allowed.
4345d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Actions include DNS prefetching, TCP and SSL preconnection, prerendering
4355d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// of web pages, and resource prefetching.
4365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// NOTE: The "dns_prefetching.enabled" value is used so that historical user
4375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences are not lost.
438116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions
439116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// is functioning as per crbug.com/334602.
4405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
4415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4426d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// A preference of enum chrome_browser_net::NetworkPredictionOptions shows
4436d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// if prediction of network actions is allowed, depending on network type.
4446d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// Actions include DNS prefetching, TCP and SSL preconnection, prerendering
4456d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// of web pages, and resource prefetching.
4466d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// TODO(bnc): Implement this preference as per crbug.com/334602.
447116680a4aac90f2aa7413d9095a592090648e557Ben Murdochconst char kNetworkPredictionOptions[] = "net.network_prediction_options";
4486d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
4495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer representing the state of the default apps installation process.
4505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This value is persisted in the profile's user preferences because the process
4515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is async, and the user may have stopped chrome in the middle.  The next time
4525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the profile is opened, the process will continue from where it left off.
4535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
4545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// See possible values in external_provider_impl.cc.
4555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultAppsInstallState[] = "default_apps_install_state";
4565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4572a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A boolean pref set to true if the Chrome Web Store icons should be hidden
4582a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// from the New Tab Page and app launcher.
4592a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kHideWebStoreIcon[] = "hide_web_store_icon";
4602a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
4615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
462c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A dictionary pref to hold the mute setting for all the currently known
463c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// audio devices.
464c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAudioDevicesMute[] = "settings.audio.devices.mute";
465c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
466c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A dictionary pref storing the volume settings for all the currently known
467c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// audio devices.
468c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAudioDevicesVolumePercent[] =
469c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "settings.audio.devices.volume_percent";
470c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
4715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref to initially mute volume if 1. This pref is ignored if
4725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |kAudioOutputAllowed| is set to false, but its value is preserved, therefore
473c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// when the policy is lifted the original mute state is restored.  This setting
474c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// is here only for migration purposes now. It is being replaced by the
475c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// |kAudioDevicesMute| setting.
4765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioMute[] = "settings.audio.mute";
4775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
478c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A double pref storing the user-requested volume. This setting is here only
479c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// for migration purposes now. It is being replaced by the
480c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// |kAudioDevicesVolumePercent| setting.
4815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioVolumePercent[] = "settings.audio.volume_percent";
4825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4835d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// An integer pref to record user's spring charger check result.
4845d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 0 - unknown charger, not checked yet.
4855d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 1 - confirmed safe charger.
4865d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 2 - confirmed original charger and declined to order new charger.
4875d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 3 - confirmed original charger and ordered new charger online.
4885d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 4 - confirmed original charger and ordered new charger by phone.
4895d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 5 - confirmed original charger, ordered a new one online, but continue to use
4905d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)//     the old one.
4915d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 6 - confirmed original charger, ordered a new one by phone, but continue to
4925d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)//     use the old one.
4935d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kSpringChargerCheck[] = "settings.spring_charger.check_result";
4945d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
4955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad tap-to-click is enabled.
4965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click";
4975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad tap-dragging is enabled.
4995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging";
5005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad three-finger-click is enabled.
5025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableTouchpadThreeFingerClick[] =
5035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.touchpad.enable_three_finger_click";
5045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad natural scrolling is enabled.
5065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNaturalScroll[] = "settings.touchpad.natural_scroll";
5075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if primary mouse button is the left button.
5095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right";
5105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref for the touchpad sensitivity.
5125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMouseSensitivity[] = "settings.mouse.sensitivity2";
5135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref for the touchpad sensitivity.
5155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
5165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if time should be displayed in 24-hour clock.
5185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
5195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref to disable Google Drive integration.
5215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The pref prefix should remain as "gdata" for backward compatibility.
5225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDrive[] = "gdata.disabled";
5235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref to disable Drive over cellular connections.
5255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The pref prefix should remain as "gdata" for backward compatibility.
5265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDriveOverCellular[] = "gdata.cellular.disabled";
5275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref to disable hosted files on Drive.
5295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The pref prefix should remain as "gdata" for backward compatibility.
5305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled";
5315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref set to the current input method.
5335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageCurrentInputMethod[] =
5345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.current_input_method";
5355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref set to the previous input method.
5375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePreviousInputMethod[] =
5385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.previous_input_method";
5395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the "next engine in menu"
5415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// hot-key lists.
5425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageHotkeyNextEngineInMenu[] =
5435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.hotkey_next_engine_in_menu";
5445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the "previous engine"
5465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// hot-key lists.
5475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageHotkeyPreviousEngine[] =
5485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.hotkey_previous_engine";
5495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the preferred language IDs
5515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (ex. "en-US,fr,ko").
5525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePreferredLanguages[] =
5535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.preferred_languages";
5545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the preloaded (active) input
5565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// method IDs (ex. "pinyin,mozc").
5575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePreloadEngines[] = "settings.language.preload_engines";
5585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
559b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// A List pref (comma-separated list) set to the extension IMEs to be enabled.
560b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)const char kLanguageEnabledExtensionImes[] =
561b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)    "settings.language.enabled_extension_imes";
5625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5631e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Integer prefs which determine how we remap modifier keys (e.g. swap Alt and
5645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
5655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// src/chrome/browser/chromeos/input_method/xkeyboard.h
5665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapSearchKeyTo[] =
5675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    // Note: we no longer use XKB for remapping these keys, but we can't change
5685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    // the pref names since the names are already synced with the cloud.
5695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_remap_search_key_to";
5705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapControlKeyTo[] =
5715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_remap_control_key_to";
5725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapAltKeyTo[] =
5735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_remap_alt_key_to";
5745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapCapsLockKeyTo[] =
5755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.remap_caps_lock_key_to";
5762a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kLanguageRemapDiamondKeyTo[] =
5772a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "settings.language.remap_diamond_key_to";
5785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5791e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// A boolean pref that causes top-row keys to be interpreted as function keys
5801e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// instead of as media keys.
5811e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kLanguageSendFunctionKeys[] =
5821e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    "settings.language.send_function_keys";
5831e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
5845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether key repeat is enabled.
5855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageXkbAutoRepeatEnabled[] =
5865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_auto_repeat_enabled_r2";
5875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref which determines key repeat delay (in ms).
5885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageXkbAutoRepeatDelay[] =
5895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_auto_repeat_delay_r2";
5905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref which determines key repeat interval (in ms).
5915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageXkbAutoRepeatInterval[] =
5925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_auto_repeat_interval_r2";
5935f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// "_r2" suffixes were added to the three prefs above when we changed the
5945f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// preferences to not be user-configurable or sync with the cloud. The prefs are
5955f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// now user-configurable and syncable again, but we don't want to overwrite the
5965f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// current values with the old synced values, so we continue to use this suffix.
5975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
598868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// A boolean pref which determines whether the large cursor feature is enabled.
599f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityLargeCursorEnabled[] =
600f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.large_cursor_enabled";
6015d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
6027d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// A boolean pref which determines whether the sticky keys feature is enabled.
603f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityStickyKeysEnabled[] =
604f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.sticky_keys_enabled";
6055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether spoken feedback is enabled.
606f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilitySpokenFeedbackEnabled[] = "settings.accessibility";
6075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether high conrast is enabled.
608f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityHighContrastEnabled[] =
609f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.high_contrast_enabled";
6105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether screen magnifier is enabled.
611f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityScreenMagnifierEnabled[] =
612f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.screen_magnifier";
6132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A integer pref which determines what type of screen magnifier is enabled.
6142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Note that: 'screen_magnifier_type' had been used as string pref. Hence,
6152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// we are using another name pref here.
616f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityScreenMagnifierType[] =
617f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.screen_magnifier_type2";
6185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A double pref which determines a zooming scale of the screen magnifier.
619f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityScreenMagnifierScale[] =
620f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.screen_magnifier_scale";
6215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A boolean pref which determines whether the virtual keyboard is enabled for
6225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// accessibility.  This feature is separate from displaying an onscreen keyboard
6235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// due to lack of a physical keyboard.
624f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityVirtualKeyboardEnabled[] =
625f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.virtual_keyboard";
6264e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// A boolean pref which determines whether autoclick is enabled.
627f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityAutoclickEnabled[] = "settings.a11y.autoclick";
6288bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// An integer pref which determines time in ms between when the mouse cursor
6298bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// stops and when an autoclick is triggered.
630f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityAutoclickDelayMs[] =
631f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.autoclick_delay_ms";
6322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A boolean pref which determines whether the accessibility menu shows
6332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// regardless of the state of a11y features.
6342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu";
6355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which turns on Advanced Filesystem
6375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (USB support, SD card, etc).
6385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLabsAdvancedFilesystemEnabled[] =
6395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.labs.advanced_filesystem";
6405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which turns on the mediaplayer.
6425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer";
6435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6445d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A boolean pref that turns on automatic screen locking.
6455d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableAutoScreenLock[] = "settings.enable_screen_lock";
6465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref of whether to show mobile plan notifications.
6485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowPlanNotifications[] =
6495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.internet.mobile.show_plan_notifications";
6505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref of whether to show 3G promo notification.
6525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShow3gPromoNotification[] =
6535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.internet.mobile.show_3g_promo_notification";
6545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref that contains version where "What's new" promo was shown.
6565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version";
6575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6587dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// A boolean pref that controls whether proxy settings from shared network
6597dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// settings (accordingly from device policy) are applied or ignored.
6605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUseSharedProxies[] = "settings.use_shared_proxies";
6615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
662c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Power state of the current displays from the last run.
663c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDisplayPowerState[] = "settings.display.power_state";
6642a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A dictionary pref that stores per display preferences.
6652a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisplayProperties[] = "settings.display.properties";
6665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A dictionary pref that specifies per-display layout/offset information.
6685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Its key is the ID of the display and its value is a dictionary for the
6695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// layout/offset information.
6705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSecondaryDisplays[] = "settings.display.secondary_displays";
6712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
67203b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// A dictionary pref that specifies the state of the rotation lock, and the
67303b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// display orientation, for the internal display.
67403b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)const char kDisplayRotationLock[] = "settings.display.rotation_lock";
67503b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)
6761e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// A boolean pref indicating whether user activity has been observed in the
6771e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// current session already. The pref is used to restore information about user
6781e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// activity after browser crashes.
6791e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kSessionUserActivitySeen[] = "session.user_activity_seen";
6801e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
6811e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// A preference to keep track of the session start time. If the session length
6821e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// limit is configured to start running after initial user activity has been
6831e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// observed, the pref is set after the first user activity in a session.
6841e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Otherwise, it is set immediately after session start. The pref is used to
6851e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// restore the session start time after browser crashes. The time is expressed
6861e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// as the serialization obtained from base::TimeTicks::ToInternalValue().
6872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSessionStartTime[] = "session.start_time";
6882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
6892a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Holds the maximum session time in milliseconds. If this pref is set, the
6902a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// user is logged out when the maximum session time is reached. The user is
6912a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// informed about the remaining time by a countdown timer shown in the ash
6922a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// system tray.
6932a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSessionLengthLimit[] = "session.length_limit";
6942a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
6951e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Whether the session length limit should start running only after the first
6961e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// user activity has been observed in a session.
6971e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kSessionWaitForInitialUserActivity[] =
6981e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    "session.wait_for_initial_user_activity";
6991e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
7002a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Inactivity time in milliseconds while the system is on AC power before
7012a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// the screen should be dimmed, turned off, or locked, before an
7022a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// IdleActionImminent D-Bus signal should be sent, or before
703eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// kPowerAcIdleAction should be performed.  0 disables the delay (N/A for
7042a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// kPowerAcIdleDelayMs).
7052a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
7062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
7072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
7082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms";
7092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
7102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Similar delays while the system is on battery power.
7122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryScreenDimDelayMs[] =
7132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_screen_dim_delay_ms";
7142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryScreenOffDelayMs[] =
7152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_screen_off_delay_ms";
7162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryScreenLockDelayMs[] =
7172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_screen_lock_delay_ms";
7182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryIdleWarningDelayMs[] =
7192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_idle_warning_delay_ms";
7202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryIdleDelayMs[] =
7212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_idle_delay_ms";
7222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
723eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Action that should be performed when the idle delay is reached while the
724eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// system is on AC power or battery power.
7252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Values are from the chromeos::PowerPolicyController::Action enum.
726eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kPowerAcIdleAction[] = "power.ac_idle_action";
727eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kPowerBatteryIdleAction[] = "power.battery_idle_action";
7282a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7292a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Action that should be performed when the lid is closed.
7302a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Values are from the chromeos::PowerPolicyController::Action enum.
7312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerLidClosedAction[] = "power.lid_closed_action";
7322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Should audio and video activity be used to disable the above delays?
7342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerUseAudioActivity[] = "power.use_audio_activity";
7352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerUseVideoActivity[] = "power.use_video_activity";
7362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
737c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Should extensions be able to use the chrome.power API to override
738c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// screen-related power management (including locking)?
739c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks";
740c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
7417d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Amount by which the screen-dim delay should be scaled while the system
7427d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// is in presentation mode. Values are limited to a minimum of 1.0.
7437d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kPowerPresentationScreenDimDelayFactor[] =
7447d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)    "power.presentation_screen_dim_delay_factor";
7457d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
746c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Amount by which the screen-dim delay should be scaled when user activity is
747c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// observed while the screen is dimmed or soon after the screen has been turned
748c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// off.  Values are limited to a minimum of 1.0.
749c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kPowerUserActivityScreenDimDelayFactor[] =
750c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "power.user_activity_screen_dim_delay_factor";
751c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
7521e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Whether the power management delays should start running only after the first
7531e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// user activity has been observed in a session.
7541e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kPowerWaitForInitialUserActivity[] =
7551e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    "power.wait_for_initial_user_activity";
7561e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
7572a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The URL from which the Terms of Service can be downloaded. The value is only
7582a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// honored for public accounts.
7592a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kTermsOfServiceURL[] = "terms_of_service.url";
760c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
761c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Indicates that the Profile has made navigations that used a certificate
762c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// installed by the system administrator. If that is true then the local cache
763c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// of remote data is tainted (e.g. shared scripts), and future navigations
764c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// show a warning indicating that the organization may track the browsing
765c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// session.
766c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once";
767c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
768c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Indicates whether the remote attestation is enabled for the user.
769c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAttestationEnabled[] = "attestation.enabled";
770c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// The list of extensions allowed to use the platformKeysPrivate API for
771c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// remote attestation.
772c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist";
7737dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
7747dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// A boolean pref indicating whether the projection touch HUD is enabled or not.
7757dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled";
776ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
777ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// A pref to configure networks. Its value must be a list of
778ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// NetworkConfigurations according to the OpenNetworkConfiguration
779ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// specification.
78058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Currently, this pref is only used to store the policy. The user's
78158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// configuration is still stored in Shill.
782ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kOpenNetworkConfiguration[] = "onc";
78358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
78458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// A boolean pref that tracks whether the user has already given consent for
78558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// enabling remote attestation for content protection.
78658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kRAConsentFirstTime[] = "settings.privacy.ra_consent";
78768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
78868043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// A boolean pref recording whether user has dismissed the multiprofile
7895d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// itroduction dialog show.
7905d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kMultiProfileNeverShowIntro[] =
7915d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "settings.multi_profile_never_show_intro";
7925d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
7935d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A boolean pref recording whether user has dismissed the multiprofile
7945d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// teleport warning dialog show.
7955d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kMultiProfileWarningShowDismissed[] =
7965d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "settings.multi_profile_warning_show_dismissed";
7975d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
79868043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// A string pref that holds string enum values of how the user should behave
79968043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy
80068043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// for more details of the valid values.
80168043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior";
8025d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
8035d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A boolean preference indicating whether user has seen first-run tutorial
8045d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// already.
8055d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kFirstRunTutorialShown[] = "settings.first_run_tutorial_shown";
8065d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
8075d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Indicates the amount of time for which a user authenticated via SAML can use
8085d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// offline authentication against a cached password before being forced to go
8095d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// through online authentication against GAIA again. The time is expressed in
8105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// seconds. A value of -1 indicates no limit, allowing the user to use offline
8115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// authentication indefinitely. The limit is in effect only if GAIA redirected
8125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// the user to a SAML IdP during the last online authentication.
8135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kSAMLOfflineSigninTimeLimit[] = "saml.offline_signin_time_limit";
8145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
8155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A preference to keep track of the last time the user authenticated against
8165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// GAIA using SAML. The preference is updated whenever the user authenticates
8175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the
8185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// current time. If GAIA performs the authentication itself, the preference is
8195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// cleared. The time is expressed as the serialization obtained from
8205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// base::Time::ToInternalValue().
8215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kSAMLLastGAIASignInTime[] = "saml.last_gaia_sign_in_time";
8225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
823a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// The total number of seconds that the machine has spent sitting on the
824a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// OOBE screen.
825a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kTimeOnOobe[] = "settings.time_on_oobe";
826cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
827cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// The app/extension name who sets the current wallpaper. If current wallpaper
828cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// is set by the component wallpaper picker, it is set to an empty string.
829cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kCurrentWallpaperAppName[] = "wallpaper.app.name";
83046d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
83146d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// List of mounted file systems via the File System Provider API. Used to
83246d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// restore them after a reboot.
83346d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kFileSystemProviderMounted[] = "file_system_provider.mounted";
8346d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
8356d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// A boolean pref set to true if the virtual keyboard should be enabled.
8366d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kTouchVirtualKeyboardEnabled[] = "ui.touch_virtual_keyboard_enabled";
8376d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
8385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif  // defined(OS_CHROMEOS)
8395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The disabled messages in IPC logging.
8415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
8425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if a Home button to open the Home pages should be
8445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// visible on the toolbar.
8455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowHomeButton[] = "browser.show_home_button";
8465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string value which saves short list of recently user selected encodings
8485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// separated with comma punctuation mark.
8495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
8505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Clear Browsing Data dialog preferences.
8525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
8535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
8545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteCache[] = "browser.clear_data.cache";
8555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteCookies[] = "browser.clear_data.cookies";
8565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeletePasswords[] = "browser.clear_data.passwords";
8575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteFormData[] = "browser.clear_data.form_data";
8585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
8595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeauthorizeContentLicenses[] =
8605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.clear_data.content_licenses";
8615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
8622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kLastClearBrowsingDataTime[] =
8632a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "browser.last_clear_browsing_data_time";
8645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref to define the default values for using spellchecker.
8662a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking";
8675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of names of the enabled labs experiments (see chrome/browser/labs.cc).
8695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
8705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref to define the default values for using auto spell correct.
8725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
8735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref to define the default setting for "block offensive words".
8755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The old key value is kept to avoid unnecessary migration code.
8765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpeechRecognitionFilterProfanities[] =
8775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.speechinput_censor_results";
8785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of speech recognition context names (extensions or websites) for which
8805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the tray notification balloon has already been shown.
8815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpeechRecognitionTrayNotificationShownContexts[] =
8825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.speechinput_tray_notification_shown_contexts";
8835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether history saving is disabled.
8855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
8865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Boolean controlling whether deleting browsing and download history is
8882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// permitted.
8892a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled";
8902a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
8915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
8925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceSafeSearch[] = "settings.force_safesearch";
8935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
894eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
895eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Linux specific preference on whether we should match the system theme.
8965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUsesSystemTheme[] = "extensions.theme.use_system";
8975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
8985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemePackFilename[] = "extensions.theme.pack";
8995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeID[] = "extensions.theme.id";
9005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeImages[] = "extensions.theme.images";
9015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeColors[] = "extensions.theme.colors";
9025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeTints[] = "extensions.theme.tints";
9035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
9045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref which persists whether the extensions_ui is in developer mode
9065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (showing developer packing tools and extensions details)
9075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
9085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9095c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Boolean pref which indicates whether the Chrome Apps & Extensions Developer
9105c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Tool promotion has been dismissed by the user.
9115c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kExtensionsUIDismissedADTPromo[] =
9125c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu    "extensions.ui.dismissed_adt_promo";
9135c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
9145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary pref that tracks which command belongs to which
9155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// extension + named command pair.
9165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionCommands[] = "extensions.commands";
9175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pref containing the directory for internal plugins as written to the plugins
9195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// list (below).
9205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
9215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing information (dictionaries) on plugins.
9235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsPluginsList[] = "plugins.plugins_list";
9245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing names of plugins that are disabled by policy.
9265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
9275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing exceptions to the list of plugins disabled by policy.
9295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsDisabledPluginsExceptions[] =
9305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "plugins.plugins_disabled_exceptions";
9315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing names of plugins that are enabled by policy.
9335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
9345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// When bundled NPAPI Flash is removed, if at that point it is enabled while
9365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
9375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// want to do so only once.
9385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash";
9395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// In the early stage of component-updated PPAPI Flash, we did field trials in
9412a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// which it was set to disabled by default. The corresponding settings item may
9422a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// remain in some users' profiles. Currently it affects both the bundled and
9432a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// component-updated PPAPI Flash (since the two share the same enable/disable
9442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// state). We want to remove this item to get those users to use PPAPI Flash.
9452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// We will want to do so only once.
9462a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPluginsRemovedOldComponentPepperFlashSettings[] =
9472a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "plugins.removed_old_component_pepper_flash_settings";
9482a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
9495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
9505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether about:plugins is shown in the details mode or not.
9515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsShowDetails[] = "plugins.show_details";
9525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether outdated plugins are allowed or not.
9555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
9565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether plugins that require authorization should
9585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be always allowed or not.
9595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
9605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(ENABLE_PLUGIN_INSTALLATION)
9625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary holding plug-ins metadata.
9635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsMetadata[] = "plugins.metadata";
9645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Last update time of plug-ins resource cache.
9665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
9675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether we should check if we are the default browser
9705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// on start-up.
9715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCheckDefaultBrowser[] = "browser.check_default_browser";
9725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Policy setting whether default browser check should be disabled and default
9745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser registration should take place.
9755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultBrowserSettingEnabled[] =
9765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.default_browser_setting_enabled";
9775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_MACOSX)
9795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether the application should show the info bar
9805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// asking the user to set up automatic updates when Keystone promotion is
9815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// required.
9825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowUpdatePromotionInfoBar[] =
9835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.show_update_promotion_info_bar";
9845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is false if we should show window manager decorations.  If
9875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// true, we draw a custom chrome frame (thicker title bar and blue border).
9885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
9895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary of content settings applied to all hosts by default.
9915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultContentSettings[] = "profile.default_content_settings";
9925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9931320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Dictionary of content settings that can globally disallow all hosts by
9941320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// default. If a value is set, it means the setting is globally disallowed.
9951320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// If a value is not set, it means the setting is allowed.
9961320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kOverrideContentSettings[] = "profile.override_content_settings";
9971320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
9985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean indicating whether the clear on exit pref was migrated to content
9995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// settings yet.
10005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsClearOnExitMigrated[] =
10015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.clear_on_exit_migrated";
10025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Version of the pattern format used to define content settings.
10045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsVersion[] = "profile.content_settings.pref_version";
10055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Patterns for mapping origins to origin related settings. Default settings
10072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// will be applied to origins that don't match any of the patterns. The pattern
10082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// format used is defined by kContentSettingsVersion.
10095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsPatternPairs[] =
10105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.pattern_pairs";
10115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
10135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Which plugins have been whitelisted manually by the user.
10145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsPluginWhitelist[] =
10155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.plugin_whitelist";
10165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true if we should unconditionally block third-party cookies,
10195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// regardless of other content settings.
10205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
10215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when all locally stored site data (e.g. cookies, local
10235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// storage, etc..) should be deleted on exit.
10245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit";
10255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Double that indicates the default zoom level.
10275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultZoomLevel[] = "profile.default_zoom_level";
10285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary that maps hostnames to zoom levels.  Hosts not in this pref will
10305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be displayed at the default zoom level.
10315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels";
10325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10337dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// A dictionary that tracks the default data model to use for each section of
10347dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// the dialog.
10357dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kAutofillDialogAutofillDefault[] = "autofill.data_model_default";
103690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
10372a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Whether a user opted out of making purchases with Google Wallet; changed via
10382a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// the autofill dialog's account chooser and set explicitly on dialog submission
10392a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// (but not cancel). If this isn't set, the dialog assumes it's the first run.
10402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet";
10415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10420f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Which GAIA users have accepted that use of Google Wallet implies their
10430f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// location will be shared with fraud protection services.
10440f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kAutofillDialogWalletLocationAcceptance[] =
10450f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)    "autofill.wallet_location_disclosure";
10460f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
104758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Whether a user wants to save data locally in Autofill.
104858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kAutofillDialogSaveData[] = "autofill.save_data";
104958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
10505d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Whether the user has selected "Same as billing" for the shipping address when
10515d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// using Google Wallet.
10525d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kAutofillDialogWalletShippingSameAsBilling[] =
10535d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "autofill.wallet_shipping_same_as_billing";
10545d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
10557dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// The number of times the generated credit card bubble has been shown.
10567dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kAutofillGeneratedCardBubbleTimesShown[] =
10577dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch    "autofill.generated_card_bubble_times_shown";
10587d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
1059ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// A dictionary that tracks the defaults to be set on the next invocation
10605d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// of the requestAutocomplete dialog.
1061ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults";
1062ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
10635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
10645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPinnedTabs[] = "pinned_tabs";
10655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
10687d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Boolean that controls the enabled-state of Geolocation in content.
10695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeolocationEnabled[] = "geolocation.enabled";
10705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10727d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)#if defined(ENABLE_GOOGLE_NOW)
10737d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Boolean that is true when Google services can use the user's location.
10747d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kGoogleGeolocationAccessEnabled[] =
10757d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)    "googlegeolocationaccess.enabled";
10767d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)#endif
10777d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
10782a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The default audio capture device used by the Media content setting.
10792a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device";
10802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
10812a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The default video capture device used by the Media content setting.
10822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device";
10835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1084a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// The salt used for creating random MediaSource IDs.
1085a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kMediaDeviceIdSalt[] = "media.device_id_salt";
1086a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
10875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preference to disable 3D APIs (WebGL, Pepper 3D).
10885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisable3DAPIs[] = "disable_3d_apis";
10895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10906d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kEnableDeprecatedWebPlatformFeatures[] =
10916d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)    "enable_deprecated_web_platform_features";
10926d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
10935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to enable hyperlink auditing ("<a ping>").
10945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableHyperlinkAuditing[] = "enable_a_ping";
10955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to enable sending referrers.
10975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableReferrers[] = "enable_referrers";
10985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to send the DNT header.
11005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableDoNotTrack[] = "enable_do_not_track";
11015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11022a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// GL_VENDOR string.
11032a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kGLVendorString[] = "gl_vendor_string";
11042a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
11052a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// GL_RENDERER string.
11062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kGLRendererString[] = "gl_renderer_string";
11072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
11082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// GL_VERSION string.
11092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kGLVersionString[] = "gl_version_string";
11102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
11111320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Boolean that specifies whether to import the form data for autofill from the
11121320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// default browser on first run.
11131320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kImportAutofillFormData[] = "import_autofill_form_data";
11141320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
11155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import bookmarks from the default browser
11165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// on first run.
11175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportBookmarks[] = "import_bookmarks";
11185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the browsing history from the
11205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// default browser on first run.
11215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportHistory[] = "import_history";
11225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the homepage from the default
11245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser on first run.
11255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportHomepage[] = "import_home_page";
11265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the saved passwords from the default
11285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser on first run.
11295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportSavedPasswords[] = "import_saved_passwords";
11305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11311320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Boolean that specifies whether to import the search engine from the default
11321320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// browser on first run.
11331320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kImportSearchEngine[] = "import_search_engine";
11341320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
11355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Profile avatar and name
11365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileAvatarIndex[] = "profile.avatar_index";
11375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileName[] = "profile.name";
113803b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// Whether a profile is using a default avatar name (eg. Pickles or Person 1)
113903b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// because it was randomly assigned at profile creation time.
114003b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)const char kProfileUsingDefaultName[] = "profile.using_default_name";
114103b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// Whether a profile is using an avatar without having explicitely chosen it
114203b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// (i.e. was assigned by default by legacy profile creation).
114303b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)const char kProfileUsingDefaultAvatar[] = "profile.using_default_avatar";
114403b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)const char kProfileUsingGAIAAvatar[] = "profile.using_gaia_avatar";
11455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1146f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// The supervised user ID.
1147f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSupervisedUserId[] = "profile.managed_user_id";
11482385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
114923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// 64-bit integer serialization of the base::Time when the user's GAIA info
115023730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// was last updated.
115123730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
115223730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
115323730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// The URL from which the GAIA profile picture was downloaded. This is cached to
115423730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// prevent the same picture from being downloaded multiple times.
115523730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url";
115623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
11575f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Integer that specifies the number of times that we have shown the upgrade
11585f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// tutorial card in the avatar menu bubble.
115923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kProfileAvatarTutorialShown[] =
116023730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)    "profile.avatar_bubble_tutorial_shown";
116123730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
11625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Indicates if we've already shown a notification that high contrast
11635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// mode is on, recommending high-contrast extensions and themes.
11645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInvertNotificationShown[] = "invert_notification_version_2_shown";
11655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether printing is enabled.
11675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrintingEnabled[] = "printing.enabled";
11685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11691320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Boolean controlling whether print preview is disabled.
11701320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
11711320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
11722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// An integer pref specifying the fallback behavior for sites outside of content
11732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// packs. One of:
11742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 0: Allow (does nothing)
11752a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 1: Warn.
11762a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 2: Block.
1177f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kDefaultSupervisedUserFilteringBehavior[] =
11782a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "profile.managed.default_filtering_behavior";
11792a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1180f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// Whether this user is permitted to create supervised users.
1181f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSupervisedUserCreationAllowed[] =
1182eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "profile.managed_user_creation_allowed";
1183eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
1184f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// List pref containing the users supervised by this user.
1185f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSupervisedUsers[] = "profile.managed_users";
118690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
11871320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// String that indicates that the profile reset prompt has already been shown to
11881320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// the user (profile).
11891320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kProfileResetPromptMementoInProfilePrefs[] =
11901320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci    "profile.reset_prompt_memento";
11911320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
11922a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// List pref containing the extension ids which are not allowed to send
11932a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// notifications to the message center.
11942a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kMessageCenterDisabledExtensionIds[] =
11952a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "message_center.disabled_extension_ids";
11962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1197c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// List pref containing the system component ids which are not allowed to send
1198c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// notifications to the message center.
1199c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kMessageCenterDisabledSystemComponentIds[] =
1200c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "message_center.disabled_system_component_ids";
1201c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
12020529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Boolean pref indicating the Chrome Now welcome notification was dismissed
12030529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// by the user. Syncable.
12040529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Note: This is now read-only. The welcome notification writes the _local
12050529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// version, below.
12061e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)extern const char kWelcomeNotificationDismissed[] =
12071e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    "message_center.welcome_notification_dismissed";
12081e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
12090529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Boolean pref indicating the Chrome Now welcome notification was dismissed
12100529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// by the user on this machine.
12110529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochextern const char kWelcomeNotificationDismissedLocal[] =
12120529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "message_center.welcome_notification_dismissed_local";
12130529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
12141e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Boolean pref indicating the welcome notification was previously popped up.
12151e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)extern const char kWelcomeNotificationPreviouslyPoppedUp[] =
12161e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    "message_center.welcome_notification_previously_popped_up";
12171e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
12185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Integer pref containing the expiration timestamp of the welcome notification.
12195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)extern const char kWelcomeNotificationExpirationTimestamp[] =
12205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "message_center.welcome_notification_expiration_timestamp";
12213551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
1222424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// Boolean pref that determines whether the user can enter fullscreen mode.
1223424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// Disabling fullscreen mode also makes kiosk mode unavailable on desktop
1224424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// platforms.
1225424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)extern const char kFullscreenAllowed[] = "fullscreen.allowed";
1226424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)
122768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Enable notifications for new devices on the local network that can be
122868043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// registered to the user's account, e.g. Google Cloud Print printers.
122968043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kLocalDiscoveryNotificationsEnabled[] =
123068043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)    "local_discovery.notifications_enabled";
123168043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
1232a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// A timestamp (stored in base::Time::ToInternalValue format) of the last time
1233a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// a preference was reset.
1234a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kPreferenceResetTime[] = "prefs.preference_reset_time";
1235a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
12365d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// The GCM channel's enabled state.
12375d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kGCMChannelEnabled[] = "gcm.channel_enabled";
12385d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
1239f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// How many Service Workers are registered with the Push API (could be zero).
1240f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kPushMessagingRegistrationCount[] =
1241f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "gcm.push_messaging_registration_count";
1242f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
124323730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// Whether Easy Unlock is enabled.
12445f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)const char kEasyUnlockEnabled[] = "easy_unlock.enabled";
124523730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
124623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// Whether to show the Easy Unlock first run tutorial.
12475f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)const char kEasyUnlockShowTutorial[] = "easy_unlock.show_tutorial";
124823730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
124923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// Preference storing Easy Unlock pairing data.
12505f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)const char kEasyUnlockPairing[] = "easy_unlock.pairing";
12515f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
12525f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Whether a user is allowed to use Easy Unlock.
12535f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)const char kEasyUnlockAllowed[] = "easy_unlock.allowed";
125423730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
1255010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// A cache of zero suggest results using JSON serialized into a string.
1256010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kZeroSuggestCachedResults[] = "zerosuggest.cachedresults";
1257010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
12585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// *************** LOCAL STATE ***************
12595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These are attached to the machine/installation
12605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1261ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// A pref to configure networks device-wide. Its value must be a list of
1262ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// NetworkConfigurations according to the OpenNetworkConfiguration
1263ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// specification.
126458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Currently, this pref is only used to store the policy. The user's
126558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// configuration is still stored in Shill.
1266ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kDeviceOpenNetworkConfiguration[] = "device_onc";
1267ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
12685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Directory of the last profile used.
12695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileLastUsed[] = "profile.last_used";
12705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of directories of the profiles last active.
12725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilesLastActive[] = "profile.last_active_profiles";
12735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Total number of profiles created for this Chrome build. Used to tag profile
12755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// directories.
12765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilesNumCreated[] = "profile.profiles_created";
12775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the version of Chrome that the profile was created by.
12795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If profile was created before this feature was added, this pref will default
12805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to "1.0.0.0".
12815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileCreatedByVersion[] = "profile.created_by_version";
12825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A map of profile data directory to cached information. This cache can be
12845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// used to display information about profiles without actually having to load
12855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// them.
12865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileInfoCache[] = "profile.info_cache";
12875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12881320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Dictionary that maps profile keys to strings that indicate that the profile
12891320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// reset prompt has already been shown to the corresponding user (profile).
12901320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// This is semantically similar to kProfileResetPromptMementoInProfilePrefs, see
12911320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h for an
12921320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// explanation of why this redundancy is needed.
12931320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kProfileResetPromptMementosInLocalState[] =
12941320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci    "profile.reset_prompt_mementos";
12951320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
12965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for SSLConfigServicePref.
12975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
12983240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdochconst char kCertRevocationCheckingRequiredLocalAnchors[] =
12993240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch    "ssl.rev_checking.required_for_local_anchors";
13005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSSLVersionMin[] = "ssl.version_min";
13015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSSLVersionMax[] = "ssl.version_max";
13021675a649fd7a8b3cb80ffddae2dc181f122353c5Ben Murdochconst char kSSLVersionFallbackMin[] = "ssl.version_fallback_min";
13035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
13045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
1305c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
13065f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Dictionary of dates when a site's SSL blocking interstitial was proceeded
13075f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// through.
13085f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)const char kSSLBlockingBypassed[] = "ssl.ssl_blocking_bypassed";
13095f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
1310c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A boolean pref of the EULA accepted flag.
1311c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEulaAccepted[] = "EulaAccepted";
13125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether or not crash reporting and metrics reporting
13145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// are sent over the network for analysis.
13155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsReportingEnabled[] =
13165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.reporting_enabled";
1317effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
1318b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// Boolean that specifies whether or not crash reports are sent
1319b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// over the network for analysis.
1320b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)#if defined(OS_ANDROID)
1321b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)const char kCrashReportingEnabled[] =
1322b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)    "user_experience_metrics_crash.reporting_enabled";
1323b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)#endif
1324b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)
13252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 64-bit integer serialization of the base::Time from the last successful seed
13262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// fetch (i.e. when the Variations server responds with 200 or 304).
13272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kVariationsLastFetchTime[] = "variations_last_fetch_time";
13282a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
13292a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// String for the restrict parameter to be appended to the variations URL.
13302a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kVariationsRestrictParameter[] = "variations_restrict_parameter";
13312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
13325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String serialized form of variations seed protobuf.
13335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kVariationsSeed[] = "variations_seed";
13345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 64-bit integer serialization of the base::Time from the last seed received.
13365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kVariationsSeedDate[] = "variations_seed_date";
13375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1338a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// SHA-1 hash of the serialized variations seed data (hex encoded).
13397dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kVariationsSeedHash[] = "variations_seed_hash";
13405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13415d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Digital signature of the binary variations seed data, base64-encoded.
13425d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kVariationsSeedSignature[] = "variations_seed_signature";
13435d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
13445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times a page load event occurred since the last report.
13455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPageLoadCount[] =
13465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.page_load_count";
13475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times a renderer process crashed since the last report.
13495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityRendererCrashCount[] =
13505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.renderer_crash_count";
13515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times an extension renderer process crashed since the last report.
13535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityExtensionRendererCrashCount[] =
13545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.extension_renderer_crash_count";
13555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This is the location of a list of dictionaries of plugin stability stats.
13575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginStats[] =
13585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.plugin_stats2";
13595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the renderer has become non-responsive since the last
13615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// report.
13625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityRendererHangCount[] =
13635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.renderer_hang_count";
13645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Total number of child process crashes (other than renderer / extension
13665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer ones, and plugin children, which are counted separately) since the
13675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last report.
13685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityChildProcessCrashCount[] =
13695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.child_process_crash_count";
13705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Chrome OS, total number of non-Chrome user process crashes
13725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// since the last report.
13735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityOtherUserCrashCount[] =
13745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.other_user_crash_count";
13755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Chrome OS, total number of kernel crashes since the last report.
13775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityKernelCrashCount[] =
13785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.kernel_crash_count";
13795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Chrome OS, total number of unclean system shutdowns since the
13815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last report.
13825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilitySystemUncleanShutdownCount[] =
13835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.system_unclean_shutdowns";
13845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13855d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#if defined(OS_ANDROID)
13865d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Activity type that is currently in the foreground for the UMA session.
13875d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Uses the ActivityTypeIds::Type enum.
13885d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kStabilityForegroundActivityType[] =
13895d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "user_experience_metrics.stability.current_foreground_activity_type";
13905d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
13915d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Tracks which Activities were launched during the last session.
13925d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// See |metrics_service_android.cc| for its usage.
13935d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kStabilityLaunchedActivityFlags[] =
13945d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "user_experience_metrics.stability.launched_activity_flags";
13955d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
13965d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// List pref: Counts how many times each Activity was launched.
13975d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Indexed into by ActivityTypeIds::Type.
13985d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kStabilityLaunchedActivityCounts[] =
13995d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "user_experience_metrics.stability.launched_activity_counts";
14005d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
14015d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// List pref: Counts how many times each Activity type was in the foreground
14025d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// when a UMA session failed to be shut down properly.
14035d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Indexed into by ActivityTypeIds::Type.
14045d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kStabilityCrashedActivityCounts[] =
14055d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "user_experience_metrics.stability.crashed_activity_counts";
14065d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#endif
14075d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
14085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The keys below are used for the dictionaries in the
14095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kStabilityPluginStats list.
14105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginName[] = "name";
14115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginLaunches[] = "launches";
14125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginInstances[] = "instances";
14135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginCrashes[] = "crashes";
14145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginLoadingErrors[] = "loading_errors";
14155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The keys below are strictly increasing counters over the lifetime of
14175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a chrome installation. They are (optionally) sent up to the uninstall
1418116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// survey in the event of uninstallation.
14195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallMetricsPageLoadCount[] =
14205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.page_load_count";
14215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallLastLaunchTimeSec[] =
14225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.last_launch_time_sec";
14235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallLastObservedRunTimeSec[] =
14245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.last_observed_running_time_sec";
14255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1426c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// String containing the version of Chrome for which Chrome will not prompt the
1427c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// user about setting Chrome as the default browser.
1428c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kBrowserSuppressDefaultBrowserPrompt[] =
1429c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "browser.suppress_default_browser_prompt_for_version";
1430c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
14315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the browser
14325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// window to restore on startup.
14335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBrowserWindowPlacement[] = "browser.window_placement";
14345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1435a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Browser window placement for popup windows.
1436a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup";
1437a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
14385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the task
14395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// manager window to restore on startup.
14405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
14415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14421320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// A collection of position, size, and other data relating to app windows to
14431320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// restore on startup.
14441320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kAppWindowPlacement[] = "browser.app_window_placement";
14455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer specifying the total number of bytes to be used by the
14475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer's in-memory cache of objects.
14485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMemoryCacheSize[] = "renderer.memory_cache.size";
14495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies where to download files to by default.
14515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDownloadDefaultDirectory[] = "download.default_directory";
14525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that records if the download directory was changed by an
14545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// upgrade a unsafe location to a safe location.
14555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDownloadDirUpgraded[] = "download.directory_upgrade";
14565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1457116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#if defined(OS_WIN)
1458116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Whether downloaded PDFs should be opened in Adobe Acrobat Reader.
1459116680a4aac90f2aa7413d9095a592090648e557Ben Murdochconst char kOpenPdfDownloadInAdobeReader[] =
1460116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch    "download.open_pdf_in_adobe_reader";
1461116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#endif
1462116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
14635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies where to save html files to by default.
14645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
14655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The type used to save the page. See the enum SavePackage::SavePackageType in
14675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the chrome/browser/download/save_package.h for the possible values.
14685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSaveFileType[] = "savefile.type";
14695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies the last directory that was chosen for uploading
14715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// or opening a file.
14725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSelectFileLastDirectory[] = "selectfile.last_directory";
14735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies if file selection dialogs are shown.
14755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
14765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Map of default tasks, associated by MIME type.
14785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultTasksByMimeType[] =
14795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "filebrowser.tasks.default_by_mime_type";
14805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Map of default tasks, associated by file suffix.
14825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultTasksBySuffix[] =
14835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "filebrowser.tasks.default_by_suffix";
14845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Extensions which should be opened upon completion.
14865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
14875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer which specifies the frequency in milliseconds for detecting whether
14895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// plugin windows are hung.
14905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
14915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer which specifies the timeout value to be used for SendMessageTimeout
14935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to detect a hung plugin window.
14945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginMessageResponseTimeout[] =
14955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.plugin_message_response_timeout";
14965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which represents the dictionary name for our spell-checker.
14985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpellCheckDictionary[] = "spellcheck.dictionary";
14995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which represents whether we use the spelling service.
15015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
15025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary of schemes used by the external protocol handler.
15045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value is true if the scheme must be ignored.
15055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
15065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Keys used for MAC handling of SafeBrowsing requests.
15085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
15095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
15105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer that specifies the index of the tab the user was on when they
15125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last visited the options window.
15135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
15145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer that specifies the index of the tab the user was on when they
15165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last visited the content settings window.
15175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsWindowLastTabIndex[] =
15185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "content_settings_window.last_tab_index";
15195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer that specifies the index of the tab the user was on when they
15215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last visited the Certificate Manager window.
15225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCertificateManagerWindowLastTabIndex[] =
15235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "certificate_manager_window.last_tab_index";
15245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Integer that specifies if the first run bubble should be shown.
15265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This preference is only registered by the first-run procedure.
15272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
15285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the last known intranet redirect URL, if any.  See
15305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// intranet_redirect_detector.h for more information.
15315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
15325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An enum value of how the browser was shut down (see browser_shutdown.h).
15345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShutdownType[] = "shutdown.type";
15355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of processes that were open when the user shut down.
15365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShutdownNumProcesses[] = "shutdown.num_processes";
15375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of processes that were shut down using the slow path.
15385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
15395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to restart the current Chrome session automatically as the last thing
15415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// before shutting everything down.
15425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
15435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set before autorestarting Chrome, cleared on clean exit.
15455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWasRestarted[] = "was.restarted";
15465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_WIN)
15480f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Preference to be used while relaunching Chrome. This preference dictates if
15490f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Chrome should be launched in Metro or Desktop mode.
15500f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// For more info take a look at ChromeRelaunchMode enum.
15510f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kRelaunchMode[] = "relaunch.mode";
15522a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
15535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Placeholder preference for disabling voice / video chat if it is ever added.
15555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Currently, this does not change any behavior.
15565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableVideoAndChat[] = "disable_video_chat";
15575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether Extensions are enabled.
15595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableExtensions[] = "extensions.disabled";
15605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether the plugin finder that lets you install missing plug-ins is enabled.
15625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
15635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1564f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Customized app page names that appear on the New Tab Page.
1565f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpAppPageNames[] = "ntp.app_page_names";
1566f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
15675f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Keeps track of currently open tabs collapsed state in the Other Devices menu.
15685f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)const char kNtpCollapsedCurrentlyOpenTabs[] = "ntp.collapsed_open_tabs";
15695f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
15705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Keeps track of which sessions are collapsed in the Other Devices menu.
15715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
15725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1573f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Keeps track of recently closed tabs collapsed state in the Other Devices
1574f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// menu.
1575f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpCollapsedRecentlyClosedTabs[] =
1576f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "ntp.collapsed_recently_closed_tabs";
15775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1578f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Keeps track of snapshot documents collapsed state in the Other Devices menu.
1579f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document";
15805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1581f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Keeps track of sync promo collapsed state in the Other Devices menu.
1582f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo";
15835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Serves dates to determine display of elements on the NTP.
15855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpDateResourceServer[] = "ntp.date_resource_server";
15865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1587f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// New Tab Page URLs that should not be shown as most visited thumbnails.
1588f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
1589f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
1590f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// True if a desktop sync session was found for this user.
1591f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found";
1592f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
1593f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Last time of update of promo_resource_cache.
1594f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update";
1595f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
15965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Which bookmarks folder should be visible on the new tab page v4.
15975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
15985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Which page should be visible on the new tab page v4
16005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpShownPage[] = "ntp.shown_page";
16015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1602f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Serves tips for the NTP.
1603f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpTipsResourceServer[] = "ntp.tips_resource_server";
16045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean indicating whether the web store is active for the current locale.
16065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled";
16075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16087dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// A private RSA key for ADB handshake.
16097dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kDevToolsAdbKey[] = "devtools.adb_key";
16107dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
16115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsDisabled[] = "devtools.disabled";
16125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16134e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Determines whether devtools should be discovering usb devices for
16144e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// remote debugging at chrome://inspect.
16154e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDevToolsDiscoverUsbDevicesEnabled[] =
16164e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "devtools.discover_usb_devices";
16174e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
16185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Maps of files edited locally using DevTools.
16195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsEditedFiles[] = "devtools.edited_files";
16205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// List of file system paths added in DevTools.
16222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths";
16232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
16245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether dev tools window should be opened docked.
16255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsOpenDocked[] = "devtools.open_docked";
16265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16272385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch// A boolean specifying whether port forwarding should be enabled.
16282385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdochconst char kDevToolsPortForwardingEnabled[] =
16292385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch    "devtools.port_forwarding_enabled";
16302385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
163158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// A boolean specifying whether default port forwarding configuration has been
163258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// set.
163358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDevToolsPortForwardingDefaultSet[] =
163458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)    "devtools.port_forwarding_default_set";
163558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
16362385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch// A dictionary of port->location pairs for port forwarding.
16372385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdochconst char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config";
16382385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
16395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
16405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether remote dev tools debugging is enabled.
16415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
16425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
16435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1644effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// Boolean indicating that TiclInvalidationService should use GCM channel.
1645effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// False or lack of settings means XMPPPushClient channel.
1646effb81e5f8246d0db0270817048dc992db66e9fbBen Murdochconst char kInvalidationServiceUseGCMChannel[] =
1647effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch    "invalidation_service.use_gcm_channel";
16485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16491e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Local hash of authentication password, used for off-line authentication
16501e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// when on-line authentication is not available.
16511e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kGoogleServicesPasswordHash[] = "google.services.password_hash";
16521e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
16535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
1654bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// Tracks the number of times that we have shown the sign in promo at startup.
1655bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSignInPromoStartupCount[] = "sync_promo.startup_count";
16565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1657bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// Boolean tracking whether the user chose to skip the sign in promo.
1658bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSignInPromoUserSkipped[] = "sync_promo.user_skipped";
16595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1660bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// Boolean that specifies if the sign in promo is allowed to show on first run.
16615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This preference is specified in the master preference file to suppress the
1662bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// sign in promo for some installations.
1663bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSignInPromoShowOnFirstRunAllowed[] =
16645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "sync_promo.show_on_first_run_allowed";
16655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies if we should show a bubble in the new tab page.
16675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The bubble is used to confirm that the user is signed into sync.
1668bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
16695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
16705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Create web application shortcut dialog preferences.
16725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
16735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
16745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebAppCreateInQuickLaunchBar[] =
16755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.web_app.create_in_quick_launch_bar";
16765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary that maps Geolocation network provider server URLs to
16785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// corresponding access token.
16795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeolocationAccessToken[] = "geolocation.access_token";
16805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether to allow firewall traversal while trying to
16825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// establish the initial connection from the client or host.
16835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostFirewallTraversal[] =
16845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_firewall_traversal";
16855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether 2-factor auth should be required when connecting
16875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to a host (instead of a PIN).
16885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostRequireTwoFactor[] =
16895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_require_two_factor";
16905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the domain name that hosts must belong to. If blank, then
16925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// hosts can belong to any domain.
16935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostDomain[] = "remote_access.host_domain";
16945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the domain name of the Chromoting Directory.
16965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used by Chromoting host and client.
16975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostTalkGadgetPrefix[] =
16985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_talkgadget_prefix";
16995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether curtaining is required when connecting to a host.
17015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostRequireCurtain[] =
17025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_require_curtain";
17035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1704a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Boolean controlling whether curtaining is required when connecting to a host.
1705a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kRemoteAccessHostAllowClientPairing[] =
1706a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "remote_access.host_allow_client_pairing";
1707a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
1708a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Whether Chrome Remote Desktop can proxy gnubby authentication traffic.
1709a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kRemoteAccessHostAllowGnubbyAuth[] =
1710a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "remote_access.host_allow_gnubby_auth";
1711a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
17125c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Boolean that indicates whether the Chromoting host should allow connections
17135c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// using relay servers.
17145c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kRemoteAccessHostAllowRelayedConnection[] =
17155c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu    "remote_access.host_allow_relayed_connection";
17165c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
17175c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// String containing the UDP port range that the Chromoting host should used
17185c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// when connecting to clients. The port range should be in the form:
17195c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// <min_port>-<max_port>. E.g. 12400-12409.
17205c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kRemoteAccessHostUdpPortRange[] =
17215c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu    "remote_access.host_udp_port_range";
17225c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
17235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The last used printer and its settings.
17245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrintPreviewStickySettings[] =
17255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "printing.print_preview_sticky_settings";
17265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The last requested size of the dialog as it was closed.
17285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
17295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
17305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSigninDialogWidth[] =
17315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "cloud_print.signin_dialog_size.width";
17325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSigninDialogHeight[] =
17335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "cloud_print.signin_dialog_size.height";
17345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The list of BackgroundContents that should be loaded when the browser
17365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// launches.
17375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRegisteredBackgroundContents[] = "background_contents.registered";
17385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
17405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An int that stores how often we've shown the "Chrome is configured to
17415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// auto-launch" infobar.
17425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
17435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
17445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that lists supported HTTP authentication schemes.
17465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthSchemes[] = "auth.schemes";
17475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to disable CNAME lookups when generating
17495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Kerberos SPN.
17505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableAuthNegotiateCnameLookup[] =
17515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "auth.disable_negotiate_cname_lookup";
17525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to include the port in a generated Kerberos
17545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// SPN.
17555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
17565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whitelist containing servers for which Integrated Authentication is enabled.
17585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthServerWhitelist[] = "auth.server_whitelist";
17595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whitelist containing servers Chrome is allowed to do Kerberos delegation
17615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// with.
17625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthNegotiateDelegateWhitelist[] =
17635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "auth.negotiate_delegate_whitelist";
17645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that specifies the name of a custom GSSAPI library to load.
17665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
17675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to allow basic auth prompting on cross-
17695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// domain sub-content requests.
17705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
17715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Boolean that specifies whether the built-in asynchronous DNS client is used.
17732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kBuiltInDnsClientEnabled[] = "async_dns.enabled";
17742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
177590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// A pref holding the value of the policy used to explicitly allow or deny
177690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// access to audio capture devices.  When enabled or not set, the user is
177790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// prompted for device access.  When disabled, access to audio capture devices
177890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// is not allowed and no prompt will be shown.
177990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// See also kAudioCaptureAllowedUrls.
17802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
178190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Holds URL patterns that specify URLs that will be granted access to audio
178290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// capture devices without prompt.  NOTE: This whitelist is currently only
178390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// supported when running in kiosk mode.
178490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// TODO(tommi): Update comment when this is supported for all modes.
178590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
178690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
178790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// A pref holding the value of the policy used to explicitly allow or deny
178890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// access to video capture devices.  When enabled or not set, the user is
178990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// prompted for device access.  When disabled, access to video capture devices
179090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// is not allowed and no prompt will be shown.
17912a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
179290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Holds URL patterns that specify URLs that will be granted access to video
179390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// capture devices without prompt.  NOTE: This whitelist is currently only
179490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// supported when running in kiosk mode.
179590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// TODO(tommi): Update comment when this is supported for all modes.
179690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
17972a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
17988bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// A boolean pref that controls the enabled-state of hotword search voice
17998bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// trigger.
1800c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdochconst char kHotwordSearchEnabled[] = "hotword.search_enabled_2";
18018bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
18026e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// A boolean pref that controls the enabled-state of hotword search voice
18036e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// trigger from any screen.
18046e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)const char kHotwordAlwaysOnSearchEnabled[] = "hotword.always_on_search_enabled";
18056e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
1806effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// A boolean pref that controls whether the sound of "Ok, Google" plus a few
1807effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// seconds of audio data before is sent back to improve voice search.
1808effb81e5f8246d0db0270817048dc992db66e9fbBen Murdochconst char kHotwordAudioLoggingEnabled[] = "hotword.audio_logging_enabled";
1809effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
18106d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// A string holding the locale information under which Hotword was installed.
18116d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// It is used for comparison since the hotword voice search trigger must be
18126d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// reinstalled to handle a new language.
18136d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kHotwordPreviousLanguage[] = "hotword.previous_language";
18146d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
181568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)#if defined(OS_ANDROID)
181668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Boolean that controls the global enabled-state of protected media identifier.
181768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kProtectedMediaIdentifierEnabled[] =
181868043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)    "protected_media_identifier.enabled";
181968043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)#endif
182068043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
18215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
18225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary for transient storage of settings that should go into device
18235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// settings storage before owner has been assigned.
18245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceSettingsCache[] = "signed_settings_cache";
18255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The hardware keyboard layout of the device. This should look like
18275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "xkb:us::eng".
18285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
18295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref which shows number of times carrier deal promo
18315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// notification has been shown to user.
18325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCarrierDealPromoShown[] =
18335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.internet.mobile.carrier_deal_promo_shown";
18345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref of the auto-enrollment decision. Its value is only valid if
18365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it's not the default value; otherwise, no auto-enrollment decision has been
18375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// made yet.
18385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
18395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref with the maximum number of bits used by the client in a
18415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// previous auto-enrollment request. If the client goes through an auto update
18425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// during OOBE and reboots into a version of the OS with a larger maximum
18435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// modulus, then it will retry auto-enrollment using the updated value.
18445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
18455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The local state pref that stores device activity times before reporting
18475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// them to the policy server.
18485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceActivityTimes[] = "device_status.activity_times";
18495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the last known location when device location reporting is
18515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enabled.
18525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceLocation[] = "device_status.location";
18535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the value of the policy used to disable mounting of external
18555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// storage for the user.
18565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
18575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the value of the policy used to disable playing audio on
18595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite
18605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it, therefore when the policy is lifted the original mute state is restored.
18615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioOutputAllowed[] = "hardware.audio_output_enabled";
18625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A dictionary that maps usernames to wallpaper properties.
18645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUsersWallpaperInfo[] = "user_wallpaper_info";
18655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copy of owner swap mouse buttons option to use on login screen.
18675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
18685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copy of owner tap-to-click option to use on login screen.
18705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
18712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
18722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The length of device uptime after which an automatic reboot is scheduled,
18732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// expressed in seconds.
18742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kUptimeLimit[] = "automatic_reboot.uptime_limit";
18752a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
18762a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Whether an automatic reboot should be scheduled when an update has been
18772a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// applied and a reboot is required to complete the update process.
18782a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update";
1879c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
1880c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// An any-api scoped refresh token for enterprise-enrolled devices.  Allows
1881c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// for connection to Google APIs when the user isn't logged in.  Currently used
1882c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// for for getting a cloudprint scoped token to allow printing in Guest mode,
1883c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Public Accounts and kiosks.
1884c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDeviceRobotAnyApiRefreshToken[] =
1885c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "device_robot_refresh_token.any-api";
1886868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
1887868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Device requisition for enterprise enrollment.
1888868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition";
1889868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
1890868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Whether to automatically start the enterprise enrollment step during OOBE.
1891868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start";
1892868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
1893868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Whether the user may exit enrollment.
1894868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit";
1895a3f7b4e666c476898878fa745f637129375cd889Ben Murdoch
1896cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// How many times HID detection OOBE dialog was shown.
1897cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kTimesHIDDialogShown[] = "HIDDialog.shown_how_many_times";
1898cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
1899a3f7b4e666c476898878fa745f637129375cd889Ben Murdoch// Dictionary of per-user Least Recently Used input method (used at login
1900a3f7b4e666c476898878fa745f637129375cd889Ben Murdoch// screen).
1901a3f7b4e666c476898878fa745f637129375cd889Ben Murdochextern const char kUsersLRUInputMethod[] = "UsersLRUInputMethod";
1902424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)
1903424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// A dictionary pref of the echo offer check flag. It sets offer info when
1904424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// an offer is checked.
1905424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)extern const char kEchoCheckedOffers[] = "EchoCheckedOffers";
190668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
190768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Key name of a dictionary in local state to store cached multiprofle user
190868043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// behavior policy value.
190968043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior";
19100f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
19110f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// A string pref with initial locale set in VPD or manifest.
19120f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kInitialLocale[] = "intl.initial_locale";
19130f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
19140f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// A boolean pref of the OOBE complete flag (first OOBE part before login).
19150f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kOobeComplete[] = "OobeComplete";
19160f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
1917cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// The name of the screen that has to be shown if OOBE has been interrupted.
1918cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kOobeScreenPending[] = "OobeScreenPending";
1919cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
19200f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// A boolean pref of the device registered flag (second part after first login).
19210f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kDeviceRegistered[] = "DeviceRegistered";
19220f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
1923116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Boolean pref to signal corrupted enrollment to force the device through
1924116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// enrollment recovery flow upon next boot.
1925116680a4aac90f2aa7413d9095a592090648e557Ben Murdochconst char kEnrollmentRecoveryRequired[] = "EnrollmentRecoveryRequired";
1926116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
19275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// List of usernames that used certificates pushed by policy before.
19285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// This is used to prevent these users from joining multiprofile sessions.
19295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kUsedPolicyCertificates[] = "policy.used_policy_certificates";
19305d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
1931a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// A dictionary containing server-provided device state pulled form the cloud
1932a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// after recovery.
1933a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kServerBackedDeviceState[] = "server_backed_device_state";
1934a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
19350529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Customized wallpaper URL, which is already downloaded and scaled.
19360529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// The URL from this preference must never be fetched. It is compared to the
19370529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// URL from customization document to check if wallpaper URL has changed
19380529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// since wallpaper was cached.
19390529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochconst char kCustomizationDefaultWallpaperURL[] =
19400529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "customization.default_wallpaper_url";
194146d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
194246d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// System uptime, when last logout started.
194346d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// This is saved to file and cleared after chrome process starts.
194446d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kLogoutStartedLast[] = "chromeos.logout-started";
19455f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
19461320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// An integer pref of the current consumer management enrollment stage. The
19471320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// meaning of the value is defined in the enum EnrollmentStage in:
19486e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)//   chrome/browser/chromeos/policy/consumer_management_service.h
19491320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kConsumerManagementEnrollmentStage[] =
19501320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci    "consumer_management.enrollment_stage";
19515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
19525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether there is a Flash version installed that supports clearing LSO data.
19545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
19555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether we should show Pepper Flash-specific settings.
19575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPepperFlashSettingsEnabled[] =
19585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.pepper_flash_settings_enabled";
19595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies where to store the disk cache.
19615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDiskCacheDir[] = "browser.disk_cache_dir";
19625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pref name for the policy specifying the maximal cache size.
19635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDiskCacheSize[] = "browser.disk_cache_size";
19645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pref name for the policy specifying the maximal media cache size.
19655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaCacheSize[] = "browser.media_cache_size";
19665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the release channel that the device should be locked to.
19685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Possible values: "stable-channel", "beta-channel", "dev-channel", or an
19695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// empty string, in which case the value will be ignored.
19705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// TODO(dubroy): This preference may not be necessary once
19715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// http://crosbug.com/17015 is implemented and the update engine can just
19725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// fetch the correct value from the policy.
19735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
19745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1975558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdochconst char kPerformanceTracingEnabled[] =
1976558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch    "feedback.performance_tracing_enabled";
1977558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch
1978cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Boolean indicating whether tabstrip uses stacked layout (on touch devices).
1979cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Defaults to false.
1980cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kTabStripStackedLayout[] = "tab-strip-stacked-layout";
19815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1982effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// Indicates that factory reset was requested from options page or reset screen.
19835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kFactoryResetRequested[] = "FactoryResetRequested";
19845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1985eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Boolean recording whether we have showed a balloon that calls out the message
1986eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// center for desktop notifications.
1987eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kMessageCenterShowedFirstRunBalloon[] =
1988eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "message_center.showed_first_run_balloon";
1989eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
19905c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Boolean recording whether the user has disabled the notifications
19915c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// menubar or systray icon.
19925c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kMessageCenterShowIcon[] = "message_center.show_icon";
19935c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
19945c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kMessageCenterForcedOnTaskbar[] =
19955c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu    "message_center.was_forced_on_taskbar";
19965c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
19975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// *************** SERVICE PREFS ***************
19985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These are attached to the service process.
19995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintRoot[] = "cloud_print";
20015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
20025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The unique id for this instance of the cloud print proxy.
20035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
20045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GAIA auth token for Cloud Print
20055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
20065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GAIA auth token used by Cloud Print to authenticate with the XMPP server
20075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This should eventually go away because the above token should work for both.
20085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token";
20095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The email address of the account used to authenticate with the Cloud Print
20105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// server.
20115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintEmail[] = "cloud_print.email";
20125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Settings specific to underlying print system.
20135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintPrintSystemSettings[] =
20145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "cloud_print.print_system_settings";
20155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether we should poll for print jobs when don't have
20165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// an XMPP connection (false by default).
20175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
20185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
20195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
20205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether we should connect to cloud print new printers.
2021c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kCloudPrintConnectNewPrinters[] =
2022c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "cloud_print.user_settings.connectNewPrinters";
20235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether we should ping XMPP connection.
20245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
20255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An int value indicating the average timeout between xmpp pings.
20265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
2027c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Dictionary with settings stored by connector setup page.
2028c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kCloudPrintUserSettings[] = "cloud_print.user_settings";
2029c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// List of printers settings.
2030c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
20315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether submitting jobs to Google Cloud Print is
20325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// blocked by policy.
20335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
20345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preference to store proxy settings.
20365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProxy[] = "proxy";
20375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
20385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preferences that are exclusively used to store managed values for default
20405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// content settings.
20415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultCookiesSetting[] =
20425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.cookies";
20435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultImagesSetting[] =
20445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.images";
20455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultJavaScriptSetting[] =
20465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.javascript";
20475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultPluginsSetting[] =
20485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.plugins";
20495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultPopupsSetting[] =
20505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.popups";
20515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultGeolocationSetting[] =
20525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.geolocation";
20535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultNotificationsSetting[] =
20545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.notifications";
20555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultMediaStreamSetting[] =
20565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.media_stream";
20575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preferences that are exclusively used to store managed
20595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// content settings patterns.
20605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedCookiesAllowedForUrls[] =
20615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_cookies_allowed_for_urls";
20625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedCookiesBlockedForUrls[] =
20635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_cookies_blocked_for_urls";
20645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedCookiesSessionOnlyForUrls[] =
20655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_cookies_sessiononly_for_urls";
20665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedImagesAllowedForUrls[] =
20675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_images_allowed_for_urls";
20685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedImagesBlockedForUrls[] =
20695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_images_blocked_for_urls";
20705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedJavaScriptAllowedForUrls[] =
20715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_javascript_allowed_for_urls";
20725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedJavaScriptBlockedForUrls[] =
20735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_javascript_blocked_for_urls";
20745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPluginsAllowedForUrls[] =
20755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_plugins_allowed_for_urls";
20765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPluginsBlockedForUrls[] =
20775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_plugins_blocked_for_urls";
20785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPopupsAllowedForUrls[] =
20795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_popups_allowed_for_urls";
20805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPopupsBlockedForUrls[] =
20815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_popups_blocked_for_urls";
20825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedNotificationsAllowedForUrls[] =
20835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_notifications_allowed_for_urls";
20845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedNotificationsBlockedForUrls[] =
20855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_notifications_blocked_for_urls";
20865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedAutoSelectCertificateForUrls[] =
20875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_auto_select_certificate_for_urls";
20885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2089c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#if defined(OS_MACOSX)
20905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set to true if the user removed our login item so we should not create a new
20915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// one when uninstalling background apps.
20925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
20935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2094c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Set to true if Chrome already created a login item, so there's no need to
2095c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// create another one.
2096c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kChromeCreatedLoginItem[] =
2097c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  "background_mode.chrome_created_login_item";
2098c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
2099c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Set to true once we've initialized kChromeCreatedLoginItem for the first
2100c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// time.
2101c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kMigratedLoginItemPref[] =
2102c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  "background_mode.migrated_login_item_pref";
21035c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
21045c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// A boolean that tracks whether to show a notification when trying to quit
21055c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// while there are apps running.
21065c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kNotifyWhenAppsKeepChromeAlive[] =
21075c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu    "apps.notify-when-apps-keep-chrome-alive";
2108c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#endif
2109c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
21105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set to true if background mode is enabled on this browser.
21115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBackgroundModeEnabled[] = "background_mode.enabled";
21125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Set to true if hardware acceleration mode is enabled on this browser.
21142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kHardwareAccelerationModeEnabled[] =
21152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  "hardware_acceleration_mode.enabled";
21162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
2117c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Hardware acceleration mode from previous browser launch.
2118c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kHardwareAccelerationModePrevious[] =
2119c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  "hardware_acceleration_mode_previous";
2120c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
21215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of protocol handlers.
21225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRegisteredProtocolHandlers[] =
21235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "custom_handlers.registered_protocol_handlers";
21245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of protocol handlers the user has requested not to be asked about again.
21265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIgnoredProtocolHandlers[] =
21275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "custom_handlers.ignored_protocol_handlers";
21285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
212946d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// List of protocol handlers registered by policy.
213046d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kPolicyRegisteredProtocolHandlers[] =
213146d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)    "custom_handlers.policy.registered_protocol_handlers";
213246d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
213346d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// List of protocol handlers the policy has requested to be ignored.
213446d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kPolicyIgnoredProtocolHandlers[] =
213546d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)    "custom_handlers.policy.ignored_protocol_handlers";
213646d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
21375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether user-specified handlers for protocols and content types can be
21385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specified.
21395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
21405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21418bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Integer that specifies the policy refresh rate for device-policy in
21425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// milliseconds. Not all values are meaningful, so it is clamped to a sane range
21435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// by the cloud policy subsystem.
21445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
21455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2146effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// A boolean where true means that the browser has previously attempted to
2147effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// enable autoupdate and failed, so the next out-of-date browser start should
2148effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// not prompt the user to enable autoupdate, it should offer to reinstall Chrome
2149effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// instead.
2150effb81e5f8246d0db0270817048dc992db66e9fbBen Murdochconst char kAttemptedToEnableAutoupdate[] =
2151effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch    "browser.attempted_to_enable_autoupdate";
2152effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
21535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The next media gallery ID to assign.
21545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
21555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A list of dictionaries, where each dictionary represents a known media
21575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// gallery.
21585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaGalleriesRememberedGalleries[] =
21595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "media_galleries.remembered_galleries";
21605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21615d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// The last time a media scan completed.
21625d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time";
21635d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
21642a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(USE_ASH)
21655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
21665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// local variant is not synced and is used if set. If the local variant is not
21675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// set its value is set from the synced value (once prefs have been
21685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// synced). This gives a per-machine setting that is initialized from the last
21695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// set value.
21702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// These values are default on the machine but can be overridden by per-display
21712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// values in kShelfPreferences (unless overridden by managed policy).
21725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String value corresponding to ash::Shell::ShelfAlignment.
21735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAlignment[] = "shelf_alignment";
21745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAlignmentLocal[] = "shelf_alignment_local";
21755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String value corresponding to ash::Shell::ShelfAutoHideBehavior.
21765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
21775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
217890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// This value stores chrome icon's index in the launcher. This should be handled
2179f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// separately with app shortcut's index because of ShelfModel's backward
2180cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its
218190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// index is also stored in the |kPinnedLauncherApp| pref. It may causes
218290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// creating two chrome icons.
218390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index";
21842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Dictionary value that holds per-display preference of shelf alignment and
21852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// auto-hide behavior. Key of the dictionary is the id of the display, and
21862a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// its value is a dictionary whose keys are kShelfAlignment and
21872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// kShelfAutoHideBehavior.
21882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kShelfPreferences[] = "shelf_preferences";
21895d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
21905d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Integer value in milliseconds indicating the length of time for which a
21915d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// confirmation dialog should be shown when the user presses the logout button.
21925d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A value of 0 indicates that logout should happen immediately, without showing
21935d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// a confirmation dialog.
21945d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms";
21955d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kPinnedLauncherApps[] = "pinned_launcher_apps";
21965d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Boolean value indicating whether to show a logout button in the ash tray.
21975d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
21982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
21995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22002a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(USE_AURA)
22012a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Tuning settings for gestures.
22025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxSeparationForGestureTouchesInPixels[] =
22035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_separation_for_gesture_touches_in_pixels";
22045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSemiLongPressTimeInSeconds[] =
22055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.semi_long_press_time_in_seconds";
22062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kTabScrubActivationDelayInMS[] =
22072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.tab_scrub_activation_delay_in_ms";
22082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingMaxCancelToDownTimeInMs[] =
22092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_max_cancel_to_down_time_in_ms";
22102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingMaxTapGapTimeInMs[] =
22112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_max_tap_gap_time_in_ms";
22122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollHorizontalThresholdComplete[] =
22132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.horizontal_threshold_complete";
22142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollVerticalThresholdComplete[] =
22152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.vertical_threshold_complete";
22162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollMinimumThresholdStart[] =
22172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.minimum_threshold_start";
2218424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)const char kOverscrollMinimumThresholdStartTouchpad[] =
2219424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)    "overscroll.minimum_threshold_start_touchpad";
222058e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdochconst char kOverscrollVerticalThresholdStart[] =
222158e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdoch    "overscroll.vertical_threshold_start";
22222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollHorizontalResistThreshold[] =
22232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.horizontal_resist_threshold";
22242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollVerticalResistThreshold[] =
22252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.vertical_resist_threshold";
22265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
22275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Counts how many more times the 'profile on a network share' warning should be
22295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// shown to the user before the next silence period.
22305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
22315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tracks the time of the last shown warning. Used to reset
22325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |network_profile.warnings_left| after a silence period.
22335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetworkProfileLastWarningTime[] =
22345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "network_profile.last_warning_time";
22355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(OS_CHROMEOS)
22372a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The RLZ brand code, if enabled.
22382a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kRLZBrand[] = "rlz.brand";
22392a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Whether RLZ pings are disabled.
22402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kRLZDisabled[] = "rlz.disabled";
22412a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
22422a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
22434e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#if defined(ENABLE_APP_LIST)
22442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The directory in user data dir that contains the profile to be used with the
22452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// app launcher.
22465d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kAppListProfile[] = "app_list.profile";
22472a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
2248c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// The number of times the app launcher was launched since last ping and
2249c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// the time of the last ping.
22505d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kAppListLaunchCount[] = "app_list.launch_count";
22515d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
2252c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
2253c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// The number of times the an app was launched from the app launcher since last
2254c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// ping and the time of the last ping.
22555d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
22565d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
2257c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
22584e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// A boolean that tracks whether the user has ever enabled the app launcher.
22594e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kAppLauncherHasBeenEnabled[] =
22604e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "apps.app_launcher.has_been_enabled";
22614e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
22625d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// An enum indicating how the app launcher was enabled. E.g., via webstore, app
22635d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// install, command line, etc. For UMA.
22645d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kAppListEnableMethod[] = "app_list.how_enabled";
22655d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
22665d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// The time that the app launcher was enabled. Cleared when UMA is recorded.
22675d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kAppListEnableTime[] = "app_list.when_enabled";
22685d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
22694e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// TODO(calamity): remove this pref since app launcher will always be
22704e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// installed.
22714e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Local state caching knowledge of whether the app launcher is installed.
22724e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kAppLauncherIsEnabled[] =
22734e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "apps.app_launcher.should_show_apps_page";
22744e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
22754e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Integer representing the version of the app launcher shortcut installed on
22764e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// the system. Incremented, e.g., when embedded icons change.
22774e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version";
22784e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
22794e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// A boolean identifying if we should show the app launcher promo or not.
22804e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kShowAppLauncherPromo[] = "app_launcher.show_promo";
22816d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
22826d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// A dictionary that tracks the Drive app to Chrome app mapping. The key is
22836d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// a Drive app id and the value is the corresponding Chrome app id. The pref
22846d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// is unsynable and used to track local mappings only.
22856d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kAppLauncherDriveAppMapping[] =
22866d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)    "apps.app_launcher.drive_app_mapping";
22874e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#endif
22884e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
22894e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// If set, the user requested to launch the app with this extension id while
22904e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// in Metro mode, and then relaunched to Desktop mode to start it.
22914e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart";
22924e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
22934e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
22944e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// launch of the specified app when restarting Chrome in desktop mode.
22954e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kAppLaunchForMetroRestartProfile[] =
22964e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "apps.app_launch_for_metro_restart_profile";
22974e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
229846d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// An integer that is incremented whenever changes are made to app shortcuts.
229946d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// Increasing this causes all app shortcuts to be recreated.
230046d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kAppShortcutsVersion[] = "apps.shortcuts_version";
23014e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
2302868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// How often the bubble has been shown.
2303868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2304868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
2305c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A string pref for storing the salt used to compute the pepper device ID.
2306c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDRMSalt[] = "settings.privacy.drm_salt";
230758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// A boolean pref that enables the (private) pepper GetDeviceID() call and
230858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// enables the use of remote attestation for content protection.
2309c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEnableDRM[] = "settings.privacy.drm_enabled";
2310c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
23115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// An integer per-profile pref that signals if the watchdog extension is
23123551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)// installed and active. We need to know if the watchdog extension active for
23133551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)// ActivityLog initialization before the extension system is initialized.
23143551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)const char kWatchdogExtensionActive[] =
23155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "profile.extensions.activity_log.num_consumers_active";
23165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// The old version was a bool.
23175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kWatchdogExtensionActiveOld[] =
23183551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)    "profile.extensions.activity_log.watchdog_extension_active";
23193551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
23200f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)#if defined(OS_ANDROID)
23210f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// A list of partner bookmark rename/remove mappings.
23220f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Each list item is a dictionary containing a "url", a "provider_title" and
23230f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// "mapped_title" entries, detailing the bookmark target URL (if any), the title
23240f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// given by the PartnerBookmarksProvider and either the user-visible renamed
23250f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// title or an empty string if the bookmark node was removed.
23260f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
23270f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)#endif
23280f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
23295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Whether DNS Quick Check is disabled in proxy resolution.
23305d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
233123730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
23326e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Whether Guest Mode is enabled within the browser.
23336e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled";
23346e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
23351320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Whether Adding a new Person is enabled within the user manager.
23361320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kBrowserAddPersonEnabled[] = "profile.add_person_enabled";
23371320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
233834680572440d7894ef8dafce81d8039ed80726a2Torne (Richard Coles)// A dictionary that maps user id to hardlock state.
233934680572440d7894ef8dafce81d8039ed80726a2Torne (Richard Coles)const char kEasyUnlockHardlockState[] = "easy_unlock.hardlock_state";
234034680572440d7894ef8dafce81d8039ed80726a2Torne (Richard Coles)
23415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace prefs
2342