pref_names.cc revision 6d86b77056ed63eb6871182f42a9fd5f07550f90
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)
305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether the New Tab page is the home page or not.
315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This is the URL of the page to load when opening new tabs.
345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHomePage[] = "homepage";
355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Maps host names to whether the host is manually allowed or blocked.
37f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSupervisedUserManualHosts[] = "profile.managed.manual_hosts";
382a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Maps URLs to whether the URL is manually allowed or blocked.
39f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSupervisedUserManualURLs[] = "profile.managed.manual_urls";
405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
41868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Stores the email address associated with the google account of the custodian
42f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// of the supervised user, set when the supervised user is created.
43f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email";
44eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
45eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Stores the display name associated with the google account of the custodian
46f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// of the supervised user, updated (if possible) each time the supervised user
47eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// starts a session.
48f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSupervisedUserCustodianName[] = "profile.managed.custodian_name";
49868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
505d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Stores settings that can be modified both by a supervised user and their
515d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// manager. See ManagedUserSharedSettingsService for a description of
525d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// the format.
53f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSupervisedUserSharedSettings[] = "profile.managed.shared_settings";
545d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
55ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// An integer that keeps track of the profile icon version. This allows us to
56ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// determine the state of the profile icon for icon format changes.
57ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kProfileIconVersion[] = "profile.icon_version";
58ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to determine if the last session exited cleanly. Set to false when
605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// first opened, and to true when closing. On startup if the value is false,
615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it means the profile didn't exit cleanly.
625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// DEPRECATED: this is replaced by kSessionExitType and exists for backwards
63cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// compatibility.
645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSessionExitedCleanly[] = "profile.exited_cleanly";
655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref whose values is one of the values defined by
675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// shutdown. Used to determine the exit type the last time the profile was open.
705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSessionExitType[] = "profile.exit_type";
715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref. Holds one of several values:
735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0: (deprecated) open the homepage on startup.
745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1: restore the last session.
755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2: this was used to indicate a specific session should be restored. It is
765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//    no longer used, but saved to avoid conflict with old preferences.
775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 3: unused, previously indicated the user wants to restore a saved session.
785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 4: restore the URLs defined in kURLsToRestoreOnStartup.
795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 5: open the New Tab Page on startup.
805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestoreOnStartup[] = "session.restore_on_startup";
815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A preference to keep track of whether we have already checked whether we
835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// We only need to do this check once, on upgrade from m18 or lower to m19 or
855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// higher.
865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
88ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// The URLs to restore on startup or when the home button is pressed. The URLs
89ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// are only restored on startup if kRestoreOnStartup is 4.
908bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kURLsToRestoreOnStartup[] = "session.startup_urls";
918bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
928bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Old startup url pref name for kURLsToRestoreOnStartup.
938bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup";
948bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
958bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Serialized migration time of kURLsToRestoreOnStartup (see
968bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// base::Time::ToInternalValue for details on serialization format).
978bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kRestoreStartupURLsMigrationTime[] =
988bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)    "session.startup_urls_migration_time";
99ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
1004e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// If set to true profiles are created in ephemeral mode and do not store their
1014e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// data in the profile folder on disk but only in memory.
1024e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
1034e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
1045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The application locale.
1055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// For OS_CHROMEOS we maintain kApplicationLocale property in both local state
1065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// and user's profile.  Global property determines locale of login screen,
1075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// while user's profile determines his personal locale preference.
1085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApplicationLocale[] = "intl.app_locale";
1095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
1105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Locale preference of device' owner.  ChromeOS device appears in this locale
1115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// after startup/wakeup/signout.
1125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOwnerLocale[] = "intl.owner_locale";
1135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Locale accepted by user.  Non-syncable.
1145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to determine whether we need to show Locale Change notification.
1155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted";
1165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Non-syncable item.
1175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// It is used in two distinct ways.
1185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (1) Used for two-step initialization of locale in ChromeOS
1195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//     because synchronization of kApplicationLocale is not instant.
1205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (2) Used to detect locale change.  Locale change is detected by
1215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//     LocaleChangeGuard in case values of kApplicationLocaleBackup and
1225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//     kApplicationLocale are both non-empty and differ.
1235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Following is a table showing how state of those prefs may change upon
1245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// common real-life use cases:
1255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//                                  AppLocale Backup Accepted
1265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sync                                B        A       -
1285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Accept (B)                          B        B       B
1295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------
1305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// No sync and second login            A        A       -
1325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Change options                      B        B       -
1335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------
1345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sync                                A        A       -
1365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Locale changed on login screen      A        C       -
1375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Accept (A)                          A        A       A
1385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------
1395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sync                                B        A       -
1415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Revert                              A        A       -
1425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
1435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
1445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The default character encoding to assume for a web page in the
1465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// absence of MIME charset specification
1475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultCharset[] = "intl.charset_default";
1485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value to use for Accept-Languages HTTP header when making an HTTP
1505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// request.
1515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAcceptLanguages[] = "intl.accept_languages";
1525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value to use for showing locale-dependent encoding list for different
1545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// locale, it's initialized from the corresponding string resource that is
1555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// stored in non-translatable part of the resource bundle.
1565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStaticEncodings[] = "intl.static_encodings";
1575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If these change, the corresponding enums in the extension API
1595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// experimental.fontSettings.json must also change.
1605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char* const kWebKitScriptsForFontFamilyMaps[] = {
1612a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#define EXPAND_SCRIPT_FONT(x, script_name) script_name ,
1622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#include "chrome/common/pref_font_script_names-inl.h"
1632a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)ALL_FONT_SCRIPTS("unused param")
1642a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#undef EXPAND_SCRIPT_FONT
1655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)};
1665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const size_t kWebKitScriptsForFontFamilyMapsLength =
1685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    arraysize(kWebKitScriptsForFontFamilyMaps);
1695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Strings for WebKit font family preferences. If these change, the pref prefix
1715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// in pref_names_util.cc and the pref format in font_settings_api.cc must also
1725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// change.
1735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyMap[] =
1742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_STANDARD;
1755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyMap[] =
1762a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_FIXED;
1775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyMap[] =
1782a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_SERIF;
1795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyMap[] =
1802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_SANSERIF;
1815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCursiveFontFamilyMap[] =
1822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_CURSIVE;
1835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFantasyFontFamilyMap[] =
1842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_FANTASY;
1855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitPictographFontFamilyMap[] =
1862a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_PICTOGRAPH;
1875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyArabic[] =
1885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Arab";
1895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyArabic[] =
1905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Arab";
1915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyArabic[] =
1925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Arab";
1935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyArabic[] =
1945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Arab";
1955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyCyrillic[] =
1965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Cyrl";
1975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyCyrillic[] =
1985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Cyrl";
1995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyCyrillic[] =
2005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Cyrl";
2015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyCyrillic[] =
2025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Cyrl";
2035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyGreek[] =
2045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Grek";
2055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyGreek[] =
2065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Grek";
2075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyGreek[] =
2085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Grek";
2095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyGreek[] =
2105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Grek";
2115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyJapanese[] =
2125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Jpan";
2135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyJapanese[] =
2145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Jpan";
2155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyJapanese[] =
2165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Jpan";
2175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyJapanese[] =
2185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Jpan";
2195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyKorean[] =
2205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Hang";
2215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyKorean[] =
2225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Hang";
2235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyKorean[] =
2245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Hang";
2255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyKorean[] =
2265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Hang";
2275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCursiveFontFamilyKorean[] =
2285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.cursive.Hang";
2295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilySimplifiedHan[] =
2305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Hans";
2315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilySimplifiedHan[] =
2325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Hans";
2335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilySimplifiedHan[] =
2345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Hans";
2355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilySimplifiedHan[] =
2365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Hans";
2375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyTraditionalHan[] =
2385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Hant";
2395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyTraditionalHan[] =
2405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Hant";
2415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyTraditionalHan[] =
2425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Hant";
2435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyTraditionalHan[] =
2445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Hant";
2455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// WebKit preferences.
2475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
2485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled";
2495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitShrinksStandaloneImagesToFit[] =
2505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.shrinks_standalone_images_to_fit";
2515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings";
2525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitUsesUniversalDetector[] =
2535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.uses_universal_detector";
2545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitTextAreasAreResizable[] =
2555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.text_areas_are_resizable";
2565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled";
2575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links";
2585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitAllowDisplayingInsecureContent[] =
2595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.allow_displaying_insecure_content";
2605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitAllowRunningInsecureContent[] =
2615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.allow_running_insecure_content";
2625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
2635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor";
2645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom";
265868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kWebKitPasswordEchoEnabled[] =
266868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)    "webkit.webprefs.password_echo_enabled";
2675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
2685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCommonScript[] = "Zyyy";
2705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy";
2715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy";
2725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy";
2735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamily[] =
2745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Zyyy";
2755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy";
2765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy";
2775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitPictographFontFamily[] =
2785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.pictograph.Zyyy";
2795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size";
2805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitDefaultFixedFontSize[] =
2815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.default_fixed_font_size";
2825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
2835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitMinimumLogicalFontSize[] =
2845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.minimum_logical_font_size";
2855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
2865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
2875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.javascript_can_open_windows_automatically";
2885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitLoadsImagesAutomatically[] =
2895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.loads_images_automatically";
2905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled";
2915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when SafeBrowsing is enabled.
2935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
2945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2955d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Boolean that tell us whether malicious download feedback is enabled.
296f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSafeBrowsingExtendedReportingEnabled[] =
297f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "safebrowsing.extended_reporting_enabled";
298f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
299f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// Boolean that tell us whether malicious download feedback is enabled.
300f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// TODO(felt): Deprecate. crbug.com/383866
3015d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kSafeBrowsingDownloadFeedbackEnabled[] =
3025d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "safebrowsing.download_feedback_enabled";
3035d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
3045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when SafeBrowsing Malware Report is enabled.
305f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// TODO(felt): Deprecate. crbug.com/383866
3065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingReportingEnabled[] =
3075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "safebrowsing.reporting_enabled";
3085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when the SafeBrowsing interstitial should not allow
3105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// users to proceed anyway.
3115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingProceedAnywayDisabled[] =
3125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "safebrowsing.proceed_anyway_disabled";
3135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3146d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// Boolean that is true when SafeBrowsing has sent an incident report.
3156d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kSafeBrowsingIncidentReportSent[] =
3166d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)    "safebrowsing.incident_report_sent";
3176d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
3185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enum that specifies whether Incognito mode is:
3195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0 - Enabled. Default behaviour. Default mode is available on demand.
3205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1 - Disabled. Used cannot browse pages in Incognito mode.
3215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2 - Forced. All pages/sessions are forced into Incognito.
3225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIncognitoModeAvailability[] = "incognito.mode_availability";
3235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when Suggest support is enabled.
3255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSearchSuggestEnabled[] = "search.suggest_enabled";
3265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#if defined(OS_ANDROID)
3285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Integer indicating the Contextual Search enabled state.
3295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// -1 - opt-out (disabled)
3305d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)//  0 - undecided
3315d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)//  1 - opt-in (enabled)
3325d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kContextualSearchEnabled[] = "search.contextual_search_enabled";
3335d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#endif
3345d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
3355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether the browser should put up a confirmation
3365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// window when the user is attempting to quit. Mac only.
3375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
3385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE.  Enum that specifies whether to enforce a third-party cookie
3405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// blocking policy.  This has been superseded by kDefaultContentSettings +
3415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kBlockThirdPartyCookies.
3425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0 - allow all cookies.
3435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1 - block third-party cookies
3445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2 - block all cookies
3455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCookieBehavior[] = "security.cookie_behavior";
3465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GUID of the synced default search provider. Note that this acts like a
3485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// pointer to which synced search engine should be the default, rather than the
3495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// prefs below which describe the locally saved default search provider details
3505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (and are not synced). This is ignored in the case of the default search
3515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// provider being managed by policy.
3525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncedDefaultSearchProviderGUID[] =
3535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.synced_guid";
3545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether having a default search provider is enabled.
3565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderEnabled[] =
3575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.enabled";
3585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL (as understood by TemplateURLRef) the default search provider uses
3605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for searches.
3615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderSearchURL[] =
3625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.search_url";
3635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL (as understood by TemplateURLRef) the default search provider uses
3655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for suggestions.
3665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderSuggestURL[] =
3675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.suggest_url";
3685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL (as understood by TemplateURLRef) the default search provider uses
3705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for instant results.
3715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderInstantURL[] =
3725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.instant_url";
3735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
374a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// The URL (as understood by TemplateURLRef) the default search provider uses
375a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// for image search results.
376a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kDefaultSearchProviderImageURL[] =
377a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "default_search_provider.image_url";
378a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
3793551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)// The URL (as understood by TemplateURLRef) the default search provider uses
3803551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)// for the new tab page.
3813551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)const char kDefaultSearchProviderNewTabURL[] =
3823551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)    "default_search_provider.new_tab_url";
3833551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
384a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// The string of post parameters (as understood by TemplateURLRef) the default
385a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// search provider uses for searches by using POST.
386a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kDefaultSearchProviderSearchURLPostParams[] =
387a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "default_search_provider.search_url_post_params";
388a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
389a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// The string of post parameters (as understood by TemplateURLRef) the default
390a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// search provider uses for suggestions by using POST.
391a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kDefaultSearchProviderSuggestURLPostParams[] =
392a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "default_search_provider.suggest_url_post_params";
393a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
394a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// The string of post parameters (as understood by TemplateURLRef) the default
395a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// search provider uses for instant results by using POST.
396a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kDefaultSearchProviderInstantURLPostParams[] =
397a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "default_search_provider.instant_url_post_params";
398a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
399a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// The string of post parameters (as understood by TemplateURLRef) the default
400a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// search provider uses for image search results by using POST.
401a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kDefaultSearchProviderImageURLPostParams[] =
402a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "default_search_provider.image_url_post_params";
403a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
4045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The Favicon URL (as understood by TemplateURLRef) of the default search
4055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// provider.
4065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderIconURL[] =
4075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.icon_url";
4085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The input encoding (as understood by TemplateURLRef) supported by the default
4105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// search provider.  The various encodings are separated by ';'
4115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderEncodings[] =
4125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.encodings";
4135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The name of the default search provider.
4155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderName[] = "default_search_provider.name";
4165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The keyword of the default search provider.
4185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword";
4195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The id of the default search provider.
4215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderID[] = "default_search_provider.id";
4225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The prepopulate id of the default search provider.
4245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderPrepopulateID[] =
4255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.prepopulate_id";
4265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The alternate urls of the default search provider.
4285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderAlternateURLs[] =
4295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.alternate_urls";
4305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Search term placement query parameter for the default search provider.
4322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDefaultSearchProviderSearchTermsReplacementKey[] =
4332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "default_search_provider.search_terms_replacement_key";
4342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
4355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The dictionary key used when the default search providers are given
4365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// in the preferences file. Normally they are copied from the master
4375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences file.
4385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSearchProviderOverrides[] = "search_provider_overrides";
4395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The format version for the dictionary above.
4405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSearchProviderOverridesVersion[] =
4415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "search_provider_overrides_version";
4425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean which specifies whether we should ask the user if we should download
4445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a file (true) or just download it automatically.
4455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPromptForDownload[] = "download.prompt_for_download";
4465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if we're using Link Doctor error pages.
4485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled";
4495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE: new pref now stored with user prefs instead of profile, as
4515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kDnsPrefetchingStartupList.
4525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList";
4535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An adaptively identified list of domain names to be pre-fetched during the
4555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// next startup, based on what was actually needed during this startup.
4565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list";
4575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE: new pref now stored with user prefs instead of profile, as
4595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kDnsPrefetchingHostReferralList.
4605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsHostReferralList[] = "HostReferralList";
4615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A list of host names used to fetch web pages, and their commonly used
4635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// sub-resource hostnames (and expected latency benefits from pre-resolving, or
4645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preconnecting to, such sub-resource hostnames).
4655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This list is adaptively grown and pruned.
4665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsPrefetchingHostReferralList[] =
4675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "dns_prefetching.host_referral_list";
4685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the SPDY protocol.
4705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSpdy[] = "spdy.disabled";
4715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for persisting HttpServerProperties.
4735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHttpServerProperties[] = "net.http_server_properties";
4745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for server names that support SPDY protocol.
4765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpdyServers[] = "spdy.servers";
4775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for servers that support Alternate-Protocol.
4795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAlternateProtocolServers[] = "spdy.alternate_protocol";
4805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the listed protocol schemes.
4825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisabledSchemes[] = "protocol.disabled_schemes";
4835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
484010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)#if defined(OS_ANDROID) || defined(OS_IOS)
4857dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Last time that a check for cloud policy management was done. This time is
4867dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// recorded on Android so that retries aren't attempted on every startup.
4877dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Instead the cloud policy registration is retried at least 1 or 3 days later.
4887dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kLastPolicyCheckTime[] = "policy.last_policy_check_time";
4897dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch#endif
4902a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
4915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefix URL for the experimental Instant ZeroSuggest provider.
4925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInstantUIZeroSuggestUrlPrefix[] =
4935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "instant_ui.zero_suggest_url_prefix";
4945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to migrate preferences from local state to user preferences to
4965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enable multiple profiles.
4975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// BITMASK with possible values (see browser_prefs.cc for enum):
4985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0: No preferences migrated.
4995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList
5005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2: Browser window preferences migrated: kDevToolsSplitLocation and
5015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//    kBrowserWindowPlacement
5025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMultipleProfilePrefMigration[] =
5035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "local_state.multiple_profile_prefs_version";
5045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if prediction of network actions is allowed.
5065d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Actions include DNS prefetching, TCP and SSL preconnection, prerendering
5075d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// of web pages, and resource prefetching.
5085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// NOTE: The "dns_prefetching.enabled" value is used so that historical user
5095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences are not lost.
5106d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// TODO(bnc): Remove kNetworkPredictionEnabled once kAllowNetworkPrediction is
5116d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// functioning as per crbug.com/334602.
5125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
5135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5146d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// A preference of enum chrome_browser_net::NetworkPredictionOptions shows
5156d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// if prediction of network actions is allowed, depending on network type.
5166d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// Actions include DNS prefetching, TCP and SSL preconnection, prerendering
5176d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// of web pages, and resource prefetching.
5186d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// TODO(bnc): Implement this preference as per crbug.com/334602.
5196d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kAllowNetworkPrediction[] = "net.allow_network_prediction";
5206d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
5215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer representing the state of the default apps installation process.
5225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This value is persisted in the profile's user preferences because the process
5235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is async, and the user may have stopped chrome in the middle.  The next time
5245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the profile is opened, the process will continue from where it left off.
5255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
5265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// See possible values in external_provider_impl.cc.
5275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultAppsInstallState[] = "default_apps_install_state";
5285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5292a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A boolean pref set to true if the Chrome Web Store icons should be hidden
5302a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// from the New Tab Page and app launcher.
5312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kHideWebStoreIcon[] = "hide_web_store_icon";
5322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
5335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
534c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A dictionary pref to hold the mute setting for all the currently known
535c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// audio devices.
536c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAudioDevicesMute[] = "settings.audio.devices.mute";
537c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
538c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A dictionary pref storing the volume settings for all the currently known
539c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// audio devices.
540c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAudioDevicesVolumePercent[] =
541c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "settings.audio.devices.volume_percent";
542c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
5435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref to initially mute volume if 1. This pref is ignored if
5445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |kAudioOutputAllowed| is set to false, but its value is preserved, therefore
545c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// when the policy is lifted the original mute state is restored.  This setting
546c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// is here only for migration purposes now. It is being replaced by the
547c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// |kAudioDevicesMute| setting.
5485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioMute[] = "settings.audio.mute";
5495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
550c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A double pref storing the user-requested volume. This setting is here only
551c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// for migration purposes now. It is being replaced by the
552c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// |kAudioDevicesVolumePercent| setting.
5535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioVolumePercent[] = "settings.audio.volume_percent";
5545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5555d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// An integer pref to record user's spring charger check result.
5565d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 0 - unknown charger, not checked yet.
5575d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 1 - confirmed safe charger.
5585d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 2 - confirmed original charger and declined to order new charger.
5595d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 3 - confirmed original charger and ordered new charger online.
5605d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 4 - confirmed original charger and ordered new charger by phone.
5615d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 5 - confirmed original charger, ordered a new one online, but continue to use
5625d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)//     the old one.
5635d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// 6 - confirmed original charger, ordered a new one by phone, but continue to
5645d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)//     use the old one.
5655d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kSpringChargerCheck[] = "settings.spring_charger.check_result";
5665d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
5675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad tap-to-click is enabled.
5685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click";
5695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad tap-dragging is enabled.
5715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging";
5725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad three-finger-click is enabled.
5745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableTouchpadThreeFingerClick[] =
5755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.touchpad.enable_three_finger_click";
5765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad natural scrolling is enabled.
5785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNaturalScroll[] = "settings.touchpad.natural_scroll";
5795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if primary mouse button is the left button.
5815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right";
5825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref for the touchpad sensitivity.
5845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMouseSensitivity[] = "settings.mouse.sensitivity2";
5855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref for the touchpad sensitivity.
5875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
5885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if time should be displayed in 24-hour clock.
5905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
5915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref to disable Google Drive integration.
5935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The pref prefix should remain as "gdata" for backward compatibility.
5945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDrive[] = "gdata.disabled";
5955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref to disable Drive over cellular connections.
5975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The pref prefix should remain as "gdata" for backward compatibility.
5985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDriveOverCellular[] = "gdata.cellular.disabled";
5995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref to disable hosted files on Drive.
6015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The pref prefix should remain as "gdata" for backward compatibility.
6025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled";
6035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref set to the current input method.
6055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageCurrentInputMethod[] =
6065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.current_input_method";
6075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref set to the previous input method.
6095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePreviousInputMethod[] =
6105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.previous_input_method";
6115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the "next engine in menu"
6135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// hot-key lists.
6145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageHotkeyNextEngineInMenu[] =
6155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.hotkey_next_engine_in_menu";
6165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the "previous engine"
6185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// hot-key lists.
6195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageHotkeyPreviousEngine[] =
6205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.hotkey_previous_engine";
6215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the preferred language IDs
6235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (ex. "en-US,fr,ko").
6245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePreferredLanguages[] =
6255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.preferred_languages";
6265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the preloaded (active) input
6285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// method IDs (ex. "pinyin,mozc").
6295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePreloadEngines[] = "settings.language.preload_engines";
6305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
631b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// A List pref (comma-separated list) set to the extension IMEs to be enabled.
632b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)const char kLanguageEnabledExtensionImes[] =
633b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)    "settings.language.enabled_extension_imes";
6345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6351e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Integer prefs which determine how we remap modifier keys (e.g. swap Alt and
6365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
6375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// src/chrome/browser/chromeos/input_method/xkeyboard.h
6385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapSearchKeyTo[] =
6395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    // Note: we no longer use XKB for remapping these keys, but we can't change
6405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    // the pref names since the names are already synced with the cloud.
6415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_remap_search_key_to";
6425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapControlKeyTo[] =
6435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_remap_control_key_to";
6445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapAltKeyTo[] =
6455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_remap_alt_key_to";
6465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapCapsLockKeyTo[] =
6475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.remap_caps_lock_key_to";
6482a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kLanguageRemapDiamondKeyTo[] =
6492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "settings.language.remap_diamond_key_to";
6505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6511e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// A boolean pref that causes top-row keys to be interpreted as function keys
6521e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// instead of as media keys.
6531e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kLanguageSendFunctionKeys[] =
6541e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    "settings.language.send_function_keys";
6551e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
6565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether key repeat is enabled.
6575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageXkbAutoRepeatEnabled[] =
6585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_auto_repeat_enabled_r2";
6595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref which determines key repeat delay (in ms).
6605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageXkbAutoRepeatDelay[] =
6615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_auto_repeat_delay_r2";
6625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref which determines key repeat interval (in ms).
6635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageXkbAutoRepeatInterval[] =
6645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_auto_repeat_interval_r2";
6655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "_r2" suffixes are added to the three prefs above when we change the
6665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences not user-configurable, not to sync them with cloud.
6675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
668868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// A boolean pref which determines whether the large cursor feature is enabled.
669f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityLargeCursorEnabled[] =
670f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.large_cursor_enabled";
6715d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
6727d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// A boolean pref which determines whether the sticky keys feature is enabled.
673f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityStickyKeysEnabled[] =
674f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.sticky_keys_enabled";
6755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether spoken feedback is enabled.
676f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilitySpokenFeedbackEnabled[] = "settings.accessibility";
6775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether high conrast is enabled.
678f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityHighContrastEnabled[] =
679f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.high_contrast_enabled";
6805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether screen magnifier is enabled.
681f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityScreenMagnifierEnabled[] =
682f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.screen_magnifier";
6832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A integer pref which determines what type of screen magnifier is enabled.
6842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Note that: 'screen_magnifier_type' had been used as string pref. Hence,
6852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// we are using another name pref here.
686f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityScreenMagnifierType[] =
687f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.screen_magnifier_type2";
6885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A double pref which determines a zooming scale of the screen magnifier.
689f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityScreenMagnifierScale[] =
690f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.screen_magnifier_scale";
6915d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A boolean pref which determines whether the virtual keyboard is enabled for
6925d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// accessibility.  This feature is separate from displaying an onscreen keyboard
6935d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// due to lack of a physical keyboard.
694f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityVirtualKeyboardEnabled[] =
695f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.virtual_keyboard";
6964e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// A boolean pref which determines whether autoclick is enabled.
697f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityAutoclickEnabled[] = "settings.a11y.autoclick";
6988bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// An integer pref which determines time in ms between when the mouse cursor
6998bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// stops and when an autoclick is triggered.
700f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kAccessibilityAutoclickDelayMs[] =
701f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "settings.a11y.autoclick_delay_ms";
7022a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A boolean pref which determines whether the accessibility menu shows
7032a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// regardless of the state of a11y features.
7042a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu";
7055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which turns on Advanced Filesystem
7075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (USB support, SD card, etc).
7085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLabsAdvancedFilesystemEnabled[] =
7095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.labs.advanced_filesystem";
7105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which turns on the mediaplayer.
7125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer";
7135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A boolean pref that turns on automatic screen locking.
7155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableAutoScreenLock[] = "settings.enable_screen_lock";
7165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref of whether to show mobile plan notifications.
7185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowPlanNotifications[] =
7195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.internet.mobile.show_plan_notifications";
7205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref of whether to show 3G promo notification.
7225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShow3gPromoNotification[] =
7235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.internet.mobile.show_3g_promo_notification";
7245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref that contains version where "What's new" promo was shown.
7265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version";
7275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7287dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// A boolean pref that controls whether proxy settings from shared network
7297dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// settings (accordingly from device policy) are applied or ignored.
7305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUseSharedProxies[] = "settings.use_shared_proxies";
7315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
732c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Power state of the current displays from the last run.
733c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDisplayPowerState[] = "settings.display.power_state";
7342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A dictionary pref that stores per display preferences.
7352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisplayProperties[] = "settings.display.properties";
7365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A dictionary pref that specifies per-display layout/offset information.
7385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Its key is the ID of the display and its value is a dictionary for the
7395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// layout/offset information.
7405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSecondaryDisplays[] = "settings.display.secondary_displays";
7412a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7421e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// A boolean pref indicating whether user activity has been observed in the
7431e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// current session already. The pref is used to restore information about user
7441e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// activity after browser crashes.
7451e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kSessionUserActivitySeen[] = "session.user_activity_seen";
7461e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
7471e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// A preference to keep track of the session start time. If the session length
7481e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// limit is configured to start running after initial user activity has been
7491e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// observed, the pref is set after the first user activity in a session.
7501e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Otherwise, it is set immediately after session start. The pref is used to
7511e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// restore the session start time after browser crashes. The time is expressed
7521e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// as the serialization obtained from base::TimeTicks::ToInternalValue().
7532a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSessionStartTime[] = "session.start_time";
7542a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7552a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Holds the maximum session time in milliseconds. If this pref is set, the
7562a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// user is logged out when the maximum session time is reached. The user is
7572a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// informed about the remaining time by a countdown timer shown in the ash
7582a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// system tray.
7592a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSessionLengthLimit[] = "session.length_limit";
7602a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7611e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Whether the session length limit should start running only after the first
7621e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// user activity has been observed in a session.
7631e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kSessionWaitForInitialUserActivity[] =
7641e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    "session.wait_for_initial_user_activity";
7651e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
7662a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Inactivity time in milliseconds while the system is on AC power before
7672a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// the screen should be dimmed, turned off, or locked, before an
7682a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// IdleActionImminent D-Bus signal should be sent, or before
769eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// kPowerAcIdleAction should be performed.  0 disables the delay (N/A for
7702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// kPowerAcIdleDelayMs).
7712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
7722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
7732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
7742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms";
7752a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
7762a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7772a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Similar delays while the system is on battery power.
7782a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryScreenDimDelayMs[] =
7792a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_screen_dim_delay_ms";
7802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryScreenOffDelayMs[] =
7812a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_screen_off_delay_ms";
7822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryScreenLockDelayMs[] =
7832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_screen_lock_delay_ms";
7842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryIdleWarningDelayMs[] =
7852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_idle_warning_delay_ms";
7862a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryIdleDelayMs[] =
7872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_idle_delay_ms";
7882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
789eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Action that should be performed when the idle delay is reached while the
790eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// system is on AC power or battery power.
7912a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Values are from the chromeos::PowerPolicyController::Action enum.
792eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kPowerAcIdleAction[] = "power.ac_idle_action";
793eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kPowerBatteryIdleAction[] = "power.battery_idle_action";
7942a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7952a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Action that should be performed when the lid is closed.
7962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Values are from the chromeos::PowerPolicyController::Action enum.
7972a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerLidClosedAction[] = "power.lid_closed_action";
7982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7992a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Should audio and video activity be used to disable the above delays?
8002a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerUseAudioActivity[] = "power.use_audio_activity";
8012a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerUseVideoActivity[] = "power.use_video_activity";
8022a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
803c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Should extensions be able to use the chrome.power API to override
804c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// screen-related power management (including locking)?
805c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks";
806c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
8077d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Amount by which the screen-dim delay should be scaled while the system
8087d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// is in presentation mode. Values are limited to a minimum of 1.0.
8097d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kPowerPresentationScreenDimDelayFactor[] =
8107d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)    "power.presentation_screen_dim_delay_factor";
8117d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
812c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Amount by which the screen-dim delay should be scaled when user activity is
813c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// observed while the screen is dimmed or soon after the screen has been turned
814c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// off.  Values are limited to a minimum of 1.0.
815c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kPowerUserActivityScreenDimDelayFactor[] =
816c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "power.user_activity_screen_dim_delay_factor";
817c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
8181e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Whether the power management delays should start running only after the first
8191e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// user activity has been observed in a session.
8201e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kPowerWaitForInitialUserActivity[] =
8211e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    "power.wait_for_initial_user_activity";
8221e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
8232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The URL from which the Terms of Service can be downloaded. The value is only
8242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// honored for public accounts.
8252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kTermsOfServiceURL[] = "terms_of_service.url";
826c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
827c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Indicates that the Profile has made navigations that used a certificate
828c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// installed by the system administrator. If that is true then the local cache
829c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// of remote data is tainted (e.g. shared scripts), and future navigations
830c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// show a warning indicating that the organization may track the browsing
831c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// session.
832c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once";
833c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
834c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Indicates whether the remote attestation is enabled for the user.
835c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAttestationEnabled[] = "attestation.enabled";
836c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// The list of extensions allowed to use the platformKeysPrivate API for
837c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// remote attestation.
838c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist";
8397dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
8407dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// A boolean pref indicating whether the projection touch HUD is enabled or not.
8417dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled";
842ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
843ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// A pref to configure networks. Its value must be a list of
844ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// NetworkConfigurations according to the OpenNetworkConfiguration
845ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// specification.
84658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Currently, this pref is only used to store the policy. The user's
84758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// configuration is still stored in Shill.
848ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kOpenNetworkConfiguration[] = "onc";
84958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
85058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// A boolean pref that tracks whether the user has already given consent for
85158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// enabling remote attestation for content protection.
85258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kRAConsentFirstTime[] = "settings.privacy.ra_consent";
85368043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
85468043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// A boolean pref recording whether user has dismissed the multiprofile
8555d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// itroduction dialog show.
8565d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kMultiProfileNeverShowIntro[] =
8575d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "settings.multi_profile_never_show_intro";
8585d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
8595d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A boolean pref recording whether user has dismissed the multiprofile
8605d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// teleport warning dialog show.
8615d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kMultiProfileWarningShowDismissed[] =
8625d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "settings.multi_profile_warning_show_dismissed";
8635d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
86468043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// A string pref that holds string enum values of how the user should behave
86568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy
86668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// for more details of the valid values.
86768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior";
8685d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
8695d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A boolean preference indicating whether user has seen first-run tutorial
8705d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// already.
8715d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kFirstRunTutorialShown[] = "settings.first_run_tutorial_shown";
8725d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
8735d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Indicates the amount of time for which a user authenticated via SAML can use
8745d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// offline authentication against a cached password before being forced to go
8755d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// through online authentication against GAIA again. The time is expressed in
8765d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// seconds. A value of -1 indicates no limit, allowing the user to use offline
8775d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// authentication indefinitely. The limit is in effect only if GAIA redirected
8785d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// the user to a SAML IdP during the last online authentication.
8795d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kSAMLOfflineSigninTimeLimit[] = "saml.offline_signin_time_limit";
8805d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
8815d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A preference to keep track of the last time the user authenticated against
8825d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// GAIA using SAML. The preference is updated whenever the user authenticates
8835d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the
8845d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// current time. If GAIA performs the authentication itself, the preference is
8855d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// cleared. The time is expressed as the serialization obtained from
8865d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// base::Time::ToInternalValue().
8875d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kSAMLLastGAIASignInTime[] = "saml.last_gaia_sign_in_time";
8885d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
889a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// The total number of seconds that the machine has spent sitting on the
890a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// OOBE screen.
891a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kTimeOnOobe[] = "settings.time_on_oobe";
892cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
893cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// The app/extension name who sets the current wallpaper. If current wallpaper
894cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// is set by the component wallpaper picker, it is set to an empty string.
895cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kCurrentWallpaperAppName[] = "wallpaper.app.name";
89646d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
89746d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// List of mounted file systems via the File System Provider API. Used to
89846d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// restore them after a reboot.
89946d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kFileSystemProviderMounted[] = "file_system_provider.mounted";
9006d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
9016d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// A boolean pref set to true if the virtual keyboard should be enabled.
9026d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kTouchVirtualKeyboardEnabled[] = "ui.touch_virtual_keyboard_enabled";
9036d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
9045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif  // defined(OS_CHROMEOS)
9055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The disabled messages in IPC logging.
9075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
9085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if a Home button to open the Home pages should be
9105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// visible on the toolbar.
9115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowHomeButton[] = "browser.show_home_button";
9125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string value which saves short list of recently user selected encodings
9145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// separated with comma punctuation mark.
9155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
9165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Clear Browsing Data dialog preferences.
9185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
9195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
9205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteCache[] = "browser.clear_data.cache";
9215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteCookies[] = "browser.clear_data.cookies";
9225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeletePasswords[] = "browser.clear_data.passwords";
9235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteFormData[] = "browser.clear_data.form_data";
9245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
9255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeauthorizeContentLicenses[] =
9265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.clear_data.content_licenses";
9275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
9282a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kLastClearBrowsingDataTime[] =
9292a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "browser.last_clear_browsing_data_time";
9305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref to define the default values for using spellchecker.
9322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking";
9335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of names of the enabled labs experiments (see chrome/browser/labs.cc).
9355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
9365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref to define the default values for using auto spell correct.
9385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
9395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref to define the default setting for "block offensive words".
9415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The old key value is kept to avoid unnecessary migration code.
9425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpeechRecognitionFilterProfanities[] =
9435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.speechinput_censor_results";
9445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of speech recognition context names (extensions or websites) for which
9465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the tray notification balloon has already been shown.
9475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpeechRecognitionTrayNotificationShownContexts[] =
9485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.speechinput_tray_notification_shown_contexts";
9495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether history saving is disabled.
9515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
9525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9532a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Boolean controlling whether deleting browsing and download history is
9542a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// permitted.
9552a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled";
9562a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
9575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
9585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceSafeSearch[] = "settings.force_safesearch";
9595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
960eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
961eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Linux specific preference on whether we should match the system theme.
9625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUsesSystemTheme[] = "extensions.theme.use_system";
9635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemePackFilename[] = "extensions.theme.pack";
9655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeID[] = "extensions.theme.id";
9665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeImages[] = "extensions.theme.images";
9675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeColors[] = "extensions.theme.colors";
9685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeTints[] = "extensions.theme.tints";
9695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
9705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref which persists whether the extensions_ui is in developer mode
9725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (showing developer packing tools and extensions details)
9735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
9745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9755c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Boolean pref which indicates whether the Chrome Apps & Extensions Developer
9765c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Tool promotion has been dismissed by the user.
9775c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kExtensionsUIDismissedADTPromo[] =
9785c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu    "extensions.ui.dismissed_adt_promo";
9795c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
9805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary pref that tracks which command belongs to which
9815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// extension + named command pair.
9825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionCommands[] = "extensions.commands";
9835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pref containing the directory for internal plugins as written to the plugins
9855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// list (below).
9865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
9875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing information (dictionaries) on plugins.
9895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsPluginsList[] = "plugins.plugins_list";
9905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing names of plugins that are disabled by policy.
9925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
9935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing exceptions to the list of plugins disabled by policy.
9955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsDisabledPluginsExceptions[] =
9965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "plugins.plugins_disabled_exceptions";
9975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing names of plugins that are enabled by policy.
9995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
10005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// When bundled NPAPI Flash is removed, if at that point it is enabled while
10025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
10035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// want to do so only once.
10045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash";
10055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// In the early stage of component-updated PPAPI Flash, we did field trials in
10072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// which it was set to disabled by default. The corresponding settings item may
10082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// remain in some users' profiles. Currently it affects both the bundled and
10092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// component-updated PPAPI Flash (since the two share the same enable/disable
10102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// state). We want to remove this item to get those users to use PPAPI Flash.
10112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// We will want to do so only once.
10122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPluginsRemovedOldComponentPepperFlashSettings[] =
10132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "plugins.removed_old_component_pepper_flash_settings";
10142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
10155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
10165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether about:plugins is shown in the details mode or not.
10175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsShowDetails[] = "plugins.show_details";
10185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether outdated plugins are allowed or not.
10215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
10225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether plugins that require authorization should
10245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be always allowed or not.
10255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
10265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(ENABLE_PLUGIN_INSTALLATION)
10285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary holding plug-ins metadata.
10295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsMetadata[] = "plugins.metadata";
10305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Last update time of plug-ins resource cache.
10325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
10335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether we should check if we are the default browser
10365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// on start-up.
10375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCheckDefaultBrowser[] = "browser.check_default_browser";
10385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Policy setting whether default browser check should be disabled and default
10405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser registration should take place.
10415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultBrowserSettingEnabled[] =
10425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.default_browser_setting_enabled";
10435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_MACOSX)
10455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether the application should show the info bar
10465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// asking the user to set up automatic updates when Keystone promotion is
10475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// required.
10485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowUpdatePromotionInfoBar[] =
10495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.show_update_promotion_info_bar";
10505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is false if we should show window manager decorations.  If
10535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// true, we draw a custom chrome frame (thicker title bar and blue border).
10545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
10555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary of content settings applied to all hosts by default.
10575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultContentSettings[] = "profile.default_content_settings";
10585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean indicating whether the clear on exit pref was migrated to content
10605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// settings yet.
10615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsClearOnExitMigrated[] =
10625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.clear_on_exit_migrated";
10635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Version of the pattern format used to define content settings.
10655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsVersion[] = "profile.content_settings.pref_version";
10665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10672a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Patterns for mapping origins to origin related settings. Default settings
10682a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// will be applied to origins that don't match any of the patterns. The pattern
10692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// format used is defined by kContentSettingsVersion.
10705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsPatternPairs[] =
10715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.pattern_pairs";
10725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Version of the content settings whitelist.
10745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsDefaultWhitelistVersion[] =
10755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.whitelist_version";
10765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
10785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Which plugins have been whitelisted manually by the user.
10795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsPluginWhitelist[] =
10805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.plugin_whitelist";
10815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true if we should unconditionally block third-party cookies,
10845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// regardless of other content settings.
10855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
10865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when all locally stored site data (e.g. cookies, local
10885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// storage, etc..) should be deleted on exit.
10895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit";
10905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Double that indicates the default zoom level.
10925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultZoomLevel[] = "profile.default_zoom_level";
10935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary that maps hostnames to zoom levels.  Hosts not in this pref will
10955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be displayed at the default zoom level.
10965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels";
10975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10987dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// A dictionary that tracks the default data model to use for each section of
10997dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// the dialog.
11007dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kAutofillDialogAutofillDefault[] = "autofill.data_model_default";
110190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
11022a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Whether a user opted out of making purchases with Google Wallet; changed via
11032a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// the autofill dialog's account chooser and set explicitly on dialog submission
11042a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// (but not cancel). If this isn't set, the dialog assumes it's the first run.
11052a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet";
11065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11070f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Which GAIA users have accepted that use of Google Wallet implies their
11080f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// location will be shared with fraud protection services.
11090f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kAutofillDialogWalletLocationAcceptance[] =
11100f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)    "autofill.wallet_location_disclosure";
11110f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
111258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Whether a user wants to save data locally in Autofill.
111358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kAutofillDialogSaveData[] = "autofill.save_data";
111458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
11155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Whether the user has selected "Same as billing" for the shipping address when
11165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// using Google Wallet.
11175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kAutofillDialogWalletShippingSameAsBilling[] =
11185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "autofill.wallet_shipping_same_as_billing";
11195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
11207dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// The number of times the generated credit card bubble has been shown.
11217dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kAutofillGeneratedCardBubbleTimesShown[] =
11227dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch    "autofill.generated_card_bubble_times_shown";
11237d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
1124ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// A dictionary that tracks the defaults to be set on the next invocation
11255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// of the requestAutocomplete dialog.
1126ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults";
1127ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
11285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
11295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPinnedTabs[] = "pinned_tabs";
11305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
11315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
11337d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Boolean that controls the enabled-state of Geolocation in content.
11345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeolocationEnabled[] = "geolocation.enabled";
11355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
11365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11377d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)#if defined(ENABLE_GOOGLE_NOW)
11387d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Boolean that is true when Google services can use the user's location.
11397d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kGoogleGeolocationAccessEnabled[] =
11407d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)    "googlegeolocationaccess.enabled";
11417d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)#endif
11427d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
11432a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The default audio capture device used by the Media content setting.
11442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device";
11452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
11462a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The default video capture device used by the Media content setting.
11472a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device";
11485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1149a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// The salt used for creating random MediaSource IDs.
1150a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kMediaDeviceIdSalt[] = "media.device_id_salt";
1151a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
11525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preference to disable 3D APIs (WebGL, Pepper 3D).
11535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisable3DAPIs[] = "disable_3d_apis";
11545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11556d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kEnableDeprecatedWebPlatformFeatures[] =
11566d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)    "enable_deprecated_web_platform_features";
11576d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
11585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to enable hyperlink auditing ("<a ping>").
11595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableHyperlinkAuditing[] = "enable_a_ping";
11605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to enable sending referrers.
11625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableReferrers[] = "enable_referrers";
11635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to send the DNT header.
11655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableDoNotTrack[] = "enable_do_not_track";
11665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11672a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// GL_VENDOR string.
11682a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kGLVendorString[] = "gl_vendor_string";
11692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
11702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// GL_RENDERER string.
11712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kGLRendererString[] = "gl_renderer_string";
11722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
11732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// GL_VERSION string.
11742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kGLVersionString[] = "gl_version_string";
11752a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
11765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import bookmarks from the default browser
11775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// on first run.
11785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportBookmarks[] = "import_bookmarks";
11795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the browsing history from the
11815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// default browser on first run.
11825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportHistory[] = "import_history";
11835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the homepage from the default
11855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser on first run.
11865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportHomepage[] = "import_home_page";
11875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the search engine from the default
11895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser on first run.
11905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportSearchEngine[] = "import_search_engine";
11915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the saved passwords from the default
11935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser on first run.
11945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportSavedPasswords[] = "import_saved_passwords";
11955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Profile avatar and name
11975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileAvatarIndex[] = "profile.avatar_index";
11985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileName[] = "profile.name";
11995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1200f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// Whether the profile is supervised. Deprecated, use kSupervisedUserId below.
1201f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kProfileIsSupervised[] = "profile.is_managed";
12022a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1203f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// The supervised user ID.
1204f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSupervisedUserId[] = "profile.managed_user_id";
12052385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
120623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// 64-bit integer serialization of the base::Time when the user's GAIA info
120723730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// was last updated.
120823730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
120923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
121023730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// The URL from which the GAIA profile picture was downloaded. This is cached to
121123730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// prevent the same picture from being downloaded multiple times.
121223730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url";
121323730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
121423730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// Integer that specifies the number of times that we have shown the tutorial
121523730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// card in the profile avatar bubble.
121623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kProfileAvatarTutorialShown[] =
121723730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)    "profile.avatar_bubble_tutorial_shown";
121823730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
121923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// Boolean that specifies whether we have shown the user manager tutorial.
122023730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kProfileUserManagerTutorialShown[] =
122123730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)    "profile.user_manager_tutorial_shown";
122223730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
12235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Indicates if we've already shown a notification that high contrast
12245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// mode is on, recommending high-contrast extensions and themes.
12255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInvertNotificationShown[] = "invert_notification_version_2_shown";
12265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether printing is enabled.
12285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrintingEnabled[] = "printing.enabled";
12295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether print preview is disabled.
12315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
12325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// An integer pref specifying the fallback behavior for sites outside of content
12342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// packs. One of:
12352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 0: Allow (does nothing)
12362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 1: Warn.
12372a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 2: Block.
1238f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kDefaultSupervisedUserFilteringBehavior[] =
12392a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "profile.managed.default_filtering_behavior";
12402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1241f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// Whether this user is permitted to create supervised users.
1242f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSupervisedUserCreationAllowed[] =
1243eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "profile.managed_user_creation_allowed";
1244eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
1245f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// List pref containing the users supervised by this user.
1246f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSupervisedUsers[] = "profile.managed_users";
124790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
12482a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// List pref containing the extension ids which are not allowed to send
12492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// notifications to the message center.
12502a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kMessageCenterDisabledExtensionIds[] =
12512a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "message_center.disabled_extension_ids";
12522a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1253c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// List pref containing the system component ids which are not allowed to send
1254c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// notifications to the message center.
1255c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kMessageCenterDisabledSystemComponentIds[] =
1256c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "message_center.disabled_system_component_ids";
1257c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
1258eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// List pref containing the system component ids which are allowed to send
1259eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// notifications to the message center.
1260eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochextern const char kMessageCenterEnabledSyncNotifierIds[] =
1261eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "message_center.enabled_sync_notifier_ids";
1262eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
1263d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// List pref containing synced notification sending services that are currently
1264d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// enabled.
1265d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)extern const char kEnabledSyncedNotificationSendingServices[] =
12665d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "synced_notification.enabled_remote_services";
1267d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
1268d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// List pref containing which synced notification sending services have already
1269d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// been turned on once for the user (so we don't turn them on again).
1270d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)extern const char kInitializedSyncedNotificationSendingServices[] =
12715d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "synced_notification.initialized_remote_services";
1272d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
12734e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Boolean pref containing whether this is the first run of the Synced
12744e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Notification feature.
12754e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)extern const char kSyncedNotificationFirstRun[] =
12764e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "synced_notification.first_run";
12774e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
12780529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Boolean pref indicating the Chrome Now welcome notification was dismissed
12790529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// by the user. Syncable.
12800529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Note: This is now read-only. The welcome notification writes the _local
12810529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// version, below.
12821e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)extern const char kWelcomeNotificationDismissed[] =
12831e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    "message_center.welcome_notification_dismissed";
12841e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
12850529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Boolean pref indicating the Chrome Now welcome notification was dismissed
12860529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// by the user on this machine.
12870529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochextern const char kWelcomeNotificationDismissedLocal[] =
12880529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "message_center.welcome_notification_dismissed_local";
12890529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
12901e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Boolean pref indicating the welcome notification was previously popped up.
12911e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)extern const char kWelcomeNotificationPreviouslyPoppedUp[] =
12921e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    "message_center.welcome_notification_previously_popped_up";
12931e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
12945d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Integer pref containing the expiration timestamp of the welcome notification.
12955d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)extern const char kWelcomeNotificationExpirationTimestamp[] =
12965d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "message_center.welcome_notification_expiration_timestamp";
12973551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
1298424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// Boolean pref that determines whether the user can enter fullscreen mode.
1299424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// Disabling fullscreen mode also makes kiosk mode unavailable on desktop
1300424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// platforms.
1301424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)extern const char kFullscreenAllowed[] = "fullscreen.allowed";
1302424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)
130368043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Enable notifications for new devices on the local network that can be
130468043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// registered to the user's account, e.g. Google Cloud Print printers.
130568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kLocalDiscoveryNotificationsEnabled[] =
130668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)    "local_discovery.notifications_enabled";
130768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
1308a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// A timestamp (stored in base::Time::ToInternalValue format) of the last time
1309a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// a preference was reset.
1310a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kPreferenceResetTime[] = "prefs.preference_reset_time";
1311a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
13124e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// String that indicates if the Profile Reset prompt has already been shown to
13134e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// the user. Used both in user preferences and local state, in the latter, it is
13144e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// actually a dictionary that maps profile keys to before-mentioned strings.
13154e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kProfileResetPromptMemento[] = "profile.reset_prompt_memento";
13164e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
13175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// The GCM channel's enabled state.
13185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kGCMChannelEnabled[] = "gcm.channel_enabled";
13195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
1320f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// How many Service Workers are registered with the Push API (could be zero).
1321f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kPushMessagingRegistrationCount[] =
1322f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    "gcm.push_messaging_registration_count";
1323f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
132423730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// Whether Easy Unlock is enabled.
132523730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)extern const char kEasyUnlockEnabled[] = "easy_unlock.enabled";
132623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
132723730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// Whether to show the Easy Unlock first run tutorial.
132823730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)extern const char kEasyUnlockShowTutorial[] = "easy_unlock.show_tutorial";
132923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
133023730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// Preference storing Easy Unlock pairing data.
133123730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)extern const char kEasyUnlockPairing[] = "easy_unlock.pairing";
133223730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
1333010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// A cache of zero suggest results using JSON serialized into a string.
1334010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kZeroSuggestCachedResults[] = "zerosuggest.cachedresults";
1335010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
1336f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// A cache of suggestions represented as a serialized SuggestionsProfile
1337f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// protobuf.
1338f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kSuggestionsData[] = "suggestions.data";
1339f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
13405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// *************** LOCAL STATE ***************
13415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These are attached to the machine/installation
13425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1343ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// A pref to configure networks device-wide. Its value must be a list of
1344ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// NetworkConfigurations according to the OpenNetworkConfiguration
1345ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// specification.
134658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Currently, this pref is only used to store the policy. The user's
134758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// configuration is still stored in Shill.
1348ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kDeviceOpenNetworkConfiguration[] = "device_onc";
1349ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
13505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Directory of the last profile used.
13515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileLastUsed[] = "profile.last_used";
13525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of directories of the profiles last active.
13545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilesLastActive[] = "profile.last_active_profiles";
13555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Total number of profiles created for this Chrome build. Used to tag profile
13575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// directories.
13585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilesNumCreated[] = "profile.profiles_created";
13595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the version of Chrome that the profile was created by.
13615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If profile was created before this feature was added, this pref will default
13625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to "1.0.0.0".
13635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileCreatedByVersion[] = "profile.created_by_version";
13645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A map of profile data directory to cached information. This cache can be
13665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// used to display information about profiles without actually having to load
13675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// them.
13685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileInfoCache[] = "profile.info_cache";
13695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for SSLConfigServicePref.
13715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
13723240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdochconst char kCertRevocationCheckingRequiredLocalAnchors[] =
13733240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch    "ssl.rev_checking.required_for_local_anchors";
13745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSSLVersionMin[] = "ssl.version_min";
13755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSSLVersionMax[] = "ssl.version_max";
13765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
13775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
1378c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
1379c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A boolean pref of the EULA accepted flag.
1380c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEulaAccepted[] = "EulaAccepted";
13815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether or not crash reporting and metrics reporting
13835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// are sent over the network for analysis.
13845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsReportingEnabled[] =
13855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.reporting_enabled";
1386effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
1387b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// Boolean that specifies whether or not crash reports are sent
1388b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// over the network for analysis.
1389b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)#if defined(OS_ANDROID)
1390b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)const char kCrashReportingEnabled[] =
1391b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)    "user_experience_metrics_crash.reporting_enabled";
1392b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)#endif
1393b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)
13942a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 64-bit integer serialization of the base::Time from the last successful seed
13952a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// fetch (i.e. when the Variations server responds with 200 or 304).
13962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kVariationsLastFetchTime[] = "variations_last_fetch_time";
13972a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
13982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// String for the restrict parameter to be appended to the variations URL.
13992a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kVariationsRestrictParameter[] = "variations_restrict_parameter";
14002a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
14015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String serialized form of variations seed protobuf.
14025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kVariationsSeed[] = "variations_seed";
14035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 64-bit integer serialization of the base::Time from the last seed received.
14055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kVariationsSeedDate[] = "variations_seed_date";
14065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1407a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// SHA-1 hash of the serialized variations seed data (hex encoded).
14087dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kVariationsSeedHash[] = "variations_seed_hash";
14095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Digital signature of the binary variations seed data, base64-encoded.
14115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kVariationsSeedSignature[] = "variations_seed_signature";
14125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
14135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times a page load event occurred since the last report.
14145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPageLoadCount[] =
14155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.page_load_count";
14165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times a renderer process crashed since the last report.
14185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityRendererCrashCount[] =
14195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.renderer_crash_count";
14205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times an extension renderer process crashed since the last report.
14225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityExtensionRendererCrashCount[] =
14235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.extension_renderer_crash_count";
14245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This is the location of a list of dictionaries of plugin stability stats.
14265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginStats[] =
14275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.plugin_stats2";
14285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the renderer has become non-responsive since the last
14305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// report.
14315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityRendererHangCount[] =
14325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.renderer_hang_count";
14335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Total number of child process crashes (other than renderer / extension
14355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer ones, and plugin children, which are counted separately) since the
14365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last report.
14375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityChildProcessCrashCount[] =
14385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.child_process_crash_count";
14395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Chrome OS, total number of non-Chrome user process crashes
14415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// since the last report.
14425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityOtherUserCrashCount[] =
14435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.other_user_crash_count";
14445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Chrome OS, total number of kernel crashes since the last report.
14465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityKernelCrashCount[] =
14475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.kernel_crash_count";
14485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Chrome OS, total number of unclean system shutdowns since the
14505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last report.
14515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilitySystemUncleanShutdownCount[] =
14525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.system_unclean_shutdowns";
14535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14545d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#if defined(OS_ANDROID)
14555d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Activity type that is currently in the foreground for the UMA session.
14565d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Uses the ActivityTypeIds::Type enum.
14575d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kStabilityForegroundActivityType[] =
14585d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "user_experience_metrics.stability.current_foreground_activity_type";
14595d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
14605d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Tracks which Activities were launched during the last session.
14615d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// See |metrics_service_android.cc| for its usage.
14625d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kStabilityLaunchedActivityFlags[] =
14635d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "user_experience_metrics.stability.launched_activity_flags";
14645d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
14655d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// List pref: Counts how many times each Activity was launched.
14665d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Indexed into by ActivityTypeIds::Type.
14675d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kStabilityLaunchedActivityCounts[] =
14685d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "user_experience_metrics.stability.launched_activity_counts";
14695d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
14705d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// List pref: Counts how many times each Activity type was in the foreground
14715d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// when a UMA session failed to be shut down properly.
14725d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Indexed into by ActivityTypeIds::Type.
14735d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kStabilityCrashedActivityCounts[] =
14745d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "user_experience_metrics.stability.crashed_activity_counts";
14755d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#endif
14765d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
14775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The keys below are used for the dictionaries in the
14785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kStabilityPluginStats list.
14795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginName[] = "name";
14805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginLaunches[] = "launches";
14815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginInstances[] = "instances";
14825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginCrashes[] = "crashes";
14835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginLoadingErrors[] = "loading_errors";
14845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The keys below are strictly increasing counters over the lifetime of
14865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a chrome installation. They are (optionally) sent up to the uninstall
14877dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// survey in the event of uninstallation. The installation date is used by some
14887dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// opt-in services such as Wallet and UMA.
14892a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kInstallDate[] = "uninstall_metrics.installation_date2";
14905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallMetricsPageLoadCount[] =
14915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.page_load_count";
14925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallLastLaunchTimeSec[] =
14935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.last_launch_time_sec";
14945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallLastObservedRunTimeSec[] =
14955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.last_observed_running_time_sec";
14965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1497c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// String containing the version of Chrome for which Chrome will not prompt the
1498c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// user about setting Chrome as the default browser.
1499c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kBrowserSuppressDefaultBrowserPrompt[] =
1500c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "browser.suppress_default_browser_prompt_for_version";
1501c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
15025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the browser
15035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// window to restore on startup.
15045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBrowserWindowPlacement[] = "browser.window_placement";
15055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1506a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Browser window placement for popup windows.
1507a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup";
1508a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
15095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the task
15105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// manager window to restore on startup.
15115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
15125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the keyword
15145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// editor window to restore on startup.
15155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kKeywordEditorWindowPlacement[] = "keyword_editor.window_placement";
15165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the preferences
15185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// window to restore on startup.
15195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPreferencesWindowPlacement[] = "preferences.window_placement";
15205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer specifying the total number of bytes to be used by the
15225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer's in-memory cache of objects.
15235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMemoryCacheSize[] = "renderer.memory_cache.size";
15245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies where to download files to by default.
15265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDownloadDefaultDirectory[] = "download.default_directory";
15275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that records if the download directory was changed by an
15295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// upgrade a unsafe location to a safe location.
15305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDownloadDirUpgraded[] = "download.directory_upgrade";
15315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies where to save html files to by default.
15335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
15345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The type used to save the page. See the enum SavePackage::SavePackageType in
15365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the chrome/browser/download/save_package.h for the possible values.
15375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSaveFileType[] = "savefile.type";
15385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies the last directory that was chosen for uploading
15405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// or opening a file.
15415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSelectFileLastDirectory[] = "selectfile.last_directory";
15425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies if file selection dialogs are shown.
15445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
15455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Map of default tasks, associated by MIME type.
15475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultTasksByMimeType[] =
15485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "filebrowser.tasks.default_by_mime_type";
15495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Map of default tasks, associated by file suffix.
15515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultTasksBySuffix[] =
15525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "filebrowser.tasks.default_by_suffix";
15535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Extensions which should be opened upon completion.
15555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
15565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer which specifies the frequency in milliseconds for detecting whether
15585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// plugin windows are hung.
15595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
15605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer which specifies the timeout value to be used for SendMessageTimeout
15625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to detect a hung plugin window.
15635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginMessageResponseTimeout[] =
15645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.plugin_message_response_timeout";
15655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which represents the dictionary name for our spell-checker.
15675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpellCheckDictionary[] = "spellcheck.dictionary";
15685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which represents whether we use the spelling service.
15705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
15715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary of schemes used by the external protocol handler.
15735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value is true if the scheme must be ignored.
15745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
15755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Keys used for MAC handling of SafeBrowsing requests.
15775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
15785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
15795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer that specifies the index of the tab the user was on when they
15815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last visited the options window.
15825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
15835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer that specifies the index of the tab the user was on when they
15855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last visited the content settings window.
15865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsWindowLastTabIndex[] =
15875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "content_settings_window.last_tab_index";
15885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer that specifies the index of the tab the user was on when they
15905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last visited the Certificate Manager window.
15915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCertificateManagerWindowLastTabIndex[] =
15925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "certificate_manager_window.last_tab_index";
15935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15942a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Integer that specifies if the first run bubble should be shown.
15955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This preference is only registered by the first-run procedure.
15962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
15975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the last known intranet redirect URL, if any.  See
15995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// intranet_redirect_detector.h for more information.
16005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
16015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer containing the system Country ID the first time we checked the
16035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// template URL prepopulate data.  This is used to avoid adding a whole bunch of
16045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// new search engine choices if prepopulation runs when the user's Country ID
16055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// differs from their previous Country ID.  This pref does not exist until
16065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// prepopulation has been run at least once.
16075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCountryIDAtInstall[] = "countryid_at_install";
16085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE. Same as above, but uses the Windows-specific GeoID value instead.
16095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Updated if found to the above key.
16105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeoIDAtInstall[] = "geoid_at_install";
16115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An enum value of how the browser was shut down (see browser_shutdown.h).
16135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShutdownType[] = "shutdown.type";
16145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of processes that were open when the user shut down.
16155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShutdownNumProcesses[] = "shutdown.num_processes";
16165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of processes that were shut down using the slow path.
16175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
16185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to restart the current Chrome session automatically as the last thing
16205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// before shutting everything down.
16215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
16225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set before autorestarting Chrome, cleared on clean exit.
16245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWasRestarted[] = "was.restarted";
16255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_WIN)
16270f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Preference to be used while relaunching Chrome. This preference dictates if
16280f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Chrome should be launched in Metro or Desktop mode.
16290f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// For more info take a look at ChromeRelaunchMode enum.
16300f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kRelaunchMode[] = "relaunch.mode";
16312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
16325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Placeholder preference for disabling voice / video chat if it is ever added.
16345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Currently, this does not change any behavior.
16355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableVideoAndChat[] = "disable_video_chat";
16365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether Extensions are enabled.
16385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableExtensions[] = "extensions.disabled";
16395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether the plugin finder that lets you install missing plug-ins is enabled.
16415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
16425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1643f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Customized app page names that appear on the New Tab Page.
1644f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpAppPageNames[] = "ntp.app_page_names";
1645f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
16465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Keeps track of which sessions are collapsed in the Other Devices menu.
16475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
16485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1649f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Keeps track of recently closed tabs collapsed state in the Other Devices
1650f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// menu.
1651f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpCollapsedRecentlyClosedTabs[] =
1652f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "ntp.collapsed_recently_closed_tabs";
16535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1654f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Keeps track of snapshot documents collapsed state in the Other Devices menu.
1655f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document";
16565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1657f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Keeps track of sync promo collapsed state in the Other Devices menu.
1658f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo";
16595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Serves dates to determine display of elements on the NTP.
16615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpDateResourceServer[] = "ntp.date_resource_server";
16625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1663f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// New Tab Page URLs that should not be shown as most visited thumbnails.
1664f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
1665f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
1666f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// True if a desktop sync session was found for this user.
1667f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found";
1668f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
1669f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Last time of update of promo_resource_cache.
1670f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update";
1671f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
16725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Which bookmarks folder should be visible on the new tab page v4.
16735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
16745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Which page should be visible on the new tab page v4
16765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpShownPage[] = "ntp.shown_page";
16775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1678f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Serves tips for the NTP.
1679f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kNtpTipsResourceServer[] = "ntp.tips_resource_server";
16805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean indicating whether the web store is active for the current locale.
16825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled";
16835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16847dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// A private RSA key for ADB handshake.
16857dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kDevToolsAdbKey[] = "devtools.adb_key";
16867dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
16875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsDisabled[] = "devtools.disabled";
16885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16894e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Determines whether devtools should be discovering usb devices for
16904e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// remote debugging at chrome://inspect.
16914e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDevToolsDiscoverUsbDevicesEnabled[] =
16924e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "devtools.discover_usb_devices";
16934e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
16945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Maps of files edited locally using DevTools.
16955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsEditedFiles[] = "devtools.edited_files";
16965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16972a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// List of file system paths added in DevTools.
16982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths";
16992a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
17005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether dev tools window should be opened docked.
17015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsOpenDocked[] = "devtools.open_docked";
17025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17032385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch// A boolean specifying whether port forwarding should be enabled.
17042385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdochconst char kDevToolsPortForwardingEnabled[] =
17052385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch    "devtools.port_forwarding_enabled";
17062385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
170758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// A boolean specifying whether default port forwarding configuration has been
170858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// set.
170958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDevToolsPortForwardingDefaultSet[] =
171058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)    "devtools.port_forwarding_default_set";
171158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
17122385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch// A dictionary of port->location pairs for port forwarding.
17132385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdochconst char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config";
17142385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
17155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
17165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether remote dev tools debugging is enabled.
17175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
17185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
17195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1720effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// Boolean indicating that TiclInvalidationService should use GCM channel.
1721effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// False or lack of settings means XMPPPushClient channel.
1722effb81e5f8246d0db0270817048dc992db66e9fbBen Murdochconst char kInvalidationServiceUseGCMChannel[] =
1723effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch    "invalidation_service.use_gcm_channel";
17245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17251e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Local hash of authentication password, used for off-line authentication
17261e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// when on-line authentication is not available.
17271e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kGoogleServicesPasswordHash[] = "google.services.password_hash";
17281e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
17295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
1730bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// Tracks the number of times that we have shown the sign in promo at startup.
1731bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSignInPromoStartupCount[] = "sync_promo.startup_count";
17325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1733bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// Boolean tracking whether the user chose to skip the sign in promo.
1734bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSignInPromoUserSkipped[] = "sync_promo.user_skipped";
17355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1736bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// Boolean that specifies if the sign in promo is allowed to show on first run.
17375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This preference is specified in the master preference file to suppress the
1738bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// sign in promo for some installations.
1739bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSignInPromoShowOnFirstRunAllowed[] =
17405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "sync_promo.show_on_first_run_allowed";
17415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies if we should show a bubble in the new tab page.
17435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The bubble is used to confirm that the user is signed into sync.
1744bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
17455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
17465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Create web application shortcut dialog preferences.
17485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
17495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
17505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebAppCreateInQuickLaunchBar[] =
17515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.web_app.create_in_quick_launch_bar";
17525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary that maps Geolocation network provider server URLs to
17545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// corresponding access token.
17555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeolocationAccessToken[] = "geolocation.access_token";
17565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether to allow firewall traversal while trying to
17585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// establish the initial connection from the client or host.
17595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostFirewallTraversal[] =
17605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_firewall_traversal";
17615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether 2-factor auth should be required when connecting
17635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to a host (instead of a PIN).
17645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostRequireTwoFactor[] =
17655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_require_two_factor";
17665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the domain name that hosts must belong to. If blank, then
17685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// hosts can belong to any domain.
17695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostDomain[] = "remote_access.host_domain";
17705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the domain name of the Chromoting Directory.
17725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used by Chromoting host and client.
17735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostTalkGadgetPrefix[] =
17745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_talkgadget_prefix";
17755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether curtaining is required when connecting to a host.
17775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostRequireCurtain[] =
17785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_require_curtain";
17795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1780a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Boolean controlling whether curtaining is required when connecting to a host.
1781a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kRemoteAccessHostAllowClientPairing[] =
1782a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "remote_access.host_allow_client_pairing";
1783a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
1784a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Whether Chrome Remote Desktop can proxy gnubby authentication traffic.
1785a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kRemoteAccessHostAllowGnubbyAuth[] =
1786a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "remote_access.host_allow_gnubby_auth";
1787a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
17885c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Boolean that indicates whether the Chromoting host should allow connections
17895c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// using relay servers.
17905c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kRemoteAccessHostAllowRelayedConnection[] =
17915c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu    "remote_access.host_allow_relayed_connection";
17925c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
17935c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// String containing the UDP port range that the Chromoting host should used
17945c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// when connecting to clients. The port range should be in the form:
17955c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// <min_port>-<max_port>. E.g. 12400-12409.
17965c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kRemoteAccessHostUdpPortRange[] =
17975c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu    "remote_access.host_udp_port_range";
17985c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
17995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The last used printer and its settings.
18005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrintPreviewStickySettings[] =
18015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "printing.print_preview_sticky_settings";
18025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The last requested size of the dialog as it was closed.
18045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
18055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
18065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSigninDialogWidth[] =
18075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "cloud_print.signin_dialog_size.width";
18085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSigninDialogHeight[] =
18095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "cloud_print.signin_dialog_size.height";
18105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The list of BackgroundContents that should be loaded when the browser
18125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// launches.
18135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRegisteredBackgroundContents[] = "background_contents.registered";
18145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
18165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An int that stores how often we've shown the "Chrome is configured to
18175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// auto-launch" infobar.
18185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
18195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
18205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that lists supported HTTP authentication schemes.
18225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthSchemes[] = "auth.schemes";
18235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to disable CNAME lookups when generating
18255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Kerberos SPN.
18265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableAuthNegotiateCnameLookup[] =
18275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "auth.disable_negotiate_cname_lookup";
18285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to include the port in a generated Kerberos
18305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// SPN.
18315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
18325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whitelist containing servers for which Integrated Authentication is enabled.
18345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthServerWhitelist[] = "auth.server_whitelist";
18355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whitelist containing servers Chrome is allowed to do Kerberos delegation
18375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// with.
18385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthNegotiateDelegateWhitelist[] =
18395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "auth.negotiate_delegate_whitelist";
18405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that specifies the name of a custom GSSAPI library to load.
18425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
18435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to allow basic auth prompting on cross-
18455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// domain sub-content requests.
18465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
18475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18482a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Boolean that specifies whether the built-in asynchronous DNS client is used.
18492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kBuiltInDnsClientEnabled[] = "async_dns.enabled";
18502a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
185190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// A pref holding the value of the policy used to explicitly allow or deny
185290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// access to audio capture devices.  When enabled or not set, the user is
185390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// prompted for device access.  When disabled, access to audio capture devices
185490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// is not allowed and no prompt will be shown.
185590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// See also kAudioCaptureAllowedUrls.
18562a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
185790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Holds URL patterns that specify URLs that will be granted access to audio
185890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// capture devices without prompt.  NOTE: This whitelist is currently only
185990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// supported when running in kiosk mode.
186090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// TODO(tommi): Update comment when this is supported for all modes.
186190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
186290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
186390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// A pref holding the value of the policy used to explicitly allow or deny
186490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// access to video capture devices.  When enabled or not set, the user is
186590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// prompted for device access.  When disabled, access to video capture devices
186690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// is not allowed and no prompt will be shown.
18672a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
186890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Holds URL patterns that specify URLs that will be granted access to video
186990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// capture devices without prompt.  NOTE: This whitelist is currently only
187090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// supported when running in kiosk mode.
187190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// TODO(tommi): Update comment when this is supported for all modes.
187290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
18732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
18748bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// A boolean pref that controls the enabled-state of hotword search voice
18758bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// trigger.
1876c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdochconst char kHotwordSearchEnabled[] = "hotword.search_enabled_2";
18778bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
1878effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// A boolean pref that controls whether the sound of "Ok, Google" plus a few
1879effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// seconds of audio data before is sent back to improve voice search.
1880effb81e5f8246d0db0270817048dc992db66e9fbBen Murdochconst char kHotwordAudioLoggingEnabled[] = "hotword.audio_logging_enabled";
1881effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
18826d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// A string holding the locale information under which Hotword was installed.
18836d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// It is used for comparison since the hotword voice search trigger must be
18846d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// reinstalled to handle a new language.
18856d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kHotwordPreviousLanguage[] = "hotword.previous_language";
18866d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
188768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)#if defined(OS_ANDROID)
188868043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Boolean that controls the global enabled-state of protected media identifier.
188968043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kProtectedMediaIdentifierEnabled[] =
189068043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)    "protected_media_identifier.enabled";
189168043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)#endif
189268043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
18935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
18945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary for transient storage of settings that should go into device
18955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// settings storage before owner has been assigned.
18965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceSettingsCache[] = "signed_settings_cache";
18975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The hardware keyboard layout of the device. This should look like
18995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "xkb:us::eng".
19005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
19015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref which shows number of times carrier deal promo
19035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// notification has been shown to user.
19045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCarrierDealPromoShown[] =
19055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.internet.mobile.carrier_deal_promo_shown";
19065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref of the auto-enrollment decision. Its value is only valid if
19085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it's not the default value; otherwise, no auto-enrollment decision has been
19095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// made yet.
19105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
19115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref with the maximum number of bits used by the client in a
19135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// previous auto-enrollment request. If the client goes through an auto update
19145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// during OOBE and reboots into a version of the OS with a larger maximum
19155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// modulus, then it will retry auto-enrollment using the updated value.
19165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
19175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The local state pref that stores device activity times before reporting
19195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// them to the policy server.
19205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceActivityTimes[] = "device_status.activity_times";
19215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the last known location when device location reporting is
19235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enabled.
19245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceLocation[] = "device_status.location";
19255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the value of the policy used to disable mounting of external
19275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// storage for the user.
19285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
19295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the value of the policy used to disable playing audio on
19315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite
19325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it, therefore when the policy is lifted the original mute state is restored.
19335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioOutputAllowed[] = "hardware.audio_output_enabled";
19345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A dictionary that maps usernames to wallpaper properties.
19365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUsersWallpaperInfo[] = "user_wallpaper_info";
19375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copy of owner swap mouse buttons option to use on login screen.
19395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
19405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copy of owner tap-to-click option to use on login screen.
19425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
19432a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
19442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The length of device uptime after which an automatic reboot is scheduled,
19452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// expressed in seconds.
19462a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kUptimeLimit[] = "automatic_reboot.uptime_limit";
19472a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
19482a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Whether an automatic reboot should be scheduled when an update has been
19492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// applied and a reboot is required to complete the update process.
19502a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update";
1951c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
1952c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// An any-api scoped refresh token for enterprise-enrolled devices.  Allows
1953c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// for connection to Google APIs when the user isn't logged in.  Currently used
1954c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// for for getting a cloudprint scoped token to allow printing in Guest mode,
1955c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Public Accounts and kiosks.
1956c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDeviceRobotAnyApiRefreshToken[] =
1957c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "device_robot_refresh_token.any-api";
1958868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
1959868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Device requisition for enterprise enrollment.
1960868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition";
1961868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
1962868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Whether to automatically start the enterprise enrollment step during OOBE.
1963868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start";
1964868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
1965868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Whether the user may exit enrollment.
1966868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit";
1967a3f7b4e666c476898878fa745f637129375cd889Ben Murdoch
1968cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// How many times HID detection OOBE dialog was shown.
1969cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kTimesHIDDialogShown[] = "HIDDialog.shown_how_many_times";
1970cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
1971a3f7b4e666c476898878fa745f637129375cd889Ben Murdoch// Dictionary of per-user Least Recently Used input method (used at login
1972a3f7b4e666c476898878fa745f637129375cd889Ben Murdoch// screen).
1973a3f7b4e666c476898878fa745f637129375cd889Ben Murdochextern const char kUsersLRUInputMethod[] = "UsersLRUInputMethod";
1974424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)
1975424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// A dictionary pref of the echo offer check flag. It sets offer info when
1976424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// an offer is checked.
1977424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)extern const char kEchoCheckedOffers[] = "EchoCheckedOffers";
197868043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
197968043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Key name of a dictionary in local state to store cached multiprofle user
198068043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// behavior policy value.
198168043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior";
19820f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
19830f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// A string pref with initial locale set in VPD or manifest.
19840f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kInitialLocale[] = "intl.initial_locale";
19850f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
19860f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// A boolean pref of the OOBE complete flag (first OOBE part before login).
19870f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kOobeComplete[] = "OobeComplete";
19880f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
1989cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// The name of the screen that has to be shown if OOBE has been interrupted.
1990cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kOobeScreenPending[] = "OobeScreenPending";
1991cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
19920f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// A boolean pref of the device registered flag (second part after first login).
19930f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kDeviceRegistered[] = "DeviceRegistered";
19940f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
19955d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// List of usernames that used certificates pushed by policy before.
19965d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// This is used to prevent these users from joining multiprofile sessions.
19975d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kUsedPolicyCertificates[] = "policy.used_policy_certificates";
19985d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
1999a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// A dictionary containing server-provided device state pulled form the cloud
2000a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// after recovery.
2001a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kServerBackedDeviceState[] = "server_backed_device_state";
2002a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
20030529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Customized wallpaper URL, which is already downloaded and scaled.
20040529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// The URL from this preference must never be fetched. It is compared to the
20050529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// URL from customization document to check if wallpaper URL has changed
20060529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// since wallpaper was cached.
20070529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochconst char kCustomizationDefaultWallpaperURL[] =
20080529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "customization.default_wallpaper_url";
200946d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
201046d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// System uptime, when last logout started.
201146d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// This is saved to file and cleared after chrome process starts.
201246d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kLogoutStartedLast[] = "chromeos.logout-started";
20135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
20145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether there is a Flash version installed that supports clearing LSO data.
20165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
20175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether we should show Pepper Flash-specific settings.
20195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPepperFlashSettingsEnabled[] =
20205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.pepper_flash_settings_enabled";
20215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies where to store the disk cache.
20235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDiskCacheDir[] = "browser.disk_cache_dir";
20245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pref name for the policy specifying the maximal cache size.
20255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDiskCacheSize[] = "browser.disk_cache_size";
20265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pref name for the policy specifying the maximal media cache size.
20275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaCacheSize[] = "browser.media_cache_size";
20285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the release channel that the device should be locked to.
20305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Possible values: "stable-channel", "beta-channel", "dev-channel", or an
20315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// empty string, in which case the value will be ignored.
20325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// TODO(dubroy): This preference may not be necessary once
20335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// http://crosbug.com/17015 is implemented and the update engine can just
20345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// fetch the correct value from the policy.
20355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
20365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2037558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdochconst char kPerformanceTracingEnabled[] =
2038558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch    "feedback.performance_tracing_enabled";
2039558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch
2040cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Boolean indicating whether tabstrip uses stacked layout (on touch devices).
2041cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Defaults to false.
2042cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kTabStripStackedLayout[] = "tab-strip-stacked-layout";
20435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2044effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// Indicates that factory reset was requested from options page or reset screen.
20455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kFactoryResetRequested[] = "FactoryResetRequested";
20465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2047effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// Indicates that rollback was requested alongside with factory reset.
2048effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// Makes sense only if kFactoryResetRequested is true.
2049effb81e5f8246d0db0270817048dc992db66e9fbBen Murdochconst char kRollbackRequested[] = "RollbackRequested";
2050effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
2051eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Boolean recording whether we have showed a balloon that calls out the message
2052eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// center for desktop notifications.
2053eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kMessageCenterShowedFirstRunBalloon[] =
2054eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "message_center.showed_first_run_balloon";
2055eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
20565c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Boolean recording whether the user has disabled the notifications
20575c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// menubar or systray icon.
20585c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kMessageCenterShowIcon[] = "message_center.show_icon";
20595c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
20605c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kMessageCenterForcedOnTaskbar[] =
20615c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu    "message_center.was_forced_on_taskbar";
20625c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
20635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// *************** SERVICE PREFS ***************
20645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These are attached to the service process.
20655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintRoot[] = "cloud_print";
20675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
20685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The unique id for this instance of the cloud print proxy.
20695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
20705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GAIA auth token for Cloud Print
20715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
20725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GAIA auth token used by Cloud Print to authenticate with the XMPP server
20735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This should eventually go away because the above token should work for both.
20745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token";
20755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The email address of the account used to authenticate with the Cloud Print
20765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// server.
20775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintEmail[] = "cloud_print.email";
20785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Settings specific to underlying print system.
20795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintPrintSystemSettings[] =
20805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "cloud_print.print_system_settings";
20815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether we should poll for print jobs when don't have
20825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// an XMPP connection (false by default).
20835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
20845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
20855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
20865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether we should connect to cloud print new printers.
2087c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kCloudPrintConnectNewPrinters[] =
2088c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "cloud_print.user_settings.connectNewPrinters";
20895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether we should ping XMPP connection.
20905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
20915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An int value indicating the average timeout between xmpp pings.
20925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
2093c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Dictionary with settings stored by connector setup page.
2094c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kCloudPrintUserSettings[] = "cloud_print.user_settings";
2095c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// List of printers settings.
2096c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
20975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether submitting jobs to Google Cloud Print is
20985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// blocked by policy.
20995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
21005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preference to store proxy settings.
21025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProxy[] = "proxy";
21035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
21045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preferences that are exclusively used to store managed values for default
21065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// content settings.
21075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultCookiesSetting[] =
21085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.cookies";
21095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultImagesSetting[] =
21105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.images";
21115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultJavaScriptSetting[] =
21125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.javascript";
21135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultPluginsSetting[] =
21145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.plugins";
21155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultPopupsSetting[] =
21165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.popups";
21175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultGeolocationSetting[] =
21185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.geolocation";
21195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultNotificationsSetting[] =
21205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.notifications";
21215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultMediaStreamSetting[] =
21225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.media_stream";
21235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preferences that are exclusively used to store managed
21255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// content settings patterns.
21265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedCookiesAllowedForUrls[] =
21275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_cookies_allowed_for_urls";
21285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedCookiesBlockedForUrls[] =
21295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_cookies_blocked_for_urls";
21305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedCookiesSessionOnlyForUrls[] =
21315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_cookies_sessiononly_for_urls";
21325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedImagesAllowedForUrls[] =
21335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_images_allowed_for_urls";
21345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedImagesBlockedForUrls[] =
21355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_images_blocked_for_urls";
21365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedJavaScriptAllowedForUrls[] =
21375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_javascript_allowed_for_urls";
21385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedJavaScriptBlockedForUrls[] =
21395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_javascript_blocked_for_urls";
21405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPluginsAllowedForUrls[] =
21415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_plugins_allowed_for_urls";
21425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPluginsBlockedForUrls[] =
21435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_plugins_blocked_for_urls";
21445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPopupsAllowedForUrls[] =
21455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_popups_allowed_for_urls";
21465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPopupsBlockedForUrls[] =
21475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_popups_blocked_for_urls";
21485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedNotificationsAllowedForUrls[] =
21495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_notifications_allowed_for_urls";
21505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedNotificationsBlockedForUrls[] =
21515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_notifications_blocked_for_urls";
21525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedAutoSelectCertificateForUrls[] =
21535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_auto_select_certificate_for_urls";
21545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2155c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#if defined(OS_MACOSX)
21565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set to true if the user removed our login item so we should not create a new
21575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// one when uninstalling background apps.
21585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
21595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2160c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Set to true if Chrome already created a login item, so there's no need to
2161c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// create another one.
2162c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kChromeCreatedLoginItem[] =
2163c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  "background_mode.chrome_created_login_item";
2164c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
2165c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Set to true once we've initialized kChromeCreatedLoginItem for the first
2166c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// time.
2167c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kMigratedLoginItemPref[] =
2168c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  "background_mode.migrated_login_item_pref";
21695c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
21705c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// A boolean that tracks whether to show a notification when trying to quit
21715c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// while there are apps running.
21725c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kNotifyWhenAppsKeepChromeAlive[] =
21735c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu    "apps.notify-when-apps-keep-chrome-alive";
2174c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#endif
2175c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
21765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set to true if background mode is enabled on this browser.
21775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBackgroundModeEnabled[] = "background_mode.enabled";
21785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21792a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Set to true if hardware acceleration mode is enabled on this browser.
21802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kHardwareAccelerationModeEnabled[] =
21812a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  "hardware_acceleration_mode.enabled";
21822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
2183c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Hardware acceleration mode from previous browser launch.
2184c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kHardwareAccelerationModePrevious[] =
2185c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  "hardware_acceleration_mode_previous";
2186c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
21875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of protocol handlers.
21885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRegisteredProtocolHandlers[] =
21895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "custom_handlers.registered_protocol_handlers";
21905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of protocol handlers the user has requested not to be asked about again.
21925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIgnoredProtocolHandlers[] =
21935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "custom_handlers.ignored_protocol_handlers";
21945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
219546d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// List of protocol handlers registered by policy.
219646d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kPolicyRegisteredProtocolHandlers[] =
219746d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)    "custom_handlers.policy.registered_protocol_handlers";
219846d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
219946d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// List of protocol handlers the policy has requested to be ignored.
220046d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kPolicyIgnoredProtocolHandlers[] =
220146d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)    "custom_handlers.policy.ignored_protocol_handlers";
220246d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
22035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether user-specified handlers for protocols and content types can be
22045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specified.
22055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
22065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22078bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Integer that specifies the policy refresh rate for device-policy in
22085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// milliseconds. Not all values are meaningful, so it is clamped to a sane range
22095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// by the cloud policy subsystem.
22105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
22115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that represents the recovery component last downloaded version. This
22135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// takes the usual 'a.b.c.d' notation.
22145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRecoveryComponentVersion[] = "recovery_component.version";
22155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that stores the component updater last known state. This is used for
22175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// troubleshooting.
22185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kComponentUpdaterState[] = "component_updater.state";
22195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2220effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// A boolean where true means that the browser has previously attempted to
2221effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// enable autoupdate and failed, so the next out-of-date browser start should
2222effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// not prompt the user to enable autoupdate, it should offer to reinstall Chrome
2223effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// instead.
2224effb81e5f8246d0db0270817048dc992db66e9fbBen Murdochconst char kAttemptedToEnableAutoupdate[] =
2225effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch    "browser.attempted_to_enable_autoupdate";
2226effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
22276d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#if defined(OS_WIN)
22286d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// The number of attempts left to execute the SwReporter. This starts at the max
22296d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// number of retries allowed, and goes down as attempts are made and is cleared
22306d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// back to 0 when it successfully completes.
22316d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kSwReporterExecuteTryCount[] = "software_reporter.execute_try_count";
22326d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#endif
22336d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
22345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The next media gallery ID to assign.
22355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
22365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A list of dictionaries, where each dictionary represents a known media
22385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// gallery.
22395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaGalleriesRememberedGalleries[] =
22405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "media_galleries.remembered_galleries";
22415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22425d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// The last time a media scan completed.
22435d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time";
22445d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
22452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(USE_ASH)
22465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
22475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// local variant is not synced and is used if set. If the local variant is not
22485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// set its value is set from the synced value (once prefs have been
22495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// synced). This gives a per-machine setting that is initialized from the last
22505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// set value.
22512a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// These values are default on the machine but can be overridden by per-display
22522a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// values in kShelfPreferences (unless overridden by managed policy).
22535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String value corresponding to ash::Shell::ShelfAlignment.
22545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAlignment[] = "shelf_alignment";
22555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAlignmentLocal[] = "shelf_alignment_local";
22565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String value corresponding to ash::Shell::ShelfAutoHideBehavior.
22575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
22585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
225990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// This value stores chrome icon's index in the launcher. This should be handled
2260f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// separately with app shortcut's index because of ShelfModel's backward
2261cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its
226290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// index is also stored in the |kPinnedLauncherApp| pref. It may causes
226390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// creating two chrome icons.
226490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index";
22652a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Dictionary value that holds per-display preference of shelf alignment and
22662a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// auto-hide behavior. Key of the dictionary is the id of the display, and
22672a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// its value is a dictionary whose keys are kShelfAlignment and
22682a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// kShelfAutoHideBehavior.
22692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kShelfPreferences[] = "shelf_preferences";
22705d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
22715d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Integer value in milliseconds indicating the length of time for which a
22725d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// confirmation dialog should be shown when the user presses the logout button.
22735d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A value of 0 indicates that logout should happen immediately, without showing
22745d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// a confirmation dialog.
22755d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms";
22765d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kPinnedLauncherApps[] = "pinned_launcher_apps";
22775d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Boolean value indicating whether to show a logout button in the ash tray.
22785d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
22792a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
22805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22812a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(USE_AURA)
22822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Tuning settings for gestures.
22835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxSeparationForGestureTouchesInPixels[] =
22845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_separation_for_gesture_touches_in_pixels";
22855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSemiLongPressTimeInSeconds[] =
22865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.semi_long_press_time_in_seconds";
22872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kTabScrubActivationDelayInMS[] =
22882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.tab_scrub_activation_delay_in_ms";
22892a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingAccelerationCurveCoefficient0[] =
22902a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_acceleration_curve_coefficient_0";
22912a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingAccelerationCurveCoefficient1[] =
22922a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_acceleration_curve_coefficient_1";
22932a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingAccelerationCurveCoefficient2[] =
22942a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_acceleration_curve_coefficient_2";
22952a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingAccelerationCurveCoefficient3[] =
22962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_acceleration_curve_coefficient_3";
22972a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingCurveTouchpadAlpha[] = "flingcurve.touchpad_alpha";
22982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingCurveTouchpadBeta[] = "flingcurve.touchpad_beta";
22992a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingCurveTouchpadGamma[] = "flingcurve.touchpad_gamma";
23002a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingCurveTouchscreenAlpha[] = "flingcurve.touchscreen_alpha";
23012a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingCurveTouchscreenBeta[] = "flingcurve.touchscreen_beta";
23022a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingCurveTouchscreenGamma[] = "flingcurve.touchscreen_gamma";
23032a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingMaxCancelToDownTimeInMs[] =
23042a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_max_cancel_to_down_time_in_ms";
23052a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingMaxTapGapTimeInMs[] =
23062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_max_tap_gap_time_in_ms";
23072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollHorizontalThresholdComplete[] =
23082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.horizontal_threshold_complete";
23092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollVerticalThresholdComplete[] =
23102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.vertical_threshold_complete";
23112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollMinimumThresholdStart[] =
23122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.minimum_threshold_start";
2313424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)const char kOverscrollMinimumThresholdStartTouchpad[] =
2314424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)    "overscroll.minimum_threshold_start_touchpad";
231558e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdochconst char kOverscrollVerticalThresholdStart[] =
231658e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdoch    "overscroll.vertical_threshold_start";
23172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollHorizontalResistThreshold[] =
23182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.horizontal_resist_threshold";
23192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollVerticalResistThreshold[] =
23202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.vertical_resist_threshold";
23215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
23225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
23235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Counts how many more times the 'profile on a network share' warning should be
23245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// shown to the user before the next silence period.
23255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
23265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tracks the time of the last shown warning. Used to reset
23275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |network_profile.warnings_left| after a silence period.
23285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetworkProfileLastWarningTime[] =
23295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "network_profile.last_warning_time";
23305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
23312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(OS_CHROMEOS)
23322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The RLZ brand code, if enabled.
23332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kRLZBrand[] = "rlz.brand";
23342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Whether RLZ pings are disabled.
23352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kRLZDisabled[] = "rlz.disabled";
23362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
23372a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
23384e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#if defined(ENABLE_APP_LIST)
23392a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The directory in user data dir that contains the profile to be used with the
23402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// app launcher.
23415d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kAppListProfile[] = "app_list.profile";
23422a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
2343c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// The number of times the app launcher was launched since last ping and
2344c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// the time of the last ping.
23455d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kAppListLaunchCount[] = "app_list.launch_count";
23465d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
2347c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
2348c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// The number of times the an app was launched from the app launcher since last
2349c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// ping and the time of the last ping.
23505d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
23515d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
2352c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
23534e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// A boolean that tracks whether the user has ever enabled the app launcher.
23544e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kAppLauncherHasBeenEnabled[] =
23554e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "apps.app_launcher.has_been_enabled";
23564e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
23575d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// An enum indicating how the app launcher was enabled. E.g., via webstore, app
23585d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// install, command line, etc. For UMA.
23595d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kAppListEnableMethod[] = "app_list.how_enabled";
23605d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
23615d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// The time that the app launcher was enabled. Cleared when UMA is recorded.
23625d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kAppListEnableTime[] = "app_list.when_enabled";
23635d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
23644e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// TODO(calamity): remove this pref since app launcher will always be
23654e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// installed.
23664e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Local state caching knowledge of whether the app launcher is installed.
23674e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kAppLauncherIsEnabled[] =
23684e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "apps.app_launcher.should_show_apps_page";
23694e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
23704e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Integer representing the version of the app launcher shortcut installed on
23714e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// the system. Incremented, e.g., when embedded icons change.
23724e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version";
23734e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
23744e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// A boolean identifying if we should show the app launcher promo or not.
23754e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kShowAppLauncherPromo[] = "app_launcher.show_promo";
23766d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
23776d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// A dictionary that tracks the Drive app to Chrome app mapping. The key is
23786d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// a Drive app id and the value is the corresponding Chrome app id. The pref
23796d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// is unsynable and used to track local mappings only.
23806d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kAppLauncherDriveAppMapping[] =
23816d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)    "apps.app_launcher.drive_app_mapping";
23824e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#endif
23834e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
23844e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// If set, the user requested to launch the app with this extension id while
23854e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// in Metro mode, and then relaunched to Desktop mode to start it.
23864e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart";
23874e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
23884e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
23894e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// launch of the specified app when restarting Chrome in desktop mode.
23904e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kAppLaunchForMetroRestartProfile[] =
23914e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "apps.app_launch_for_metro_restart_profile";
23924e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
239346d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// An integer that is incremented whenever changes are made to app shortcuts.
239446d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// Increasing this causes all app shortcuts to be recreated.
239546d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kAppShortcutsVersion[] = "apps.shortcuts_version";
23964e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
2397868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// How often the bubble has been shown.
2398868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2399868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
2400c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A string pref for storing the salt used to compute the pepper device ID.
2401c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDRMSalt[] = "settings.privacy.drm_salt";
240258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// A boolean pref that enables the (private) pepper GetDeviceID() call and
240358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// enables the use of remote attestation for content protection.
2404c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEnableDRM[] = "settings.privacy.drm_enabled";
2405c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
24065d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// An integer per-profile pref that signals if the watchdog extension is
24073551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)// installed and active. We need to know if the watchdog extension active for
24083551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)// ActivityLog initialization before the extension system is initialized.
24093551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)const char kWatchdogExtensionActive[] =
24105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "profile.extensions.activity_log.num_consumers_active";
24115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// The old version was a bool.
24125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kWatchdogExtensionActiveOld[] =
24133551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)    "profile.extensions.activity_log.watchdog_extension_active";
24143551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
24150f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)#if defined(OS_ANDROID)
24160f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// A list of partner bookmark rename/remove mappings.
24170f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Each list item is a dictionary containing a "url", a "provider_title" and
24180f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// "mapped_title" entries, detailing the bookmark target URL (if any), the title
24190f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// given by the PartnerBookmarksProvider and either the user-visible renamed
24200f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// title or an empty string if the bookmark node was removed.
24210f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
24220f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)#endif
24230f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
24245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Whether DNS Quick Check is disabled in proxy resolution.
24255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
242623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
24275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace prefs
2428