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)
1012