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.
372a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kManagedModeManualHosts[] = "profile.managed.manual_hosts";
382a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Maps URLs to whether the URL is manually allowed or blocked.
392a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kManagedModeManualURLs[] = "profile.managed.manual_urls";
405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
41868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Stores the email address associated with the google account of the custodian
42eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// of the managed user, set when the managed user is created.
43eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kManagedUserCustodianEmail[] = "profile.managed.custodian_email";
44eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
45eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Stores the display name associated with the google account of the custodian
46eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// of the managed user, updated (if possible) each time the managed user
47eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// starts a session.
48eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kManagedUserCustodianName[] = "profile.managed.custodian_name";
49868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
50ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// An integer that keeps track of the profile icon version. This allows us to
51ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// determine the state of the profile icon for icon format changes.
52ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kProfileIconVersion[] = "profile.icon_version";
53ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to determine if the last session exited cleanly. Set to false when
555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// first opened, and to true when closing. On startup if the value is false,
565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it means the profile didn't exit cleanly.
575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// DEPRECATED: this is replaced by kSessionExitType and exists for backwards
585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// compatability.
595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSessionExitedCleanly[] = "profile.exited_cleanly";
605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref whose values is one of the values defined by
625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// shutdown. Used to determine the exit type the last time the profile was open.
655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSessionExitType[] = "profile.exit_type";
665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref. Holds one of several values:
685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0: (deprecated) open the homepage on startup.
695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1: restore the last session.
705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2: this was used to indicate a specific session should be restored. It is
715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//    no longer used, but saved to avoid conflict with old preferences.
725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 3: unused, previously indicated the user wants to restore a saved session.
735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 4: restore the URLs defined in kURLsToRestoreOnStartup.
745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 5: open the New Tab Page on startup.
755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestoreOnStartup[] = "session.restore_on_startup";
765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A preference to keep track of whether we have already checked whether we
785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// We only need to do this check once, on upgrade from m18 or lower to m19 or
805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// higher.
815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
83ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// The URLs to restore on startup or when the home button is pressed. The URLs
84ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// are only restored on startup if kRestoreOnStartup is 4.
85ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup";
86ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The application locale.
885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// For OS_CHROMEOS we maintain kApplicationLocale property in both local state
895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// and user's profile.  Global property determines locale of login screen,
905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// while user's profile determines his personal locale preference.
915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApplicationLocale[] = "intl.app_locale";
925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Locale preference of device' owner.  ChromeOS device appears in this locale
945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// after startup/wakeup/signout.
955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOwnerLocale[] = "intl.owner_locale";
965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Locale accepted by user.  Non-syncable.
975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to determine whether we need to show Locale Change notification.
985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted";
995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Non-syncable item.
1005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// It is used in two distinct ways.
1015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (1) Used for two-step initialization of locale in ChromeOS
1025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//     because synchronization of kApplicationLocale is not instant.
1035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (2) Used to detect locale change.  Locale change is detected by
1045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//     LocaleChangeGuard in case values of kApplicationLocaleBackup and
1055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//     kApplicationLocale are both non-empty and differ.
1065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Following is a table showing how state of those prefs may change upon
1075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// common real-life use cases:
1085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//                                  AppLocale Backup Accepted
1095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sync                                B        A       -
1115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Accept (B)                          B        B       B
1125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------
1135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// No sync and second login            A        A       -
1155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Change options                      B        B       -
1165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------
1175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sync                                A        A       -
1195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Locale changed on login screen      A        C       -
1205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Accept (A)                          A        A       A
1215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------
1225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sync                                B        A       -
1245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Revert                              A        A       -
1255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
1265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
1275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The default character encoding to assume for a web page in the
1295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// absence of MIME charset specification
1305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultCharset[] = "intl.charset_default";
1315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value to use for Accept-Languages HTTP header when making an HTTP
1335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// request.
1345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAcceptLanguages[] = "intl.accept_languages";
1355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value to use for showing locale-dependent encoding list for different
1375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// locale, it's initialized from the corresponding string resource that is
1385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// stored in non-translatable part of the resource bundle.
1395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStaticEncodings[] = "intl.static_encodings";
1405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Obselete WebKit prefs for migration.
1425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGlobalDefaultCharset[] = "intl.global.charset_default";
1435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalDefaultFontSize[] =
1445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.default_font_size";
1455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalDefaultFixedFontSize[] =
1465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.default_fixed_font_size";
1475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalMinimumFontSize[] =
1485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.minimum_font_size";
1495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalMinimumLogicalFontSize[] =
1505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.minimum_logical_font_size";
1515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalJavascriptCanOpenWindowsAutomatically[] =
1525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.javascript_can_open_windows_automatically";
1535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalJavascriptEnabled[] =
1545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.javascript_enabled";
1555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalLoadsImagesAutomatically[] =
1565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.loads_images_automatically";
1575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalPluginsEnabled[] =
1585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.plugins_enabled";
1595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalStandardFontFamily[] =
1605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.standard_font_family";
1615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalFixedFontFamily[] =
1625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.fixed_font_family";
1635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalSerifFontFamily[] =
1645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.serif_font_family";
1655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalSansSerifFontFamily[] =
1665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.sansserif_font_family";
1675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalCursiveFontFamily[] =
1685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.cursive_font_family";
1695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalFantasyFontFamily[] =
1705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.fantasy_font_family";
1715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitOldStandardFontFamily[] =
1725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.standard_font_family";
1735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitOldFixedFontFamily[] = "webkit.webprefs.fixed_font_family";
1745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitOldSerifFontFamily[] = "webkit.webprefs.serif_font_family";
1755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitOldSansSerifFontFamily[] =
1765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.sansserif_font_family";
1775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitOldCursiveFontFamily[] =
1785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.cursive_font_family";
1795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitOldFantasyFontFamily[] =
1805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fantasy_font_family";
1815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If these change, the corresponding enums in the extension API
1835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// experimental.fontSettings.json must also change.
1845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char* const kWebKitScriptsForFontFamilyMaps[] = {
1852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#define EXPAND_SCRIPT_FONT(x, script_name) script_name ,
1862a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#include "chrome/common/pref_font_script_names-inl.h"
1872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)ALL_FONT_SCRIPTS("unused param")
1882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#undef EXPAND_SCRIPT_FONT
1895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)};
1905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const size_t kWebKitScriptsForFontFamilyMapsLength =
1925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    arraysize(kWebKitScriptsForFontFamilyMaps);
1935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Strings for WebKit font family preferences. If these change, the pref prefix
1955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// in pref_names_util.cc and the pref format in font_settings_api.cc must also
1965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// change.
1975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyMap[] =
1982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_STANDARD;
1995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyMap[] =
2002a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_FIXED;
2015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyMap[] =
2022a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_SERIF;
2035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyMap[] =
2042a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_SANSERIF;
2055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCursiveFontFamilyMap[] =
2062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_CURSIVE;
2075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFantasyFontFamilyMap[] =
2082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_FANTASY;
2095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitPictographFontFamilyMap[] =
2102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    WEBKIT_WEBPREFS_FONTS_PICTOGRAPH;
2115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyArabic[] =
2125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Arab";
2135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyArabic[] =
2145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Arab";
2155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyArabic[] =
2165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Arab";
2175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyArabic[] =
2185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Arab";
2195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyCyrillic[] =
2205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Cyrl";
2215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyCyrillic[] =
2225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Cyrl";
2235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyCyrillic[] =
2245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Cyrl";
2255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyCyrillic[] =
2265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Cyrl";
2275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyGreek[] =
2285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Grek";
2295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyGreek[] =
2305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Grek";
2315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyGreek[] =
2325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Grek";
2335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyGreek[] =
2345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Grek";
2355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyJapanese[] =
2365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Jpan";
2375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyJapanese[] =
2385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Jpan";
2395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyJapanese[] =
2405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Jpan";
2415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyJapanese[] =
2425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Jpan";
2435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyKorean[] =
2445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Hang";
2455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyKorean[] =
2465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Hang";
2475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyKorean[] =
2485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Hang";
2495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyKorean[] =
2505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Hang";
2515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCursiveFontFamilyKorean[] =
2525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.cursive.Hang";
2535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilySimplifiedHan[] =
2545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Hans";
2555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilySimplifiedHan[] =
2565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Hans";
2575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilySimplifiedHan[] =
2585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Hans";
2595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilySimplifiedHan[] =
2605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Hans";
2615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamilyTraditionalHan[] =
2625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard.Hant";
2635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyTraditionalHan[] =
2645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed.Hant";
2655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyTraditionalHan[] =
2665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif.Hant";
2675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyTraditionalHan[] =
2685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Hant";
2695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// WebKit preferences.
2715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
2725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled";
2735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitShrinksStandaloneImagesToFit[] =
2745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.shrinks_standalone_images_to_fit";
2755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings";
2765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitUsesUniversalDetector[] =
2775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.uses_universal_detector";
2785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitTextAreasAreResizable[] =
2795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.text_areas_are_resizable";
2805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled";
2815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links";
2825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitAllowDisplayingInsecureContent[] =
2835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.allow_displaying_insecure_content";
2845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitAllowRunningInsecureContent[] =
2855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.allow_running_insecure_content";
2865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
2875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor";
2885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom";
289868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kWebKitPasswordEchoEnabled[] =
290868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)    "webkit.webprefs.password_echo_enabled";
2915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
2925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCommonScript[] = "Zyyy";
2945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy";
2955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy";
2965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy";
2975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamily[] =
2985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Zyyy";
2995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy";
3005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy";
3015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitPictographFontFamily[] =
3025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.pictograph.Zyyy";
3035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size";
3045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitDefaultFixedFontSize[] =
3055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.default_fixed_font_size";
3065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
3075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitMinimumLogicalFontSize[] =
3085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.minimum_logical_font_size";
3095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
3105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
3115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.javascript_can_open_windows_automatically";
3125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitLoadsImagesAutomatically[] =
3135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.loads_images_automatically";
3145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled";
3155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean which specifies whether the bookmark bar is visible on all tabs.
3175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowBookmarkBar[] = "bookmark_bar.show_on_all_tabs";
3185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Boolean which specifies whether the apps shortcut is visible on the bookmark
3202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// bar.
3212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kShowAppsShortcutInBookmarkBar[] = "bookmark_bar.show_apps_shortcut";
3222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
3235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean which specifies the ids of the bookmark nodes that are expanded in
3245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the bookmark editor.
3255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBookmarkEditorExpandedNodes[] = "bookmark_editor.expanded_nodes";
3265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
327c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Boolean controlling whether password generation is enabled (will allow users
328c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// to generated passwords on account creation pages).
329c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kPasswordGenerationEnabled[] = "password_generation.enabled";
330c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
3315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true if the password manager is on (will record new
3325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// passwords and fill in known passwords).
3335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPasswordManagerEnabled[] = "profile.password_manager_enabled";
3345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether the password manager allows to retrieve passwords
3365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// in clear text.
3375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPasswordManagerAllowShowPasswords[] =
3385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.password_manager_allow_show_passwords";
3395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Booleans identifying whether normal and reverse auto-logins are enabled.
3415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutologinEnabled[] = "autologin.enabled";
3425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kReverseAutologinEnabled[] = "reverse_autologin.enabled";
3435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List to keep track of emails for which the user has rejected one-click
3455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// sign-in.
3465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kReverseAutologinRejectedEmailList[] =
3475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "reverse_autologin.rejected_email_list";
3485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when SafeBrowsing is enabled.
3505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
3515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when SafeBrowsing Malware Report is enabled.
3535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingReportingEnabled[] =
3545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "safebrowsing.reporting_enabled";
3555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when the SafeBrowsing interstitial should not allow
3575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// users to proceed anyway.
3585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingProceedAnywayDisabled[] =
3595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "safebrowsing.proceed_anyway_disabled";
3605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enum that specifies whether Incognito mode is:
3625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0 - Enabled. Default behaviour. Default mode is available on demand.
3635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1 - Disabled. Used cannot browse pages in Incognito mode.
3645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2 - Forced. All pages/sessions are forced into Incognito.
3655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIncognitoModeAvailability[] = "incognito.mode_availability";
3665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when Suggest support is enabled.
3685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSearchSuggestEnabled[] = "search.suggest_enabled";
3695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether the browser should put up a confirmation
3715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// window when the user is attempting to quit. Mac only.
3725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
3735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE.  Enum that specifies whether to enforce a third-party cookie
3755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// blocking policy.  This has been superseded by kDefaultContentSettings +
3765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kBlockThirdPartyCookies.
3775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0 - allow all cookies.
3785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1 - block third-party cookies
3795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2 - block all cookies
3805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCookieBehavior[] = "security.cookie_behavior";
3815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GUID of the synced default search provider. Note that this acts like a
3835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// pointer to which synced search engine should be the default, rather than the
3845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// prefs below which describe the locally saved default search provider details
3855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (and are not synced). This is ignored in the case of the default search
3865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// provider being managed by policy.
3875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncedDefaultSearchProviderGUID[] =
3885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.synced_guid";
3895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether having a default search provider is enabled.
3915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderEnabled[] =
3925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.enabled";
3935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL (as understood by TemplateURLRef) the default search provider uses
3955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for searches.
3965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderSearchURL[] =
3975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.search_url";
3985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL (as understood by TemplateURLRef) the default search provider uses
4005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for suggestions.
4015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderSuggestURL[] =
4025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.suggest_url";
4035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL (as understood by TemplateURLRef) the default search provider uses
4055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for instant results.
4065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderInstantURL[] =
4075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.instant_url";
4085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
409a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// The URL (as understood by TemplateURLRef) the default search provider uses
410a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// for image search results.
411a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kDefaultSearchProviderImageURL[] =
412a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "default_search_provider.image_url";
413a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
414a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// The string of post parameters (as understood by TemplateURLRef) the default
415a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// search provider uses for searches by using POST.
416a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kDefaultSearchProviderSearchURLPostParams[] =
417a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "default_search_provider.search_url_post_params";
418a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
419a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// The string of post parameters (as understood by TemplateURLRef) the default
420a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// search provider uses for suggestions by using POST.
421a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kDefaultSearchProviderSuggestURLPostParams[] =
422a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "default_search_provider.suggest_url_post_params";
423a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
424a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// The string of post parameters (as understood by TemplateURLRef) the default
425a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// search provider uses for instant results by using POST.
426a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kDefaultSearchProviderInstantURLPostParams[] =
427a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "default_search_provider.instant_url_post_params";
428a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
429a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// The string of post parameters (as understood by TemplateURLRef) the default
430a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// search provider uses for image search results by using POST.
431a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kDefaultSearchProviderImageURLPostParams[] =
432a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "default_search_provider.image_url_post_params";
433a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
4345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The Favicon URL (as understood by TemplateURLRef) of the default search
4355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// provider.
4365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderIconURL[] =
4375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.icon_url";
4385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The input encoding (as understood by TemplateURLRef) supported by the default
4405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// search provider.  The various encodings are separated by ';'
4415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderEncodings[] =
4425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.encodings";
4435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The name of the default search provider.
4455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderName[] = "default_search_provider.name";
4465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The keyword of the default search provider.
4485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword";
4495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The id of the default search provider.
4515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderID[] = "default_search_provider.id";
4525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The prepopulate id of the default search provider.
4545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderPrepopulateID[] =
4555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.prepopulate_id";
4565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The alternate urls of the default search provider.
4585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderAlternateURLs[] =
4595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.alternate_urls";
4605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4612a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Search term placement query parameter for the default search provider.
4622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDefaultSearchProviderSearchTermsReplacementKey[] =
4632a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "default_search_provider.search_terms_replacement_key";
4642a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
4655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The dictionary key used when the default search providers are given
4665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// in the preferences file. Normally they are copied from the master
4675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences file.
4685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSearchProviderOverrides[] = "search_provider_overrides";
4695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The format version for the dictionary above.
4705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSearchProviderOverridesVersion[] =
4715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "search_provider_overrides_version";
4725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean which specifies whether we should ask the user if we should download
4745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a file (true) or just download it automatically.
4755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPromptForDownload[] = "download.prompt_for_download";
4765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if we're using Link Doctor error pages.
4785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled";
4795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE: new pref now stored with user prefs instead of profile, as
4815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kDnsPrefetchingStartupList.
4825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList";
4835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An adaptively identified list of domain names to be pre-fetched during the
4855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// next startup, based on what was actually needed during this startup.
4865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list";
4875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE: new pref now stored with user prefs instead of profile, as
4895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kDnsPrefetchingHostReferralList.
4905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsHostReferralList[] = "HostReferralList";
4915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A list of host names used to fetch web pages, and their commonly used
4935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// sub-resource hostnames (and expected latency benefits from pre-resolving, or
4945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preconnecting to, such sub-resource hostnames).
4955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This list is adaptively grown and pruned.
4965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsPrefetchingHostReferralList[] =
4975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "dns_prefetching.host_referral_list";
4985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the SPDY protocol.
5005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSpdy[] = "spdy.disabled";
5015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for persisting HttpServerProperties.
5035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHttpServerProperties[] = "net.http_server_properties";
5045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for server names that support SPDY protocol.
5065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpdyServers[] = "spdy.servers";
5075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for servers that support Alternate-Protocol.
5095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAlternateProtocolServers[] = "spdy.alternate_protocol";
5105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the listed protocol schemes.
5125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisabledSchemes[] = "protocol.disabled_schemes";
5135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Blocks access to the listed host patterns.
5155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUrlBlacklist[] = "policy.url_blacklist";
5165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Allows access to the listed host patterns, as exceptions to the blacklist.
5185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUrlWhitelist[] = "policy.url_whitelist";
5195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5207dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch#if defined(OS_ANDROID)
5217dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Last time that a check for cloud policy management was done. This time is
5227dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// recorded on Android so that retries aren't attempted on every startup.
5237dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Instead the cloud policy registration is retried at least 1 or 3 days later.
5247dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kLastPolicyCheckTime[] = "policy.last_policy_check_time";
525d3868032626d59662ff73b372b5d584c1d144c53Ben Murdoch
526d3868032626d59662ff73b372b5d584c1d144c53Ben Murdoch// A list of bookmarks to include in a Managed Bookmarks root node. Each
527d3868032626d59662ff73b372b5d584c1d144c53Ben Murdoch// list item is a dictionary containig a "name" and an "url" entry, detailing
528d3868032626d59662ff73b372b5d584c1d144c53Ben Murdoch// the bookmark name and target URL respectively.
529d3868032626d59662ff73b372b5d584c1d144c53Ben Murdochconst char kManagedBookmarks[] = "policy.managed_bookmarks";
5307dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch#endif
5312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
5325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefix URL for the experimental Instant ZeroSuggest provider.
5335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInstantUIZeroSuggestUrlPrefix[] =
5345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "instant_ui.zero_suggest_url_prefix";
5355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to migrate preferences from local state to user preferences to
5375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enable multiple profiles.
5385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// BITMASK with possible values (see browser_prefs.cc for enum):
5395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0: No preferences migrated.
5405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList
5415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2: Browser window preferences migrated: kDevToolsSplitLocation and
5425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//    kBrowserWindowPlacement
5435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMultipleProfilePrefMigration[] =
5445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "local_state.multiple_profile_prefs_version";
5455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if prediction of network actions is allowed.
5475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Actions include DNS prefetching, TCP and SSL preconnection, and prerendering
5485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// of web pages.
5495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// NOTE: The "dns_prefetching.enabled" value is used so that historical user
5505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences are not lost.
5515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
5525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer representing the state of the default apps installation process.
5545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This value is persisted in the profile's user preferences because the process
5555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is async, and the user may have stopped chrome in the middle.  The next time
5565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the profile is opened, the process will continue from where it left off.
5575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
5585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// See possible values in external_provider_impl.cc.
5595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultAppsInstallState[] = "default_apps_install_state";
5605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5612a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A boolean pref set to true if the Chrome Web Store icons should be hidden
5622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// from the New Tab Page and app launcher.
5632a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kHideWebStoreIcon[] = "hide_web_store_icon";
5642a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
5655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
566c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A dictionary pref to hold the mute setting for all the currently known
567c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// audio devices.
568c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAudioDevicesMute[] = "settings.audio.devices.mute";
569c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
570c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A dictionary pref storing the volume settings for all the currently known
571c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// audio devices.
572c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAudioDevicesVolumePercent[] =
573c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "settings.audio.devices.volume_percent";
574c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
5755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref to initially mute volume if 1. This pref is ignored if
5765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |kAudioOutputAllowed| is set to false, but its value is preserved, therefore
577c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// when the policy is lifted the original mute state is restored.  This setting
578c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// is here only for migration purposes now. It is being replaced by the
579c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// |kAudioDevicesMute| setting.
5805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioMute[] = "settings.audio.mute";
5815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
582c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A double pref storing the user-requested volume. This setting is here only
583c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// for migration purposes now. It is being replaced by the
584c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// |kAudioDevicesVolumePercent| setting.
5855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioVolumePercent[] = "settings.audio.volume_percent";
5865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad tap-to-click is enabled.
5885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click";
5895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad tap-dragging is enabled.
5915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging";
5925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad three-finger-click is enabled.
5945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableTouchpadThreeFingerClick[] =
5955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.touchpad.enable_three_finger_click";
5965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad natural scrolling is enabled.
5985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNaturalScroll[] = "settings.touchpad.natural_scroll";
5995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if primary mouse button is the left button.
6015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right";
6025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref for the touchpad sensitivity.
6045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMouseSensitivity[] = "settings.mouse.sensitivity2";
6055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref for the touchpad sensitivity.
6075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
6085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if time should be displayed in 24-hour clock.
6105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
6115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref to disable Google Drive integration.
6135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The pref prefix should remain as "gdata" for backward compatibility.
6145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDrive[] = "gdata.disabled";
6155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref to disable Drive over cellular connections.
6175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The pref prefix should remain as "gdata" for backward compatibility.
6185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDriveOverCellular[] = "gdata.cellular.disabled";
6195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref to disable hosted files on Drive.
6215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The pref prefix should remain as "gdata" for backward compatibility.
6225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled";
6235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref set to the current input method.
6255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageCurrentInputMethod[] =
6265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.current_input_method";
6275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref set to the previous input method.
6295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePreviousInputMethod[] =
6305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.previous_input_method";
6315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the "next engine in menu"
6335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// hot-key lists.
6345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageHotkeyNextEngineInMenu[] =
6355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.hotkey_next_engine_in_menu";
6365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the "previous engine"
6385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// hot-key lists.
6395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageHotkeyPreviousEngine[] =
6405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.hotkey_previous_engine";
6415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the preferred language IDs
6435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (ex. "en-US,fr,ko").
6445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePreferredLanguages[] =
6455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.preferred_languages";
6465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the preloaded (active) input
6485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// method IDs (ex. "pinyin,mozc").
6495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePreloadEngines[] = "settings.language.preload_engines";
6505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
651b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// A List pref (comma-separated list) set to the extension IMEs to be enabled.
652b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)const char kLanguageEnabledExtensionImes[] =
653b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)    "settings.language.enabled_extension_imes";
6545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean prefs for ibus-chewing Chinese input method.
6565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingAutoShiftCur[] =
6575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_auto_shift_cur";
6585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingAddPhraseDirection[] =
6595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_add_phrase_direction";
6605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingEasySymbolInput[] =
6615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_easy_symbol_input";
6625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingEscCleanAllBuf[] =
6635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_esc_clean_all_buf";
6645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingForceLowercaseEnglish[] =
6655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_force_lowercase_english";
6665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingPlainZhuyin[] =
6675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_plain_zhuyin";
6685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingPhraseChoiceRearward[] =
6695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_phrase_choice_rearward";
6705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingSpaceAsSelection[] =
6715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_space_as_selection";
6725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer prefs for ibus-chewing Chinese input method.
6745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingMaxChiSymbolLen[] =
6755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_max_chi_symbol_len";
6765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingCandPerPage[] =
6775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_cand_per_page";
6785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String prefs for ibus-chewing Chinese input method.
6805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingKeyboardType[] =
6815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_keyboard_type";
6825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingSelKeys[] =
6835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_sel_keys";
6845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingHsuSelKeyType[] =
6865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_hsu_sel_key_type";
6875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref which determines the keyboard layout for Hangul input method.
6895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageHangulKeyboard[] = "settings.language.hangul_keyboard";
6905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageHangulHanjaBindingKeys[] =
6915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.hangul_hanja_binding_keys";
6925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean prefs for ibus-pinyin Chinese input method.
6945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinCorrectPinyin[] =
6955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_correct_pinyin";
6965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinFuzzyPinyin[] =
6975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_fuzzy_pinyin";
6985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinShiftSelectCandidate[] =
6995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_shift_select_candidate";
7005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinMinusEqualPage[] =
7015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_minus_equal_page";
7025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinCommaPeriodPage[] =
7035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_comma_period_page";
7045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinAutoCommit[] =
7055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_auto_commit";
7065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinDoublePinyin[] =
7075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_double_pinyin";
7085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinInitChinese[] =
7095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_init_chinese";
7105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinInitFull[] =
7115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_init_full";
7125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinInitFullPunct[] =
7135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_init_full_punct";
7145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinInitSimplifiedChinese[] =
7155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_init_simplified_chinese";
7165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinTradCandidate[] =
7175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_trad_candidate";
7185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer prefs for ibus-pinyin Chinese input method.
7205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinDoublePinyinSchema[] =
7215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_double_pinyin_schema";
7225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinLookupTablePageSize[] =
7235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_lookup_table_page_size";
7245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string prefs for ibus-mozc Japanese input method.
7265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// ibus-mozc converts the string values to protobuf enum values defined in
7275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// third_party/ibus-mozc/files/src/session/config.proto.
7285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcPreeditMethod[] =
7295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_preedit_method";
7305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcSessionKeymap[] =
7315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_session_keymap";
7325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcPunctuationMethod[] =
7335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_punctuation_method";
7345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcSymbolMethod[] =
7355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_symbol_method";
7365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcSpaceCharacterForm[] =
7375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_space_character_form";
7385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcHistoryLearningLevel[] =
7395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_history_learning_level";
7405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcSelectionShortcut[] =
7415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_selection_shortcut";
7425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcShiftKeyModeSwitch[] =
7435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_shift_key_mode_switch";
7445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcNumpadCharacterForm[] =
7455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_numpad_character_form";
7465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcIncognitoMode[] =
7475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_incognito_mode";
7485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcUseAutoImeTurnOff[] =
7495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_use_auto_ime_turn_off";
7505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcUseHistorySuggest[] =
7515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_use_history_suggest";
7525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcUseDictionarySuggest[] =
7535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_use_dictionary_suggest";
7545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcSuggestionsSize[] =
7555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_suggestions_size";
7565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer prefs which determine how we remap modifier keys (e.g. swap Alt and
7585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
7595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// src/chrome/browser/chromeos/input_method/xkeyboard.h
7605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapSearchKeyTo[] =
7615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    // Note: we no longer use XKB for remapping these keys, but we can't change
7625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    // the pref names since the names are already synced with the cloud.
7635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_remap_search_key_to";
7645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapControlKeyTo[] =
7655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_remap_control_key_to";
7665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapAltKeyTo[] =
7675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_remap_alt_key_to";
7685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapCapsLockKeyTo[] =
7695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.remap_caps_lock_key_to";
7702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kLanguageRemapDiamondKeyTo[] =
7712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "settings.language.remap_diamond_key_to";
7725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether key repeat is enabled.
7745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageXkbAutoRepeatEnabled[] =
7755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_auto_repeat_enabled_r2";
7765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref which determines key repeat delay (in ms).
7775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageXkbAutoRepeatDelay[] =
7785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_auto_repeat_delay_r2";
7795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref which determines key repeat interval (in ms).
7805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageXkbAutoRepeatInterval[] =
7815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_auto_repeat_interval_r2";
7825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "_r2" suffixes are added to the three prefs above when we change the
7835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences not user-configurable, not to sync them with cloud.
7845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
785868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// A boolean pref which determines whether the large cursor feature is enabled.
786868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kLargeCursorEnabled[] = "settings.a11y.large_cursor_enabled";
7877d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// A boolean pref which determines whether the sticky keys feature is enabled.
7887d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kStickyKeysEnabled[] = "settings.a11y.sticky_keys_enabled";
7895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether spoken feedback is enabled.
7905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpokenFeedbackEnabled[] = "settings.accessibility";
7915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether high conrast is enabled.
7925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHighContrastEnabled[] = "settings.a11y.high_contrast_enabled";
7935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether screen magnifier is enabled.
7945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kScreenMagnifierEnabled[] = "settings.a11y.screen_magnifier";
7952a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A integer pref which determines what type of screen magnifier is enabled.
7962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Note that: 'screen_magnifier_type' had been used as string pref. Hence,
7972a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// we are using another name pref here.
7982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kScreenMagnifierType[] = "settings.a11y.screen_magnifier_type2";
7995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A double pref which determines a zooming scale of the screen magnifier.
8005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kScreenMagnifierScale[] = "settings.a11y.screen_magnifier_scale";
8015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether virtual keyboard is enabled.
8025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// TODO(hashimoto): Remove this pref.
8035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kVirtualKeyboardEnabled[] = "settings.a11y.virtual_keyboard";
8042a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A boolean pref which determines whether the accessibility menu shows
8052a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// regardless of the state of a11y features.
8062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu";
8075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which turns on Advanced Filesystem
8095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (USB support, SD card, etc).
8105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLabsAdvancedFilesystemEnabled[] =
8115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.labs.advanced_filesystem";
8125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which turns on the mediaplayer.
8145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer";
8155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref that turns on screen locker.
8175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableScreenLock[] = "settings.enable_screen_lock";
8185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref of whether to show mobile plan notifications.
8205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowPlanNotifications[] =
8215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.internet.mobile.show_plan_notifications";
8225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref of whether to show 3G promo notification.
8245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShow3gPromoNotification[] =
8255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.internet.mobile.show_3g_promo_notification";
8265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref that contains version where "What's new" promo was shown.
8285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version";
8295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8307dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// A boolean pref that controls whether proxy settings from shared network
8317dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// settings (accordingly from device policy) are applied or ignored.
8325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUseSharedProxies[] = "settings.use_shared_proxies";
8335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
834c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Power state of the current displays from the last run.
835c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDisplayPowerState[] = "settings.display.power_state";
8362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A dictionary pref that stores per display preferences.
8372a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisplayProperties[] = "settings.display.properties";
8385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A dictionary pref that specifies per-display layout/offset information.
8405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Its key is the ID of the display and its value is a dictionary for the
8415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// layout/offset information.
8425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSecondaryDisplays[] = "settings.display.secondary_displays";
8432a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
8442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A preference to keep track of the session start time. The value is set
8452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// after login. When the browser restarts after a crash, the pref value is not
8462a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// changed unless it appears corrupted (value unset, value lying in the future,
8472a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// zero value).
8482a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSessionStartTime[] = "session.start_time";
8492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
8502a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Holds the maximum session time in milliseconds. If this pref is set, the
8512a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// user is logged out when the maximum session time is reached. The user is
8522a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// informed about the remaining time by a countdown timer shown in the ash
8532a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// system tray.
8542a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSessionLengthLimit[] = "session.length_limit";
8552a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
8562a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Inactivity time in milliseconds while the system is on AC power before
8572a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// the screen should be dimmed, turned off, or locked, before an
8582a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// IdleActionImminent D-Bus signal should be sent, or before
859eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// kPowerAcIdleAction should be performed.  0 disables the delay (N/A for
8602a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// kPowerAcIdleDelayMs).
8612a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
8622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
8632a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
8642a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms";
8652a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
8662a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
8672a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Similar delays while the system is on battery power.
8682a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryScreenDimDelayMs[] =
8692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_screen_dim_delay_ms";
8702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryScreenOffDelayMs[] =
8712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_screen_off_delay_ms";
8722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryScreenLockDelayMs[] =
8732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_screen_lock_delay_ms";
8742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryIdleWarningDelayMs[] =
8752a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_idle_warning_delay_ms";
8762a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerBatteryIdleDelayMs[] =
8772a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "power.battery_idle_delay_ms";
8782a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
879eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Action that should be performed when the idle delay is reached while the
880eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// system is on AC power or battery power.
8812a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Values are from the chromeos::PowerPolicyController::Action enum.
882eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kPowerAcIdleAction[] = "power.ac_idle_action";
883eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kPowerBatteryIdleAction[] = "power.battery_idle_action";
8842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
8852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Action that should be performed when the lid is closed.
8862a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Values are from the chromeos::PowerPolicyController::Action enum.
8872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerLidClosedAction[] = "power.lid_closed_action";
8882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
8892a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Should audio and video activity be used to disable the above delays?
8902a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerUseAudioActivity[] = "power.use_audio_activity";
8912a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPowerUseVideoActivity[] = "power.use_video_activity";
8922a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
893c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Should extensions be able to use the chrome.power API to override
894c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// screen-related power management (including locking)?
895c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks";
896c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
8977d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Amount by which the screen-dim delay should be scaled while the system
8987d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// is in presentation mode. Values are limited to a minimum of 1.0.
8997d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kPowerPresentationScreenDimDelayFactor[] =
9007d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)    "power.presentation_screen_dim_delay_factor";
9017d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
902c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Amount by which the screen-dim delay should be scaled when user activity is
903c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// observed while the screen is dimmed or soon after the screen has been turned
904c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// off.  Values are limited to a minimum of 1.0.
905c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kPowerUserActivityScreenDimDelayFactor[] =
906c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "power.user_activity_screen_dim_delay_factor";
907c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
9082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The URL from which the Terms of Service can be downloaded. The value is only
9092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// honored for public accounts.
9102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kTermsOfServiceURL[] = "terms_of_service.url";
911c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
912c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Indicates that the Profile has made navigations that used a certificate
913c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// installed by the system administrator. If that is true then the local cache
914c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// of remote data is tainted (e.g. shared scripts), and future navigations
915c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// show a warning indicating that the organization may track the browsing
916c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// session.
917c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once";
918c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
919c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Indicates whether the remote attestation is enabled for the user.
920c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAttestationEnabled[] = "attestation.enabled";
921c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// The list of extensions allowed to use the platformKeysPrivate API for
922c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// remote attestation.
923c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist";
9247dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
9257dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// A boolean pref indicating whether the projection touch HUD is enabled or not.
9267dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled";
927ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
928ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// A pref to configure networks. Its value must be a list of
929ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// NetworkConfigurations according to the OpenNetworkConfiguration
930ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// specification.
931eee4ebda36ebfcb751dd752751c071ef22e33b33Torne (Richard Coles)// Currently, this pref is only used to store the policy. The user's
932eee4ebda36ebfcb751dd752751c071ef22e33b33Torne (Richard Coles)// configuration is still stored in Shill.
933ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kOpenNetworkConfiguration[] = "onc";
9345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif  // defined(OS_CHROMEOS)
9355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The disabled messages in IPC logging.
9375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
9385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if a Home button to open the Home pages should be
9405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// visible on the toolbar.
9415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowHomeButton[] = "browser.show_home_button";
9425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string value which saves short list of recently user selected encodings
9445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// separated with comma punctuation mark.
9455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
9465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Clear Browsing Data dialog preferences.
9485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
9495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
9505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteCache[] = "browser.clear_data.cache";
9515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteCookies[] = "browser.clear_data.cookies";
9525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeletePasswords[] = "browser.clear_data.passwords";
9535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteFormData[] = "browser.clear_data.form_data";
9545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
9555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeauthorizeContentLicenses[] =
9565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.clear_data.content_licenses";
9575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
9582a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kLastClearBrowsingDataTime[] =
9592a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "browser.last_clear_browsing_data_time";
9605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref to define the default values for using spellchecker.
9622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking";
9635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of names of the enabled labs experiments (see chrome/browser/labs.cc).
9655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
9665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref to define the default values for using auto spell correct.
9685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
9695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref to define the default setting for "block offensive words".
9715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The old key value is kept to avoid unnecessary migration code.
9725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpeechRecognitionFilterProfanities[] =
9735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.speechinput_censor_results";
9745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of speech recognition context names (extensions or websites) for which
9765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the tray notification balloon has already been shown.
9775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpeechRecognitionTrayNotificationShownContexts[] =
9785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.speechinput_tray_notification_shown_contexts";
9795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether history saving is disabled.
9815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
9825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Boolean controlling whether deleting browsing and download history is
9842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// permitted.
9852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled";
9862a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
9875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
9885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceSafeSearch[] = "settings.force_safesearch";
9895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
990eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
991eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Linux specific preference on whether we should match the system theme.
9925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUsesSystemTheme[] = "extensions.theme.use_system";
9935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemePackFilename[] = "extensions.theme.pack";
9955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeID[] = "extensions.theme.id";
9965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeImages[] = "extensions.theme.images";
9975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeColors[] = "extensions.theme.colors";
9985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeTints[] = "extensions.theme.tints";
9995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
10005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref which persists whether the extensions_ui is in developer mode
10025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (showing developer packing tools and extensions details)
10035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
10045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer pref that tracks the number of browser actions visible in the browser
10065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// actions toolbar.
10075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionToolbarSize[] = "extensions.toolbarsize";
10085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1009c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A preference that tracks browser action toolbar configuration. This is a list
1010c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// object stored in the Preferences file. The extensions are stored by ID.
1011c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kExtensionToolbar[] = "extensions.toolbar";
1012c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
10135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary pref that tracks which command belongs to which
10145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// extension + named command pair.
10155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionCommands[] = "extensions.commands";
10165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pref containing the directory for internal plugins as written to the plugins
10185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// list (below).
10195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
10205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing information (dictionaries) on plugins.
10225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsPluginsList[] = "plugins.plugins_list";
10235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing names of plugins that are disabled by policy.
10255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
10265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing exceptions to the list of plugins disabled by policy.
10285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsDisabledPluginsExceptions[] =
10295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "plugins.plugins_disabled_exceptions";
10305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing names of plugins that are enabled by policy.
10325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
10335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// When bundled NPAPI Flash is removed, if at that point it is enabled while
10355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
10365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// want to do so only once.
10375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash";
10385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10392a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// In the early stage of component-updated PPAPI Flash, we did field trials in
10402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// which it was set to disabled by default. The corresponding settings item may
10412a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// remain in some users' profiles. Currently it affects both the bundled and
10422a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// component-updated PPAPI Flash (since the two share the same enable/disable
10432a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// state). We want to remove this item to get those users to use PPAPI Flash.
10442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// We will want to do so only once.
10452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPluginsRemovedOldComponentPepperFlashSettings[] =
10462a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "plugins.removed_old_component_pepper_flash_settings";
10472a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
10485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
10495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether about:plugins is shown in the details mode or not.
10505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsShowDetails[] = "plugins.show_details";
10515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether outdated plugins are allowed or not.
10545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
10555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether plugins that require authorization should
10575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be always allowed or not.
10585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
10595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(ENABLE_PLUGIN_INSTALLATION)
10615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary holding plug-ins metadata.
10625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsMetadata[] = "plugins.metadata";
10635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Last update time of plug-ins resource cache.
10655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
10665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether we should check if we are the default browser
10695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// on start-up.
10705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCheckDefaultBrowser[] = "browser.check_default_browser";
10715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_WIN)
10735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// By default, setting Chrome as default during first run on Windows 8 will
10745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// trigger shutting down the current instance and spawning a new (Metro)
10755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Chrome. This boolean preference supresses this behaviour.
10765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSuppressSwitchToMetroModeOnSetDefault[] =
10775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.suppress_switch_to_metro_mode_on_set_default";
10785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Policy setting whether default browser check should be disabled and default
10815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser registration should take place.
10825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultBrowserSettingEnabled[] =
10835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.default_browser_setting_enabled";
10845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_MACOSX)
10865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether the application should show the info bar
10875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// asking the user to set up automatic updates when Keystone promotion is
10885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// required.
10895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowUpdatePromotionInfoBar[] =
10905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.show_update_promotion_info_bar";
10915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is false if we should show window manager decorations.  If
10945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// true, we draw a custom chrome frame (thicker title bar and blue border).
10955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
10965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The preferred position (which corner of screen) for desktop notifications.
10985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDesktopNotificationPosition[] =
10995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.desktop_notification_position";
11005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary of content settings applied to all hosts by default.
11025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultContentSettings[] = "profile.default_content_settings";
11035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean indicating whether the clear on exit pref was migrated to content
11055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// settings yet.
11065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsClearOnExitMigrated[] =
11075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.clear_on_exit_migrated";
11085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Version of the pattern format used to define content settings.
11105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsVersion[] = "profile.content_settings.pref_version";
11115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Patterns for mapping origins to origin related settings. Default settings
11132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// will be applied to origins that don't match any of the patterns. The pattern
11142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// format used is defined by kContentSettingsVersion.
11155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsPatternPairs[] =
11165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.pattern_pairs";
11175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Version of the content settings whitelist.
11195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsDefaultWhitelistVersion[] =
11205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.whitelist_version";
11215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
11235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Which plugins have been whitelisted manually by the user.
11245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsPluginWhitelist[] =
11255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.plugin_whitelist";
11265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
11275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true if we should unconditionally block third-party cookies,
11295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// regardless of other content settings.
11305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
11315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when all locally stored site data (e.g. cookies, local
11335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// storage, etc..) should be deleted on exit.
11345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit";
11355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Double that indicates the default zoom level.
11375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultZoomLevel[] = "profile.default_zoom_level";
11385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary that maps hostnames to zoom levels.  Hosts not in this pref will
11405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be displayed at the default zoom level.
11415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels";
11425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11437dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// A dictionary that tracks the default data model to use for each section of
11447dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// the dialog.
11457dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kAutofillDialogAutofillDefault[] = "autofill.data_model_default";
114690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
1147868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Whether a user has ever paid with Wallet via the autofill dialog.
1148868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kAutofillDialogHasPaidWithWallet[] = "autofill.has_paid_with_wallet";
1149868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
11502a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Whether a user opted out of making purchases with Google Wallet; changed via
11512a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// the autofill dialog's account chooser and set explicitly on dialog submission
11522a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// (but not cancel). If this isn't set, the dialog assumes it's the first run.
11532a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet";
11545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11557dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// The number of times the dialog has been shown (all time).
11567dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kAutofillDialogShowCount[] = "autofill.show_count";
11577dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
11587dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// The number of times the generated credit card bubble has been shown.
11597dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kAutofillGeneratedCardBubbleTimesShown[] =
11607dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch    "autofill.generated_card_bubble_times_shown";
11617d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
11624311e82a78ceafbe0585f51d4c8a86df9f21aa0dBen Murdoch// A dictionary that tracks the defaults to be set on the next invocation
11634311e82a78ceafbe0585f51d4c8a86df9f21aa0dBen Murdoch// of the requestAutocomplete/Autocheckout dialog.
11644311e82a78ceafbe0585f51d4c8a86df9f21aa0dBen Murdochconst char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults";
11654311e82a78ceafbe0585f51d4c8a86df9f21aa0dBen Murdoch
11665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Modifying bookmarks is completely disabled when this is set to false.
11675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEditBookmarksEnabled[] = "bookmarks.editing_enabled";
11685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when the translate feature is enabled.
11705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableTranslate[] = "translate.enabled";
11715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
11735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPinnedTabs[] = "pinned_tabs";
11745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
11755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
11777d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Boolean that controls the enabled-state of Geolocation in content.
11785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeolocationEnabled[] = "geolocation.enabled";
11795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
11805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11817d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)#if defined(ENABLE_GOOGLE_NOW)
11827d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Boolean that is true when Google services can use the user's location.
11837d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kGoogleGeolocationAccessEnabled[] =
11847d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)    "googlegeolocationaccess.enabled";
11857d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)#endif
11867d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
11872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The default audio capture device used by the Media content setting.
11882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device";
11892a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
11902a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The default video capture device used by the Media content setting.
11912a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device";
11925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preference to disable 3D APIs (WebGL, Pepper 3D).
11945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisable3DAPIs[] = "disable_3d_apis";
11955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to enable hyperlink auditing ("<a ping>").
11975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableHyperlinkAuditing[] = "enable_a_ping";
11985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to enable sending referrers.
12005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableReferrers[] = "enable_referrers";
12015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to send the DNT header.
12035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableDoNotTrack[] = "enable_do_not_track";
12045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean to enable reporting memory info to page.
12065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableMemoryInfo[] = "enable_memory_info";
12075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// GL_VENDOR string.
12092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kGLVendorString[] = "gl_vendor_string";
12102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
12112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// GL_RENDERER string.
12122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kGLRendererString[] = "gl_renderer_string";
12132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
12142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// GL_VERSION string.
12152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kGLVersionString[] = "gl_version_string";
12162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
12175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import bookmarks from the default browser
12185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// on first run.
12195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportBookmarks[] = "import_bookmarks";
12205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the browsing history from the
12225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// default browser on first run.
12235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportHistory[] = "import_history";
12245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the homepage from the default
12265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser on first run.
12275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportHomepage[] = "import_home_page";
12285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the search engine from the default
12305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser on first run.
12315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportSearchEngine[] = "import_search_engine";
12325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the saved passwords from the default
12345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser on first run.
12355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportSavedPasswords[] = "import_saved_passwords";
12365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX)
12385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The local profile id for this profile.
12395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLocalProfileId[] = "profile.local_profile_id";
12405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether passwords in external services (e.g. GNOME Keyring) have been tagged
12425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// with the local profile id yet. (Used for migrating to tagged passwords.)
12435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPasswordsUseLocalProfileId[] =
12445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.passwords_use_local_profile_id";
12455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
12465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Profile avatar and name
12485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileAvatarIndex[] = "profile.avatar_index";
12495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileName[] = "profile.name";
12505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12512a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Whether the profile is managed.
12522a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kProfileIsManaged[] = "profile.is_managed";
12532a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
12542385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch// The managed user ID.
12552385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdochconst char kManagedUserId[] = "profile.managed_user_id";
12562385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
12575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Indicates if we've already shown a notification that high contrast
12585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// mode is on, recommending high-contrast extensions and themes.
12595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInvertNotificationShown[] = "invert_notification_version_2_shown";
12605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether printing is enabled.
12625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrintingEnabled[] = "printing.enabled";
12635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether print preview is disabled.
12655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
12665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12672a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// An integer pref specifying the fallback behavior for sites outside of content
12682a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// packs. One of:
12692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 0: Allow (does nothing)
12702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 1: Warn.
12712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 2: Block.
12722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDefaultManagedModeFilteringBehavior[] =
12732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "profile.managed.default_filtering_behavior";
12742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1275eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Whether this user is permitted to create managed users.
1276eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kManagedUserCreationAllowed[] =
1277eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "profile.managed_user_creation_allowed";
1278eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
127990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// List pref containing the users managed by this user.
128090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kManagedUsers[] = "profile.managed_users";
128190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
12822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// List pref containing the extension ids which are not allowed to send
12832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// notifications to the message center.
12842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kMessageCenterDisabledExtensionIds[] =
12852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "message_center.disabled_extension_ids";
12862a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1287c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// List pref containing the system component ids which are not allowed to send
1288c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// notifications to the message center.
1289c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kMessageCenterDisabledSystemComponentIds[] =
1290c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "message_center.disabled_system_component_ids";
1291c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
1292eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// List pref containing the system component ids which are allowed to send
1293eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// notifications to the message center.
1294eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochextern const char kMessageCenterEnabledSyncNotifierIds[] =
1295eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "message_center.enabled_sync_notifier_ids";
1296eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
12975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// *************** LOCAL STATE ***************
12985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These are attached to the machine/installation
12995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1300ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// A pref to configure networks device-wide. Its value must be a list of
1301ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// NetworkConfigurations according to the OpenNetworkConfiguration
1302ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// specification.
1303eee4ebda36ebfcb751dd752751c071ef22e33b33Torne (Richard Coles)// Currently, this pref is only used to store the policy. The user's
1304eee4ebda36ebfcb751dd752751c071ef22e33b33Torne (Richard Coles)// configuration is still stored in Shill.
1305ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kDeviceOpenNetworkConfiguration[] = "device_onc";
1306ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
13075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Directory of the last profile used.
13085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileLastUsed[] = "profile.last_used";
13095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of directories of the profiles last active.
13115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilesLastActive[] = "profile.last_active_profiles";
13125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Total number of profiles created for this Chrome build. Used to tag profile
13145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// directories.
13155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilesNumCreated[] = "profile.profiles_created";
13165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the version of Chrome that the profile was created by.
13185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If profile was created before this feature was added, this pref will default
13195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to "1.0.0.0".
13205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileCreatedByVersion[] = "profile.created_by_version";
13215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A map of profile data directory to cached information. This cache can be
13235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// used to display information about profiles without actually having to load
13245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// them.
13255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileInfoCache[] = "profile.info_cache";
13265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for SSLConfigServicePref.
13285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
13293240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdochconst char kCertRevocationCheckingRequiredLocalAnchors[] =
13303240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch    "ssl.rev_checking.required_for_local_anchors";
13315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSSLVersionMin[] = "ssl.version_min";
13325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSSLVersionMax[] = "ssl.version_max";
13335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
13345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableOriginBoundCerts[] = "ssl.origin_bound_certs.enabled";
13355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
1336c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEnableUnrestrictedSSL3Fallback[] =
1337c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "ssl.unrestricted_ssl3_fallback.enabled";
1338c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
1339c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A boolean pref of the EULA accepted flag.
1340c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEulaAccepted[] = "EulaAccepted";
13415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The metrics client GUID, entropy source and session ID.
13435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsClientID[] = "user_experience_metrics.client_id";
13445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsSessionID[] = "user_experience_metrics.session_id";
13455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsLowEntropySource[] =
13465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.low_entropy_source";
1347b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)const char kMetricsPermutedEntropyCache[] =
1348b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)    "user_experience_metrics.permuted_entropy_cache";
13495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Date/time when the current metrics profile ID was created
13515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (which hopefully corresponds to first run).
13525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsClientIDTimestamp[] =
13535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.client_id_timestamp";
13545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether or not crash reporting and metrics reporting
13565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// are sent over the network for analysis.
13575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsReportingEnabled[] =
13585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.reporting_enabled";
13595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1360b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// Boolean that specifies whether or not crash reports are sent
1361b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// over the network for analysis.
1362b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)#if defined(OS_ANDROID)
1363b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)const char kCrashReportingEnabled[] =
1364b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)    "user_experience_metrics_crash.reporting_enabled";
1365b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)#endif
1366b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)
13675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Array of strings that are each UMA logs that were supposed to be sent in the
13685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// first minute of a browser session. These logs include things like crash count
1369c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// info, etc.
1370c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kMetricsInitialLogs[] =
13715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.initial_logs_as_protobufs";
13725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Array of strings that are each UMA logs that were not sent because the
13745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser terminated before these accumulated metrics could be sent.  These
13755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// logs typically include histograms and memory reports, as well as ongoing
1376c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// user activities.
1377c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kMetricsOngoingLogs[] =
13785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.ongoing_logs_as_protobufs";
13795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when bookmark prompt is enabled.
13815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBookmarkPromptEnabled[] = "bookmark_prompt_enabled";
13825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times bookmark prompt displayed.
13845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBookmarkPromptImpressionCount[] =
13855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "bookmark_prompt_impression_count";
13865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 64-bit integer serialization of the base::Time from the last successful seed
13882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// fetch (i.e. when the Variations server responds with 200 or 304).
13892a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kVariationsLastFetchTime[] = "variations_last_fetch_time";
13902a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
13912a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// String for the restrict parameter to be appended to the variations URL.
13922a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kVariationsRestrictParameter[] = "variations_restrict_parameter";
13932a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
13945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String serialized form of variations seed protobuf.
13955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kVariationsSeed[] = "variations_seed";
13965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 64-bit integer serialization of the base::Time from the last seed received.
13985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kVariationsSeedDate[] = "variations_seed_date";
13995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14007dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// SHA-1 hash of the serialized variations seed data.
14017dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kVariationsSeedHash[] = "variations_seed_hash";
14025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// True if the previous run of the program exited cleanly.
14045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityExitedCleanly[] =
14055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.exited_cleanly";
14065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Version string of previous run, which is used to assure that stability
14085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// metrics reported under current version reflect stability of the same version.
14095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityStatsVersion[] =
14105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.stats_version";
14115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Build time, in seconds since an epoch, which is used to assure that stability
14135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// metrics reported reflect stability of the same build.
14145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityStatsBuildTime[] =
14155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.stats_buildtime";
14165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// False if we received a session end and either we crashed during processing
14185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the session end or ran out of time and windows terminated us.
14195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilitySessionEndCompleted[] =
14205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.session_end_completed";
14215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the application was launched since last report.
14235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityLaunchCount[] =
14245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.launch_count";
14255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the application exited uncleanly since the last report.
14275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityCrashCount[] =
14285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.crash_count";
14295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the session end did not complete.
14315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityIncompleteSessionEndCount[] =
14325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.incomplete_session_end_count";
14335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times a page load event occurred since the last report.
14355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPageLoadCount[] =
14365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.page_load_count";
14375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times a renderer process crashed since the last report.
14395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityRendererCrashCount[] =
14405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.renderer_crash_count";
14415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times an extension renderer process crashed since the last report.
14435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityExtensionRendererCrashCount[] =
14445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.extension_renderer_crash_count";
14455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Time when the app was last launched, in seconds since the epoch.
14475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityLaunchTimeSec[] =
14485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.launch_time_sec";
14495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Time when the app was last known to be running, in seconds since
14515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the epoch.
14525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityLastTimestampSec[] =
14535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.last_timestamp_sec";
14545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This is the location of a list of dictionaries of plugin stability stats.
14565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginStats[] =
14575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.plugin_stats2";
14585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the renderer has become non-responsive since the last
14605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// report.
14615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityRendererHangCount[] =
14625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.renderer_hang_count";
14635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Total number of child process crashes (other than renderer / extension
14655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer ones, and plugin children, which are counted separately) since the
14665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last report.
14675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityChildProcessCrashCount[] =
14685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.child_process_crash_count";
14695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Chrome OS, total number of non-Chrome user process crashes
14715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// since the last report.
14725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityOtherUserCrashCount[] =
14735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.other_user_crash_count";
14745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Chrome OS, total number of kernel crashes since the last report.
14765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityKernelCrashCount[] =
14775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.kernel_crash_count";
14785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Chrome OS, total number of unclean system shutdowns since the
14805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last report.
14815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilitySystemUncleanShutdownCount[] =
14825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.system_unclean_shutdowns";
14835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the browser has been able to register crash reporting.
14855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityBreakpadRegistrationSuccess[] =
14865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.breakpad_registration_ok";
14875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the browser has failed to register crash reporting.
14895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityBreakpadRegistrationFail[] =
14905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.breakpad_registration_fail";
14915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the browser has been run under a debugger.
14935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityDebuggerPresent[] =
14945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.debugger_present";
14955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the browser has not been run under a debugger.
14975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityDebuggerNotPresent[] =
14985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.debugger_not_present";
14995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The keys below are used for the dictionaries in the
15015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kStabilityPluginStats list.
15025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginName[] = "name";
15035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginLaunches[] = "launches";
15045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginInstances[] = "instances";
15055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginCrashes[] = "crashes";
15065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginLoadingErrors[] = "loading_errors";
15075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The keys below are strictly increasing counters over the lifetime of
15095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a chrome installation. They are (optionally) sent up to the uninstall
15107dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// survey in the event of uninstallation. The installation date is used by some
15117dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// opt-in services such as Wallet and UMA.
15122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kInstallDate[] = "uninstall_metrics.installation_date2";
15135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallMetricsPageLoadCount[] =
15145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.page_load_count";
15155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count";
15165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec";
15175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallLastLaunchTimeSec[] =
15185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.last_launch_time_sec";
15195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallLastObservedRunTimeSec[] =
15205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.last_observed_running_time_sec";
15215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1522c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// String containing the version of Chrome for which Chrome will not prompt the
1523c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// user about setting Chrome as the default browser.
1524c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kBrowserSuppressDefaultBrowserPrompt[] =
1525c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "browser.suppress_default_browser_prompt_for_version";
1526c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
15275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the browser
15285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// window to restore on startup.
15295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBrowserWindowPlacement[] = "browser.window_placement";
15305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the task
15325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// manager window to restore on startup.
15335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
15345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the keyword
15365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// editor window to restore on startup.
15375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kKeywordEditorWindowPlacement[] = "keyword_editor.window_placement";
15385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the preferences
15405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// window to restore on startup.
15415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPreferencesWindowPlacement[] = "preferences.window_placement";
15425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer specifying the total number of bytes to be used by the
15445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer's in-memory cache of objects.
15455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMemoryCacheSize[] = "renderer.memory_cache.size";
15465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies where to download files to by default.
15485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDownloadDefaultDirectory[] = "download.default_directory";
15495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that records if the download directory was changed by an
15515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// upgrade a unsafe location to a safe location.
15525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDownloadDirUpgraded[] = "download.directory_upgrade";
15535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies where to save html files to by default.
15555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
15565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The type used to save the page. See the enum SavePackage::SavePackageType in
15585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the chrome/browser/download/save_package.h for the possible values.
15595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSaveFileType[] = "savefile.type";
15605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies the last directory that was chosen for uploading
15625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// or opening a file.
15635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSelectFileLastDirectory[] = "selectfile.last_directory";
15645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies if file selection dialogs are shown.
15665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
15675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Map of default tasks, associated by MIME type.
15695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultTasksByMimeType[] =
15705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "filebrowser.tasks.default_by_mime_type";
15715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Map of default tasks, associated by file suffix.
15735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultTasksBySuffix[] =
15745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "filebrowser.tasks.default_by_suffix";
15755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Extensions which should be opened upon completion.
15775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
15785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer which specifies the frequency in milliseconds for detecting whether
15805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// plugin windows are hung.
15815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
15825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer which specifies the timeout value to be used for SendMessageTimeout
15845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to detect a hung plugin window.
15855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginMessageResponseTimeout[] =
15865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.plugin_message_response_timeout";
15875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which represents the dictionary name for our spell-checker.
15895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpellCheckDictionary[] = "spellcheck.dictionary";
15905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref indicating whether the spelling confirm dialog has been shown.
15925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpellCheckConfirmDialogShown[] = "spellcheck.confirm_dialog_shown";
15935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which represents whether we use the spelling service.
15955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
15965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary of schemes used by the external protocol handler.
15985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value is true if the scheme must be ignored.
15995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
16005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Keys used for MAC handling of SafeBrowsing requests.
16025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
16035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
16045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer that specifies the index of the tab the user was on when they
16065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last visited the options window.
16075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
16085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer that specifies the index of the tab the user was on when they
16105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last visited the content settings window.
16115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsWindowLastTabIndex[] =
16125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "content_settings_window.last_tab_index";
16135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer that specifies the index of the tab the user was on when they
16155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last visited the Certificate Manager window.
16165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCertificateManagerWindowLastTabIndex[] =
16175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "certificate_manager_window.last_tab_index";
16185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Integer that specifies if the first run bubble should be shown.
16205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This preference is only registered by the first-run procedure.
16212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
16225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the last known Google URL.  We re-detect this on startup in
16245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// most cases, and use it to send traffic to the correct Google host or with the
16255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// correct Google domain/country code for whatever location the user is in.
16265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLastKnownGoogleURL[] = "browser.last_known_google_url";
16275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the last prompted Google URL to the user.
16295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If the user is using .x TLD for Google URL and gets prompted about .y TLD
16305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for Google URL, and says "no", we should leave the search engine set to .x
16315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// but not prompt again until the domain changes away from .y.
16325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLastPromptedGoogleURL[] = "browser.last_prompted_google_url";
16335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the last known intranet redirect URL, if any.  See
16355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// intranet_redirect_detector.h for more information.
16365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
16375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer containing the system Country ID the first time we checked the
16395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// template URL prepopulate data.  This is used to avoid adding a whole bunch of
16405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// new search engine choices if prepopulation runs when the user's Country ID
16415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// differs from their previous Country ID.  This pref does not exist until
16425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// prepopulation has been run at least once.
16435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCountryIDAtInstall[] = "countryid_at_install";
16445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE. Same as above, but uses the Windows-specific GeoID value instead.
16455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Updated if found to the above key.
16465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeoIDAtInstall[] = "geoid_at_install";
16475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An enum value of how the browser was shut down (see browser_shutdown.h).
16495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShutdownType[] = "shutdown.type";
16505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of processes that were open when the user shut down.
16515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShutdownNumProcesses[] = "shutdown.num_processes";
16525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of processes that were shut down using the slow path.
16535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
16545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to restart the current Chrome session automatically as the last thing
16565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// before shutting everything down.
16575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
16585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set before autorestarting Chrome, cleared on clean exit.
16605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWasRestarted[] = "was.restarted";
16615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_WIN)
16635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Windows 8 chrome can restart in desktop or in metro mode.
16645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestartSwitchMode[] = "restart.switch_mode";
16652a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
16665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Placeholder preference for disabling voice / video chat if it is ever added.
16685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Currently, this does not change any behavior.
16695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableVideoAndChat[] = "disable_video_chat";
16705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether Extensions are enabled.
16725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableExtensions[] = "extensions.disabled";
16735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether the plugin finder that lets you install missing plug-ins is enabled.
16755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
16765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer boolean representing the width (in pixels) of the container for
16785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser actions.
16795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBrowserActionContainerWidth[] =
16805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "extensions.browseractions.container.width";
16815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Time of the last, and next scheduled, extensions auto-update checks.
16832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kLastExtensionsUpdateCheck[] = "extensions.autoupdate.last_check";
16842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kNextExtensionsUpdateCheck[] = "extensions.autoupdate.next_check";
16852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
16862a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Whether we have run the extension-alert system (see ExtensionGlobalError)
16872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// at least once for this profile.
16882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kExtensionAlertsInitializedPref[] = "extensions.alerts.initialized";
16892a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
16905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The sites that are allowed to install extensions. These sites should be
16915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// allowed to install extensions without the scary dangerous downloads bar.
16925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Also, when off-store-extension installs are disabled, these sites are exempt.
16935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionAllowedInstallSites[] = "extensions.allowed_install_sites";
16945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16952a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A list of allowed extension types. Extensions can only be installed if their
16962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// type is on this whitelist or alternatively on kExtensionInstallAllowList or
16972a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// kExtensionInstallForceList.
16982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kExtensionAllowedTypes[] = "extensions.allowed_types";
16992a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
17002a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Version number of last blacklist check.
17012a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kExtensionBlacklistUpdateVersion[] =
17022a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "extensions.blacklistupdate.version";
17032a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
17045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A whitelist of extension ids the user can install: exceptions from the
17055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// following blacklist.
17065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionInstallAllowList[] = "extensions.install.allowlist";
17075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A blacklist, containing extensions the user cannot install. This list can
17095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// contain "*" meaning all extensions. This list should not be confused with the
17105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// extension blacklist, which is Google controlled.
17115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionInstallDenyList[] = "extensions.install.denylist";
17125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A list containing extensions that Chrome will silently install
17145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// at startup time. It is a list of strings, each string contains
17155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// an extension ID and an update URL, delimited by a semicolon.
17165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This preference is set by an admin policy, and meant to be only
17175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// accessed through extensions::ExternalPolicyProvider.
17185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionInstallForceList[] = "extensions.install.forcelist";
17195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Indicates on-disk data might have skeletal data that needs to be cleaned
17212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// on the next start of the browser.
17222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kExtensionStorageGarbageCollect[] =
17232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "extensions.storage.garbagecollect";
17245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Keeps track of which sessions are collapsed in the Other Devices menu.
17265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
17275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// New Tab Page URLs that should not be shown as most visited thumbnails.
17295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
17305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Last time of update of promo_resource_cache.
17325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update";
17335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Serves tips for the NTP.
17355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpTipsResourceServer[] = "ntp.tips_resource_server";
17365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Serves dates to determine display of elements on the NTP.
17385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpDateResourceServer[] = "ntp.date_resource_server";
17395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Which bookmarks folder should be visible on the new tab page v4.
17415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
17425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Which page should be visible on the new tab page v4
17445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpShownPage[] = "ntp.shown_page";
17455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// True if a desktop sync session was found for this user.
17475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found";
17485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean indicating whether the web store is active for the current locale.
17505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled";
17515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The id of the last web store promo actually displayed on the NTP.
17535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoLastId[] = "ntp.webstore_last_promo_id";
17545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The id of the current web store promo.
17565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoId[] = "ntp.webstorepromo.id";
17575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The header line for the NTP web store promo.
17595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoHeader[] = "ntp.webstorepromo.header";
17605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The button text for the NTP web store promo.
17625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoButton[] = "ntp.webstorepromo.button";
17635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The button link for the NTP web store promo.
17655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoLink[] = "ntp.webstorepromo.link";
17665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The image URL for the NTP web store promo logo.
17685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoLogo[] = "ntp.webstorepromo.logo";
17695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The original URL for the NTP web store promo logo.
17715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoLogoSource[] = "ntp.webstorepromo.logo_source";
17725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The "hide this" link text for the NTP web store promo.
17745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoExpire[] = "ntp.webstorepromo.expire";
17755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies what users should maximize the NTP web store promo.
17775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoUserGroup[] = "ntp.webstorepromo.usergroup";
17785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Customized app page names that appear on the New Tab Page.
17805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpAppPageNames[] = "ntp.app_page_names";
17815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17827dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// A private RSA key for ADB handshake.
17837dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kDevToolsAdbKey[] = "devtools.adb_key";
17847dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
17855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsDisabled[] = "devtools.disabled";
17865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string specifying the dock location (either 'bottom' or 'right').
17885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsDockSide[] = "devtools.dock_side";
17895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Maps of files edited locally using DevTools.
17915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsEditedFiles[] = "devtools.edited_files";
17925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17932a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// List of file system paths added in DevTools.
17942a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths";
17952a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
17965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer location of the horizontal split bar in the browser view.
17975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsHSplitLocation[] = "devtools.split_location";
17985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether dev tools window should be opened docked.
18005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsOpenDocked[] = "devtools.open_docked";
18015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18022385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch// A boolean specifying whether port forwarding should be enabled.
18032385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdochconst char kDevToolsPortForwardingEnabled[] =
18042385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch    "devtools.port_forwarding_enabled";
18052385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
18062385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch// A dictionary of port->location pairs for port forwarding.
18072385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdochconst char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config";
18082385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
18095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
18105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether remote dev tools debugging is enabled.
18115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
18125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
18135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer location of the vertical split bar in the browser view.
18155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsVSplitLocation[] = "devtools.v_split_location";
18165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(OS_ANDROID) || defined(OS_IOS)
18185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether a SPDY proxy is enabled.
18192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSpdyProxyAuthEnabled[] = "spdy_proxy.enabled";
1820b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)const char kSpdyProxyAuthWasEnabledBefore[] = "spdy_proxy.was_enabled_before";
18212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif  // defined(OS_ANDROID) || defined(OS_IOS)
18222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
18232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Boolean which stores if the user is allowed to signin to chrome.
18242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSigninAllowed[] = "signin.allowed";
18255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 64-bit integer serialization of the base::Time when the last sync occurred.
18275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncLastSyncedTime[] = "sync.last_synced_time";
18285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean specifying whether the user finished setting up sync.
18305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncHasSetupCompleted[] = "sync.has_setup_completed";
18315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean specifying whether to automatically sync all data types (including
18335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// future ones, as they're added).  If this is true, the following preferences
18345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored.
18355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncKeepEverythingSynced[] = "sync.keep_everything_synced";
18365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Booleans specifying whether the user has selected to sync the following
18385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// datatypes.
18395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncAppNotifications[] = "sync.app_notifications";
18405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncAppSettings[] = "sync.app_settings";
18415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncApps[] = "sync.apps";
18425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncAutofillProfile[] = "sync.autofill_profile";
1843c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncAutofill[] = "sync.autofill";
1844c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncBookmarks[] = "sync.bookmarks";
1845c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncDictionary[] = "sync.dictionary";
18465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncExtensionSettings[] = "sync.extension_settings";
1847c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncExtensions[] = "sync.extensions";
1848c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncFaviconImages[] = "sync.favicon_images";
1849c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncFaviconTracking[] = "sync.favicon_tracking";
1850c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncHistoryDeleteDirectives[] = "sync.history_delete_directives";
1851c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncManagedUserSettings[] = "sync.managed_user_settings";
185290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kSyncManagedUsers[] = "sync.managed_users";
1853c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncPasswords[] = "sync.passwords";
1854c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncPreferences[] = "sync.preferences";
1855c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncPriorityPreferences[] = "sync.priority_preferences";
18565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncSearchEngines[] = "sync.search_engines";
18575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncSessions[] = "sync.sessions";
18582a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSyncSyncedNotifications[] = "sync.synced_notifications";
18592a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSyncTabs[] = "sync.tabs";
1860c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncThemes[] = "sync.themes";
1861c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncTypedUrls[] = "sync.typed_urls";
18625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean used by enterprise configuration management in order to lock down
18645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// sync.
18655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncManaged[] = "sync.managed";
18665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean to prevent sync from automatically starting up.  This is
18685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// used when sync is disabled by the user via the privacy dashboard.
18695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncSuppressStart[] = "sync.suppress_start";
18705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of the currently acknowledged set of sync types, used to figure out
18725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// if a new sync type has rolled out so we can notify the user.
18735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncAcknowledgedSyncTypes[] = "sync.acknowledged_types";
18745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary from sync model type (as an int) to max invalidation
18765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// version (int64 represented as a string).
18775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncMaxInvalidationVersions[] = "sync.max_invalidation_versions";
18785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GUID session sync will use to identify this client, even across sync
18805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// disable/enable events.
18815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncSessionsGUID[] = "sync.session_sync_guid";
18825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// An ID to uniquely identify this client to the invalidator service.
18842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kInvalidatorClientId[] = "invalidator.client_id";
18852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
18865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Opaque state from the invalidation subsystem that is persisted via prefs.
18875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value is base 64 encoded.
18885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInvalidatorInvalidationState[] = "invalidator.invalidation_state";
18895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of {source, name, max invalidation version} tuples. source is an int,
18915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// while max invalidation version is an int64; both are stored as string
18925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// representations though.
18935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInvalidatorMaxInvalidationVersions[] =
18945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "invalidator.max_invalidation_versions";
18955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string that can be used to restore sync encryption infrastructure on
18975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// startup so that the user doesn't need to provide credentials on each start.
18985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncEncryptionBootstrapToken[] =
18995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "sync.encryption_bootstrap_token";
19005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Same as kSyncEncryptionBootstrapToken, but derived from the keystore key,
19025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// so we don't have to do a GetKey command at restart.
19035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncKeystoreEncryptionBootstrapToken[] =
19045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "sync.keystore_encryption_bootstrap_token";
19055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean tracking whether the user chose to specify a secondary encryption
19075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// passphrase.
19085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncUsingSecondaryPassphrase[] = "sync.using_secondary_passphrase";
19095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String the identifies the last user that logged into sync and other
19115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// google services. As opposed to kGoogleServicesUsername, this value is not
19125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// cleared on signout, but while the user is signed in the two values will
19135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be the same.
19145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGoogleServicesLastUsername[] = "google.services.last_username";
19155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that identifies the current user logged into sync and other google
19175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// services.
19185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGoogleServicesUsername[] = "google.services.username";
19195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Local state pref containing a string regex that restricts which accounts
19215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// can be used to log in to chrome (e.g. "*@google.com"). If missing or blank,
19225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// all accounts are allowed (no restrictions).
19235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGoogleServicesUsernamePattern[] =
19245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "google.services.username_pattern";
19255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
1927bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// Tracks the number of times that we have shown the sign in promo at startup.
1928bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSignInPromoStartupCount[] = "sync_promo.startup_count";
19295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1930bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// Boolean tracking whether the user chose to skip the sign in promo.
1931bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSignInPromoUserSkipped[] = "sync_promo.user_skipped";
19325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1933bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// Boolean that specifies if the sign in promo is allowed to show on first run.
19345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This preference is specified in the master preference file to suppress the
1935bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// sign in promo for some installations.
1936bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSignInPromoShowOnFirstRunAllowed[] =
19375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "sync_promo.show_on_first_run_allowed";
19385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies if we should show a bubble in the new tab page.
19405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The bubble is used to confirm that the user is signed into sync.
1941bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
19425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
19435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Time when the user's GAIA info was last updated (represented as an int64).
19455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
19465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL from which the GAIA profile picture was downloaded. This is cached to
19485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// prevent the same picture from being downloaded multiple times.
19495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url";
19505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Create web application shortcut dialog preferences.
19525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
19535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
19545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebAppCreateInQuickLaunchBar[] =
19555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.web_app.create_in_quick_launch_bar";
19565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary that maps Geolocation network provider server URLs to
19585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// corresponding access token.
19595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeolocationAccessToken[] = "geolocation.access_token";
19605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether to allow firewall traversal while trying to
19625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// establish the initial connection from the client or host.
19635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostFirewallTraversal[] =
19645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_firewall_traversal";
19655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether 2-factor auth should be required when connecting
19675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to a host (instead of a PIN).
19685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostRequireTwoFactor[] =
19695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_require_two_factor";
19705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the domain name that hosts must belong to. If blank, then
19725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// hosts can belong to any domain.
19735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostDomain[] = "remote_access.host_domain";
19745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the domain name of the Chromoting Directory.
19765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used by Chromoting host and client.
19775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostTalkGadgetPrefix[] =
19785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_talkgadget_prefix";
19795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether curtaining is required when connecting to a host.
19815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostRequireCurtain[] =
19825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_require_curtain";
19835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1984a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Boolean controlling whether curtaining is required when connecting to a host.
1985a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kRemoteAccessHostAllowClientPairing[] =
1986a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "remote_access.host_allow_client_pairing";
1987a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
19885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The last used printer and its settings.
19895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrintPreviewStickySettings[] =
19905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "printing.print_preview_sticky_settings";
19915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The root URL of the cloud print service.
19925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintServiceURL[] = "cloud_print.service_url";
19935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL to use to sign in to cloud print.
19955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSigninURL[] = "cloud_print.signin_url";
19965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The last requested size of the dialog as it was closed.
19985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
19995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
20005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSigninDialogWidth[] =
20015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "cloud_print.signin_dialog_size.width";
20025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSigninDialogHeight[] =
20035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "cloud_print.signin_dialog_size.height";
20045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The list of BackgroundContents that should be loaded when the browser
20065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// launches.
20075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRegisteredBackgroundContents[] = "background_contents.registered";
20085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
20105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An int that stores how often we've shown the "Chrome is configured to
20115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// auto-launch" infobar.
20125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
20135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
20145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that lists supported HTTP authentication schemes.
20165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthSchemes[] = "auth.schemes";
20175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to disable CNAME lookups when generating
20195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Kerberos SPN.
20205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableAuthNegotiateCnameLookup[] =
20215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "auth.disable_negotiate_cname_lookup";
20225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to include the port in a generated Kerberos
20245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// SPN.
20255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
20265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whitelist containing servers for which Integrated Authentication is enabled.
20285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthServerWhitelist[] = "auth.server_whitelist";
20295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whitelist containing servers Chrome is allowed to do Kerberos delegation
20315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// with.
20325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthNegotiateDelegateWhitelist[] =
20335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "auth.negotiate_delegate_whitelist";
20345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that specifies the name of a custom GSSAPI library to load.
20365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
20375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that specifies the origin allowed to use SpdyProxy
20395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// authentication, if any.
20402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSpdyProxyAuthOrigin[] = "auth.spdyproxy.origin";
20415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to allow basic auth prompting on cross-
20435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// domain sub-content requests.
20445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
20455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20462a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Boolean that specifies whether the built-in asynchronous DNS client is used.
20472a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kBuiltInDnsClientEnabled[] = "async_dns.enabled";
20482a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
20495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An int64 pref that contains the total size of all HTTP content that has been
20505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// received from the network.
20515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHttpReceivedContentLength[] = "http_received_content_length";
20525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An int64 pref that contains the total original size of all HTTP content that
20545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// was received over the network.
20555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHttpOriginalContentLength[] = "http_original_content_length";
20565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20572a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(OS_ANDROID) || defined(OS_IOS)
20582a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A List pref that contains daily totals of the original size of all HTTP
20592a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// that was received over the network.
20602a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDailyHttpOriginalContentLength[] =
20612a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "data_reduction.daily_original_length";
20622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
20632a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// A List pref that contains daily totals of the size of all HTTP content that
20642a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// has been received from the network.
20652a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDailyHttpReceivedContentLength[] =
20662a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "data_reduction.daily_received_length";
20672a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
2068bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// A List pref that contains daily totals of the size of all HTTP content that
2069bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// has been received via the data reduction proxy.
2070bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kDailyHttpReceivedContentLengthViaDataReductionProxy[] =
2071bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch    "data_reduction.daily_received_length_via_data_reduction_proxy";
2072bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch
2073bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// A List pref that contains daily totals of the size of all HTTP content that
2074bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// has been received when the data reduction proxy is enabled.
2075bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// Note: this is different from
2076bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// kDailyHttpReceivedContentLengthViaDataReductionProxy because content
2077bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// doesn't necessarily go through the data reduction proxy when it is enabled.
2078bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch// E.g., the proxy doesn't handle HTTPS traffic.
2079bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochconst char kDailyHttpReceivedContentLengthWithDataReductionProxyEnabled[] =
2080bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch    "data_reduction.daily_received_length_with_data_reduction_proxy_enabled";
2081bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch
20822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// An int64 pref that contains an internal representation of midnight on the
20832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// date of the last update to |kDailyHttp{Original,Received}ContentLength|.
20842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDailyHttpContentLengthLastUpdateDate[] =
20852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "data_reduction.last_update_date";
208690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#endif  // defined(OS_ANDROID) || defined(OS_IOS)
20872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
208890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// A pref holding the value of the policy used to explicitly allow or deny
208990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// access to audio capture devices.  When enabled or not set, the user is
209090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// prompted for device access.  When disabled, access to audio capture devices
209190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// is not allowed and no prompt will be shown.
209290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// See also kAudioCaptureAllowedUrls.
20932a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
209490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Holds URL patterns that specify URLs that will be granted access to audio
209590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// capture devices without prompt.  NOTE: This whitelist is currently only
209690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// supported when running in kiosk mode.
209790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// TODO(tommi): Update comment when this is supported for all modes.
209890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
209990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
210090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// A pref holding the value of the policy used to explicitly allow or deny
210190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// access to video capture devices.  When enabled or not set, the user is
210290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// prompted for device access.  When disabled, access to video capture devices
210390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// is not allowed and no prompt will be shown.
21042a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
210590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Holds URL patterns that specify URLs that will be granted access to video
210690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// capture devices without prompt.  NOTE: This whitelist is currently only
210790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// supported when running in kiosk mode.
210890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// TODO(tommi): Update comment when this is supported for all modes.
210990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
21102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
21115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
21125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary for transient storage of settings that should go into device
21135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// settings storage before owner has been assigned.
21145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceSettingsCache[] = "signed_settings_cache";
21155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The hardware keyboard layout of the device. This should look like
21175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "xkb:us::eng".
21185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
21195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref which shows number of times carrier deal promo
21215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// notification has been shown to user.
21225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCarrierDealPromoShown[] =
21235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.internet.mobile.carrier_deal_promo_shown";
21245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref of the auto-enrollment decision. Its value is only valid if
21265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it's not the default value; otherwise, no auto-enrollment decision has been
21275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// made yet.
21285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
21295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref with the maximum number of bits used by the client in a
21315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// previous auto-enrollment request. If the client goes through an auto update
21325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// during OOBE and reboots into a version of the OS with a larger maximum
21335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// modulus, then it will retry auto-enrollment using the updated value.
21345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
21355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The local state pref that stores device activity times before reporting
21375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// them to the policy server.
21385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceActivityTimes[] = "device_status.activity_times";
21395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the last known location when device location reporting is
21415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enabled.
21425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceLocation[] = "device_status.location";
21435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string that is used to store first-time sync startup after once sync is
21455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// disabled. This will be refreshed every sign-in.
21465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncSpareBootstrapToken[] = "sync.spare_bootstrap_token";
21475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the value of the policy used to disable mounting of external
21495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// storage for the user.
21505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
21515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the value of the policy used to disable playing audio on
21535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite
21545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it, therefore when the policy is lifted the original mute state is restored.
21555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioOutputAllowed[] = "hardware.audio_output_enabled";
21565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A dictionary that maps usernames to wallpaper properties.
21585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUsersWallpaperInfo[] = "user_wallpaper_info";
21595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copy of owner swap mouse buttons option to use on login screen.
21615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
21625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copy of owner tap-to-click option to use on login screen.
21645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
21652a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
21662a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The length of device uptime after which an automatic reboot is scheduled,
21672a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// expressed in seconds.
21682a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kUptimeLimit[] = "automatic_reboot.uptime_limit";
21692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
21702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Whether an automatic reboot should be scheduled when an update has been
21712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// applied and a reboot is required to complete the update process.
21722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update";
2173c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
2174c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// An any-api scoped refresh token for enterprise-enrolled devices.  Allows
2175c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// for connection to Google APIs when the user isn't logged in.  Currently used
2176c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// for for getting a cloudprint scoped token to allow printing in Guest mode,
2177c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Public Accounts and kiosks.
2178c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDeviceRobotAnyApiRefreshToken[] =
2179c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "device_robot_refresh_token.any-api";
2180868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
2181868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Device requisition for enterprise enrollment.
2182868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition";
2183868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
2184868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Whether to automatically start the enterprise enrollment step during OOBE.
2185868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start";
2186868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
2187868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Whether the user may exit enrollment.
2188868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit";
2189a3f7b4e666c476898878fa745f637129375cd889Ben Murdoch
2190a3f7b4e666c476898878fa745f637129375cd889Ben Murdoch// Dictionary of per-user Least Recently Used input method (used at login
2191a3f7b4e666c476898878fa745f637129375cd889Ben Murdoch// screen).
2192a3f7b4e666c476898878fa745f637129375cd889Ben Murdochextern const char kUsersLRUInputMethod[] = "UsersLRUInputMethod";
21935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
21945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether there is a Flash version installed that supports clearing LSO data.
21965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
21975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether we should show Pepper Flash-specific settings.
21995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPepperFlashSettingsEnabled[] =
22005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.pepper_flash_settings_enabled";
22015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies where to store the disk cache.
22035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDiskCacheDir[] = "browser.disk_cache_dir";
22045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pref name for the policy specifying the maximal cache size.
22055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDiskCacheSize[] = "browser.disk_cache_size";
22065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pref name for the policy specifying the maximal media cache size.
22075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaCacheSize[] = "browser.media_cache_size";
22085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the release channel that the device should be locked to.
22105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Possible values: "stable-channel", "beta-channel", "dev-channel", or an
22115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// empty string, in which case the value will be ignored.
22125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// TODO(dubroy): This preference may not be necessary once
22135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// http://crosbug.com/17015 is implemented and the update engine can just
22145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// fetch the correct value from the policy.
22155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
22165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2217558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdochconst char kPerformanceTracingEnabled[] =
2218558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch    "feedback.performance_tracing_enabled";
2219558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch
22205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Value of the enums in TabStrip::LayoutType as an int.
22215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTabStripLayoutType[] = "tab_strip_layout_type";
22225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// If true, cloud policy for the user is not loaded when the user signs in.
22242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableCloudPolicyOnSignin[] =
22252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "policy.disable_cloud_policy_on_signin";
22265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Indicates that factory reset was requested from options page.
22285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kFactoryResetRequested[] = "FactoryResetRequested";
22295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2230eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Boolean recording whether we have showed a balloon that calls out the message
2231eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// center for desktop notifications.
2232eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kMessageCenterShowedFirstRunBalloon[] =
2233eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "message_center.showed_first_run_balloon";
2234eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
22355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// *************** SERVICE PREFS ***************
22365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These are attached to the service process.
22375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintRoot[] = "cloud_print";
22395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
22405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The unique id for this instance of the cloud print proxy.
22415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
22425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GAIA auth token for Cloud Print
22435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
22445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GAIA auth token used by Cloud Print to authenticate with the XMPP server
22455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This should eventually go away because the above token should work for both.
22465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token";
22475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The email address of the account used to authenticate with the Cloud Print
22485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// server.
22495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintEmail[] = "cloud_print.email";
22505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Settings specific to underlying print system.
22515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintPrintSystemSettings[] =
22525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "cloud_print.print_system_settings";
22535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether we should poll for print jobs when don't have
22545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// an XMPP connection (false by default).
22555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
22565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
22575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
22585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether we should connect to cloud print new printers.
2259c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kCloudPrintConnectNewPrinters[] =
2260c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "cloud_print.user_settings.connectNewPrinters";
22615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether we should ping XMPP connection.
22625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
22635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An int value indicating the average timeout between xmpp pings.
22645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
2265c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Dictionary with settings stored by connector setup page.
2266c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kCloudPrintUserSettings[] = "cloud_print.user_settings";
2267c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// List of printers settings.
2268c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
22695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether submitting jobs to Google Cloud Print is
22705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// blocked by policy.
22715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
22725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preference to store proxy settings.
22745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProxy[] = "proxy";
22755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
22765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preferences that are exclusively used to store managed values for default
22785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// content settings.
22795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultCookiesSetting[] =
22805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.cookies";
22815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultImagesSetting[] =
22825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.images";
22835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultJavaScriptSetting[] =
22845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.javascript";
22855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultPluginsSetting[] =
22865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.plugins";
22875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultPopupsSetting[] =
22885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.popups";
22895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultGeolocationSetting[] =
22905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.geolocation";
22915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultNotificationsSetting[] =
22925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.notifications";
22935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultMediaStreamSetting[] =
22945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.media_stream";
22955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
22965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preferences that are exclusively used to store managed
22975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// content settings patterns.
22985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedCookiesAllowedForUrls[] =
22995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_cookies_allowed_for_urls";
23005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedCookiesBlockedForUrls[] =
23015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_cookies_blocked_for_urls";
23025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedCookiesSessionOnlyForUrls[] =
23035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_cookies_sessiononly_for_urls";
23045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedImagesAllowedForUrls[] =
23055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_images_allowed_for_urls";
23065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedImagesBlockedForUrls[] =
23075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_images_blocked_for_urls";
23085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedJavaScriptAllowedForUrls[] =
23095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_javascript_allowed_for_urls";
23105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedJavaScriptBlockedForUrls[] =
23115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_javascript_blocked_for_urls";
23125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPluginsAllowedForUrls[] =
23135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_plugins_allowed_for_urls";
23145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPluginsBlockedForUrls[] =
23155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_plugins_blocked_for_urls";
23165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPopupsAllowedForUrls[] =
23175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_popups_allowed_for_urls";
23185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPopupsBlockedForUrls[] =
23195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_popups_blocked_for_urls";
23205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedNotificationsAllowedForUrls[] =
23215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_notifications_allowed_for_urls";
23225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedNotificationsBlockedForUrls[] =
23235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_notifications_blocked_for_urls";
23245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedAutoSelectCertificateForUrls[] =
23255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_auto_select_certificate_for_urls";
23265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2327c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#if defined(OS_MACOSX)
23285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set to true if the user removed our login item so we should not create a new
23295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// one when uninstalling background apps.
23305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
23315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2332c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Set to true if Chrome already created a login item, so there's no need to
2333c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// create another one.
2334c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kChromeCreatedLoginItem[] =
2335c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  "background_mode.chrome_created_login_item";
2336c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
2337c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Set to true once we've initialized kChromeCreatedLoginItem for the first
2338c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// time.
2339c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kMigratedLoginItemPref[] =
2340c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  "background_mode.migrated_login_item_pref";
2341c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#endif
2342c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
23435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set to true if background mode is enabled on this browser.
23445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBackgroundModeEnabled[] = "background_mode.enabled";
23455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
23462a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Set to true if hardware acceleration mode is enabled on this browser.
23472a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kHardwareAccelerationModeEnabled[] =
23482a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  "hardware_acceleration_mode.enabled";
23492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
2350c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Hardware acceleration mode from previous browser launch.
2351c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kHardwareAccelerationModePrevious[] =
2352c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  "hardware_acceleration_mode_previous";
2353c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
23545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of protocol handlers.
23555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRegisteredProtocolHandlers[] =
23565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "custom_handlers.registered_protocol_handlers";
23575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
23585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of protocol handlers the user has requested not to be asked about again.
23595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIgnoredProtocolHandlers[] =
23605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "custom_handlers.ignored_protocol_handlers";
23615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
23625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether user-specified handlers for protocols and content types can be
23635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specified.
23645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
23655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
23665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integers that specify the policy refresh rate for device- and user-policy in
23675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// milliseconds. Not all values are meaningful, so it is clamped to a sane range
23685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// by the cloud policy subsystem.
23695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
23705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate";
23715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
23725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that represents the recovery component last downloaded version. This
23735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// takes the usual 'a.b.c.d' notation.
23745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRecoveryComponentVersion[] = "recovery_component.version";
23755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
23765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that stores the component updater last known state. This is used for
23775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// troubleshooting.
23785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kComponentUpdaterState[] = "component_updater.state";
23795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
23805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The next media gallery ID to assign.
23815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
23825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
23835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A list of dictionaries, where each dictionary represents a known media
23845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// gallery.
23855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaGalleriesRememberedGalleries[] =
23865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "media_galleries.remembered_galleries";
23875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
23882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(USE_ASH)
23895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
23905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// local variant is not synced and is used if set. If the local variant is not
23915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// set its value is set from the synced value (once prefs have been
23925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// synced). This gives a per-machine setting that is initialized from the last
23935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// set value.
23942a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// These values are default on the machine but can be overridden by per-display
23952a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// values in kShelfPreferences (unless overridden by managed policy).
23965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String value corresponding to ash::Shell::ShelfAlignment.
23975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAlignment[] = "shelf_alignment";
23985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAlignmentLocal[] = "shelf_alignment_local";
23995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String value corresponding to ash::Shell::ShelfAutoHideBehavior.
24005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
24015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
240290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// This value stores chrome icon's index in the launcher. This should be handled
240390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// separately with app shortcut's index because of LauncherModel's backward
240490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// compatability. If we add chrome icon index to |kPinnedLauncherApps|, its
240590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// index is also stored in the |kPinnedLauncherApp| pref. It may causes
240690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// creating two chrome icons.
240790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index";
240890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
24092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPinnedLauncherApps[] = "pinned_launcher_apps";
24105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean value indicating whether to show a logout button in the ash tray.
24115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
24122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Dictionary value that holds per-display preference of shelf alignment and
24132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// auto-hide behavior. Key of the dictionary is the id of the display, and
24142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// its value is a dictionary whose keys are kShelfAlignment and
24152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// kShelfAutoHideBehavior.
24162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kShelfPreferences[] = "shelf_preferences";
24172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
2418b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// Tuning for immersive fullscreen.
2419b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)const char kImmersiveModeRevealDelayMs[] =
2420b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)    "immersive_mode.reveal_delay_ms";
2421b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)const char kImmersiveModeRevealXThresholdPixels[] =
2422b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)    "immersive_mode.reveal_x_threshold_pixels";
24232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
24245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
24252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(USE_AURA)
24262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Tuning settings for gestures.
24272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingVelocityCap[] = "gesture.fling_velocity_cap";
24285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLongPressTimeInSeconds[] =
24295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.long_press_time_in_seconds";
24305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxDistanceBetweenTapsForDoubleTap[] =
24315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_distance_between_taps_for_double_tap";
24325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxDistanceForTwoFingerTapInPixels[] =
24335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_distance_for_two_finger_tap_in_pixels";
24345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxSecondsBetweenDoubleClick[] =
24355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_seconds_between_double_click";
24365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxSeparationForGestureTouchesInPixels[] =
24375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_separation_for_gesture_touches_in_pixels";
24385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxSwipeDeviationRatio[] =
24395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_swipe_deviation_ratio";
24405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxTouchDownDurationInSecondsForClick[] =
24415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_touch_down_duration_in_seconds_for_click";
24425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxTouchMoveInPixelsForClick[] =
24435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_touch_move_in_pixels_for_click";
24445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinDistanceForPinchScrollInPixels[] =
24455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_distance_for_pinch_scroll_in_pixels";
24465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinFlickSpeedSquared[] =
24475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_flick_speed_squared";
24485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinPinchUpdateDistanceInPixels[] =
24495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_pinch_update_distance_in_pixels";
24505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinRailBreakVelocity[] =
24515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_rail_break_velocity";
24525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinScrollDeltaSquared[] =
24535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_scroll_delta_squared";
24545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinSwipeSpeed[] =
24555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_swipe_speed";
24565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinTouchDownDurationInSecondsForClick[] =
24575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_touch_down_duration_in_seconds_for_click";
24585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPointsBufferedForVelocity[] =
24595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.points_buffered_for_velocity";
24605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRailBreakProportion[] =
24615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.rail_break_proportion";
24625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRailStartProportion[] =
24635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.rail_start_proportion";
2464eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kScrollPredictionSeconds[] =
2465eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "gesture.scroll_prediction_seconds";
24665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSemiLongPressTimeInSeconds[] =
24675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.semi_long_press_time_in_seconds";
24682a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kTabScrubActivationDelayInMS[] =
24692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.tab_scrub_activation_delay_in_ms";
24702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingAccelerationCurveCoefficient0[] =
24712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_acceleration_curve_coefficient_0";
24722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingAccelerationCurveCoefficient1[] =
24732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_acceleration_curve_coefficient_1";
24742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingAccelerationCurveCoefficient2[] =
24752a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_acceleration_curve_coefficient_2";
24762a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingAccelerationCurveCoefficient3[] =
24772a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_acceleration_curve_coefficient_3";
24782a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingCurveTouchpadAlpha[] = "flingcurve.touchpad_alpha";
24792a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingCurveTouchpadBeta[] = "flingcurve.touchpad_beta";
24802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingCurveTouchpadGamma[] = "flingcurve.touchpad_gamma";
24812a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingCurveTouchscreenAlpha[] = "flingcurve.touchscreen_alpha";
24822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingCurveTouchscreenBeta[] = "flingcurve.touchscreen_beta";
24832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingCurveTouchscreenGamma[] = "flingcurve.touchscreen_gamma";
24842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingMaxCancelToDownTimeInMs[] =
24852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_max_cancel_to_down_time_in_ms";
24862a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kFlingMaxTapGapTimeInMs[] =
24872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gesture.fling_max_tap_gap_time_in_ms";
24882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollHorizontalThresholdComplete[] =
24892a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.horizontal_threshold_complete";
24902a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollVerticalThresholdComplete[] =
24912a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.vertical_threshold_complete";
24922a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollMinimumThresholdStart[] =
24932a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.minimum_threshold_start";
249458e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdochconst char kOverscrollVerticalThresholdStart[] =
249558e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdoch    "overscroll.vertical_threshold_start";
24962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollHorizontalResistThreshold[] =
24972a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.horizontal_resist_threshold";
24982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kOverscrollVerticalResistThreshold[] =
24992a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "overscroll.vertical_resist_threshold";
25004311e82a78ceafbe0585f51d4c8a86df9f21aa0dBen Murdoch// TODO(mohsen): Remove following pref in M32. By then, gesture prefs will have
25014311e82a78ceafbe0585f51d4c8a86df9f21aa0dBen Murdoch// been cleared for majority of the users: crbug.com/269292.
25024311e82a78ceafbe0585f51d4c8a86df9f21aa0dBen Murdoch// A temporary pref to do a one-time wipe of gesture preferences.
25034311e82a78ceafbe0585f51d4c8a86df9f21aa0dBen Murdochconst char kGestureConfigIsTrustworthy[] = "gesture.config_is_trustworthy";
25045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
25055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
25065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Counts how many more times the 'profile on a network share' warning should be
25075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// shown to the user before the next silence period.
25085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
25095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tracks the time of the last shown warning. Used to reset
25105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |network_profile.warnings_left| after a silence period.
25115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetworkProfileLastWarningTime[] =
25125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "network_profile.last_warning_time";
25135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
25145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 64-bit serialization of the time last policy usage statistics were collected
25155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// by UMA_HISTOGRAM_ENUMERATION.
25165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update";
25175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
25182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(OS_CHROMEOS)
25192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The RLZ brand code, if enabled.
25202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kRLZBrand[] = "rlz.brand";
25212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Whether RLZ pings are disabled.
25222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kRLZDisabled[] = "rlz.disabled";
25232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
25242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
25252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The directory in user data dir that contains the profile to be used with the
25262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// app launcher.
25272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)extern const char kAppListProfile[] = "app_list.profile";
25282a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
2529a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)// Whether to show the app list on a browser relaunch. Used when switching out
2530a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)// of metro mode after a user gesture requests showing the app list.
2531a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)const char kRestartWithAppList[] = "app_list.show_on_relaunch";
2532a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)
2533c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// The number of times the app launcher was launched since last ping and
2534c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// the time of the last ping.
2535c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)extern const char kAppListLaunchCount[] = "app_list.launch_count";
2536c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)extern const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
2537c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
2538c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// The number of times the an app was launched from the app launcher since last
2539c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// ping and the time of the last ping.
2540c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)extern const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
2541c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)extern const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
2542c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
2543868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// How often the bubble has been shown.
2544868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2545868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
2546c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A string pref for storing the salt used to compute the pepper device ID.
2547c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDRMSalt[] = "settings.privacy.drm_salt";
2548c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// A boolean pref that enables the (private) pepper GetDeviceID() call.
2549c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEnableDRM[] = "settings.privacy.drm_enabled";
2550c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
25514c5337722b0050dc1a8f04eaa6e8dcdb69c14334Torne (Richard Coles)// A dictionary pref which maps profile names to dictionary values which hold
25524c5337722b0050dc1a8f04eaa6e8dcdb69c14334Torne (Richard Coles)// hashes of profile prefs that we track to detect changes that happen outside
25534c5337722b0050dc1a8f04eaa6e8dcdb69c14334Torne (Richard Coles)// of Chrome.
25544c5337722b0050dc1a8f04eaa6e8dcdb69c14334Torne (Richard Coles)const char kProfilePreferenceHashes[] = "profile.preference_hashes";
25554c5337722b0050dc1a8f04eaa6e8dcdb69c14334Torne (Richard Coles)
25565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace prefs
2557