pref_names.cc revision 5821806d5e7f356e8fa4b058a389a808ea183019
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"
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace prefs {
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// *************** PROFILE PREFS ***************
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These are attached to the user profile
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string property indicating whether default apps should be installed
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// in this profile.  Use the value "install" to enable defaults apps, or
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "noinstall" to disable them.  This property is usually set in the
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// master_preferences and copied into the profile preferences on first run.
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Defaults apps are installed only when creating a new profile.
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultApps[] = "default_apps";
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether we have installed default apps yet in this profile.
225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultAppsInstalled[] = "default_apps_installed";
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether the New Tab page is the home page or not.
255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This is the URL of the page to load when opening new tabs.
285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHomePage[] = "homepage";
295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Did the user change the home page after install?
315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHomePageChanged[] = "homepage_changed";
325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Does this user have a Google+ Profile?
345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIsGooglePlusUser[] = "is_google_plus_user";
355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to determine if the last session exited cleanly. Set to false when
375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// first opened, and to true when closing. On startup if the value is false,
385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it means the profile didn't exit cleanly.
395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// DEPRECATED: this is replaced by kSessionExitType and exists for backwards
405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// compatability.
415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSessionExitedCleanly[] = "profile.exited_cleanly";
425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref whose values is one of the values defined by
445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// shutdown. Used to determine the exit type the last time the profile was open.
475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSessionExitType[] = "profile.exit_type";
485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref. Holds one of several values:
505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0: (deprecated) open the homepage on startup.
515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1: restore the last session.
525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2: this was used to indicate a specific session should be restored. It is
535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//    no longer used, but saved to avoid conflict with old preferences.
545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 3: unused, previously indicated the user wants to restore a saved session.
555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 4: restore the URLs defined in kURLsToRestoreOnStartup.
565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 5: open the New Tab Page on startup.
575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestoreOnStartup[] = "session.restore_on_startup";
585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URLs to restore on startup or when the home button is pressed. The URLs
605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// are only restored on startup if kRestoreOnStartup is 4.
615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup";
625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A preference to keep track of whether we have already checked whether we
645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// We only need to do this check once, on upgrade from m18 or lower to m19 or
665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// higher.
675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables screenshot accelerators and extension APIs.
705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This setting resides both in profile prefs and local state. Accelerator
715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// handling code reads local state, while extension APIs use profile pref.
725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableScreenshots[] = "disable_screenshots";
735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The application locale.
755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// For OS_CHROMEOS we maintain kApplicationLocale property in both local state
765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// and user's profile.  Global property determines locale of login screen,
775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// while user's profile determines his personal locale preference.
785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApplicationLocale[] = "intl.app_locale";
795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Locale preference of device' owner.  ChromeOS device appears in this locale
815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// after startup/wakeup/signout.
825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOwnerLocale[] = "intl.owner_locale";
835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Locale accepted by user.  Non-syncable.
845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to determine whether we need to show Locale Change notification.
855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted";
865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Non-syncable item.
875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// It is used in two distinct ways.
885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (1) Used for two-step initialization of locale in ChromeOS
895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//     because synchronization of kApplicationLocale is not instant.
905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (2) Used to detect locale change.  Locale change is detected by
915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//     LocaleChangeGuard in case values of kApplicationLocaleBackup and
925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//     kApplicationLocale are both non-empty and differ.
935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Following is a table showing how state of those prefs may change upon
945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// common real-life use cases:
955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//                                  AppLocale Backup Accepted
965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sync                                B        A       -
985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Accept (B)                          B        B       B
995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------
1005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// No sync and second login            A        A       -
1025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Change options                      B        B       -
1035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------
1045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sync                                A        A       -
1065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Locale changed on login screen      A        C       -
1075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Accept (A)                          A        A       A
1085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------
1095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initial login                       -        A       -
1105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sync                                B        A       -
1115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Revert                              A        A       -
1125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
1135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
1145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The default character encoding to assume for a web page in the
1165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// absence of MIME charset specification
1175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultCharset[] = "intl.charset_default";
1185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value to use for Accept-Languages HTTP header when making an HTTP
1205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// request.
1215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAcceptLanguages[] = "intl.accept_languages";
1225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value to use for showing locale-dependent encoding list for different
1245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// locale, it's initialized from the corresponding string resource that is
1255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// stored in non-translatable part of the resource bundle.
1265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStaticEncodings[] = "intl.static_encodings";
1275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Obselete WebKit prefs for migration.
1295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGlobalDefaultCharset[] = "intl.global.charset_default";
1305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalDefaultFontSize[] =
1315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.default_font_size";
1325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalDefaultFixedFontSize[] =
1335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.default_fixed_font_size";
1345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalMinimumFontSize[] =
1355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.minimum_font_size";
1365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalMinimumLogicalFontSize[] =
1375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.minimum_logical_font_size";
1385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalJavascriptCanOpenWindowsAutomatically[] =
1395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.javascript_can_open_windows_automatically";
1405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalJavascriptEnabled[] =
1415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.javascript_enabled";
1425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalLoadsImagesAutomatically[] =
1435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.loads_images_automatically";
1445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalPluginsEnabled[] =
1455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.plugins_enabled";
1465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalStandardFontFamily[] =
1475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.standard_font_family";
1485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalFixedFontFamily[] =
1495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.fixed_font_family";
1505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalSerifFontFamily[] =
1515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.serif_font_family";
1525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalSansSerifFontFamily[] =
1535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.sansserif_font_family";
1545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalCursiveFontFamily[] =
1555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.cursive_font_family";
1565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitGlobalFantasyFontFamily[] =
1575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.global.fantasy_font_family";
1585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitOldStandardFontFamily[] =
1595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.standard_font_family";
1605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitOldFixedFontFamily[] = "webkit.webprefs.fixed_font_family";
1615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitOldSerifFontFamily[] = "webkit.webprefs.serif_font_family";
1625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitOldSansSerifFontFamily[] =
1635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.sansserif_font_family";
1645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitOldCursiveFontFamily[] =
1655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.cursive_font_family";
1665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitOldFantasyFontFamily[] =
1675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fantasy_font_family";
1685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If these change, the corresponding enums in the extension API
1705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// experimental.fontSettings.json must also change.
1715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char* const kWebKitScriptsForFontFamilyMaps[] = {
1725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Afak", "Arab", "Armi", "Armn", "Avst", "Bali", "Bamu", "Bass", "Batk",
1735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Beng", "Blis", "Bopo", "Brah", "Brai", "Bugi", "Buhd", "Cakm", "Cans",
1745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Cari", "Cham", "Cher", "Cirt", "Copt", "Cprt", "Cyrl", "Cyrs", "Deva",
1755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Dsrt", "Dupl", "Egyd", "Egyh", "Egyp", "Elba", "Ethi", "Geor", "Geok",
1765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Glag", "Goth", "Gran", "Grek", "Gujr", "Guru", "Hang", "Hani", "Hano",
1775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Hans", "Hant", "Hebr", "Hluw", "Hmng", "Hung", "Inds", "Ital", "Java",
1785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Jpan", "Jurc", "Kali", "Khar", "Khmr", "Khoj", "Knda", "Kpel", "Kthi",
1795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Lana", "Laoo", "Latf", "Latg", "Latn", "Lepc", "Limb", "Lina", "Linb",
1805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Lisu", "Loma", "Lyci", "Lydi", "Mand", "Mani", "Maya", "Mend", "Merc",
1815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Mero", "Mlym", "Moon", "Mong", "Mroo", "Mtei", "Mymr", "Narb", "Nbat",
1825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Nkgb", "Nkoo", "Nshu", "Ogam", "Olck", "Orkh", "Orya", "Osma", "Palm",
1835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Perm", "Phag", "Phli", "Phlp", "Phlv", "Phnx", "Plrd", "Prti", "Rjng",
1845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Roro", "Runr", "Samr", "Sara", "Sarb", "Saur", "Sgnw", "Shaw", "Shrd",
1855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Sind", "Sinh", "Sora", "Sund", "Sylo", "Syrc", "Syre", "Syrj", "Syrn",
1865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Tagb", "Takr", "Tale", "Talu", "Taml", "Tang", "Tavt", "Telu", "Teng",
1875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Tfng", "Tglg", "Thaa", "Thai", "Tibt", "Tirh", "Ugar", "Vaii", "Visp",
1885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "Wara", "Wole", "Xpeo", "Xsux", "Yiii", "Zmth", "Zsym", "Zyyy"
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[] =
1985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.standard";
1995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamilyMap[] =
2005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fixed";
2015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamilyMap[] =
2025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.serif";
2035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamilyMap[] =
2045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif";
2055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCursiveFontFamilyMap[] =
2065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.cursive";
2075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFantasyFontFamilyMap[] =
2085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.fantasy";
2095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitPictographFontFamilyMap[] =
2105821806d5e7f356e8fa4b058a389a808ea183019Torne (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";
2895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
2905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCommonScript[] = "Zyyy";
2925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy";
2935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy";
2945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy";
2955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitSansSerifFontFamily[] =
2965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.sansserif.Zyyy";
2975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy";
2985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy";
2995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitPictographFontFamily[] =
3005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.fonts.pictograph.Zyyy";
3015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size";
3025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitDefaultFixedFontSize[] =
3035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.default_fixed_font_size";
3045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
3055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitMinimumLogicalFontSize[] =
3065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.minimum_logical_font_size";
3075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
3085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
3095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.javascript_can_open_windows_automatically";
3105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitLoadsImagesAutomatically[] =
3115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "webkit.webprefs.loads_images_automatically";
3125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled";
3135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean which specifies whether the bookmark bar is visible on all tabs.
3155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowBookmarkBar[] = "bookmark_bar.show_on_all_tabs";
3165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean which specifies the ids of the bookmark nodes that are expanded in
3185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the bookmark editor.
3195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBookmarkEditorExpandedNodes[] = "bookmark_editor.expanded_nodes";
3205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true if the password manager is on (will record new
3225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// passwords and fill in known passwords).
3235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPasswordManagerEnabled[] = "profile.password_manager_enabled";
3245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether the password manager allows to retrieve passwords
3265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// in clear text.
3275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPasswordManagerAllowShowPasswords[] =
3285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.password_manager_allow_show_passwords";
3295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when password generation is enabled.
3315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPasswordGenerationEnabled[] = "password_generation.enabled";
3325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Booleans identifying whether normal and reverse auto-logins are enabled.
3345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutologinEnabled[] = "autologin.enabled";
3355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kReverseAutologinEnabled[] = "reverse_autologin.enabled";
3365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List to keep track of emails for which the user has rejected one-click
3385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// sign-in.
3395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kReverseAutologinRejectedEmailList[] =
3405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "reverse_autologin.rejected_email_list";
3415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when SafeBrowsing is enabled.
3435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
3445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when SafeBrowsing Malware Report is enabled.
3465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingReportingEnabled[] =
3475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "safebrowsing.reporting_enabled";
3485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when the SafeBrowsing interstitial should not allow
3505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// users to proceed anyway.
3515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingProceedAnywayDisabled[] =
3525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "safebrowsing.proceed_anyway_disabled";
3535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enum that specifies whether Incognito mode is:
3555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0 - Enabled. Default behaviour. Default mode is available on demand.
3565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1 - Disabled. Used cannot browse pages in Incognito mode.
3575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2 - Forced. All pages/sessions are forced into Incognito.
3585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIncognitoModeAvailability[] = "incognito.mode_availability";
3595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when Suggest support is enabled.
3615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSearchSuggestEnabled[] = "search.suggest_enabled";
3625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether the browser should put up a confirmation
3645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// window when the user is attempting to quit. Mac only.
3655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
3665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE.  Enum that specifies whether to enforce a third-party cookie
3685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// blocking policy.  This has been superseded by kDefaultContentSettings +
3695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kBlockThirdPartyCookies.
3705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0 - allow all cookies.
3715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1 - block third-party cookies
3725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2 - block all cookies
3735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCookieBehavior[] = "security.cookie_behavior";
3745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GUID of the synced default search provider. Note that this acts like a
3765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// pointer to which synced search engine should be the default, rather than the
3775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// prefs below which describe the locally saved default search provider details
3785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (and are not synced). This is ignored in the case of the default search
3795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// provider being managed by policy.
3805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncedDefaultSearchProviderGUID[] =
3815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.synced_guid";
3825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether having a default search provider is enabled.
3845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderEnabled[] =
3855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.enabled";
3865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL (as understood by TemplateURLRef) the default search provider uses
3885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for searches.
3895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderSearchURL[] =
3905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.search_url";
3915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL (as understood by TemplateURLRef) the default search provider uses
3935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for suggestions.
3945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderSuggestURL[] =
3955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.suggest_url";
3965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL (as understood by TemplateURLRef) the default search provider uses
3985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for instant results.
3995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderInstantURL[] =
4005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.instant_url";
4015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The Favicon URL (as understood by TemplateURLRef) of the default search
4035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// provider.
4045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderIconURL[] =
4055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.icon_url";
4065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The input encoding (as understood by TemplateURLRef) supported by the default
4085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// search provider.  The various encodings are separated by ';'
4095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderEncodings[] =
4105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.encodings";
4115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The name of the default search provider.
4135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderName[] = "default_search_provider.name";
4145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The keyword of the default search provider.
4165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword";
4175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The id of the default search provider.
4195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderID[] = "default_search_provider.id";
4205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The prepopulate id of the default search provider.
4225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderPrepopulateID[] =
4235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.prepopulate_id";
4245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The alternate urls of the default search provider.
4265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultSearchProviderAlternateURLs[] =
4275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "default_search_provider.alternate_urls";
4285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The dictionary key used when the default search providers are given
4305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// in the preferences file. Normally they are copied from the master
4315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences file.
4325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSearchProviderOverrides[] = "search_provider_overrides";
4335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The format version for the dictionary above.
4345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSearchProviderOverridesVersion[] =
4355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "search_provider_overrides_version";
4365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean which specifies whether we should ask the user if we should download
4385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a file (true) or just download it automatically.
4395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPromptForDownload[] = "download.prompt_for_download";
4405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if we're using Link Doctor error pages.
4425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled";
4435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE: new pref now stored with user prefs instead of profile, as
4455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kDnsPrefetchingStartupList.
4465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList";
4475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An adaptively identified list of domain names to be pre-fetched during the
4495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// next startup, based on what was actually needed during this startup.
4505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list";
4515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE: new pref now stored with user prefs instead of profile, as
4535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kDnsPrefetchingHostReferralList.
4545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsHostReferralList[] = "HostReferralList";
4555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A list of host names used to fetch web pages, and their commonly used
4575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// sub-resource hostnames (and expected latency benefits from pre-resolving, or
4585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preconnecting to, such sub-resource hostnames).
4595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This list is adaptively grown and pruned.
4605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsPrefetchingHostReferralList[] =
4615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "dns_prefetching.host_referral_list";
4625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the SPDY protocol.
4645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSpdy[] = "spdy.disabled";
4655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for persisting HttpServerProperties.
4675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHttpServerProperties[] = "net.http_server_properties";
4685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for server names that support SPDY protocol.
4705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpdyServers[] = "spdy.servers";
4715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for servers that support Alternate-Protocol.
4735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAlternateProtocolServers[] = "spdy.alternate_protocol";
4745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the listed protocol schemes.
4765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisabledSchemes[] = "protocol.disabled_schemes";
4775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Blocks access to the listed host patterns.
4795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUrlBlacklist[] = "policy.url_blacklist";
4805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Allows access to the listed host patterns, as exceptions to the blacklist.
4825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUrlWhitelist[] = "policy.url_whitelist";
4835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref indicating whether the instant confirm dialog has been shown.
4855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInstantConfirmDialogShown[] = "instant.confirm_dialog_shown";
4865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref indicating if instant is enabled.
4885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInstantEnabled[] = "instant.enabled";
4895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefix URL for the experimental Instant ZeroSuggest provider.
4915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInstantUIZeroSuggestUrlPrefix[] =
4925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "instant_ui.zero_suggest_url_prefix";
4935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to migrate preferences from local state to user preferences to
4955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enable multiple profiles.
4965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// BITMASK with possible values (see browser_prefs.cc for enum):
4975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 0: No preferences migrated.
4985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList
4995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2: Browser window preferences migrated: kDevToolsSplitLocation and
5005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//    kBrowserWindowPlacement
5015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMultipleProfilePrefMigration[] =
5025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "local_state.multiple_profile_prefs_version";
5035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if prediction of network actions is allowed.
5055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Actions include DNS prefetching, TCP and SSL preconnection, and prerendering
5065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// of web pages.
5075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// NOTE: The "dns_prefetching.enabled" value is used so that historical user
5085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences are not lost.
5095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
5105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer representing the state of the default apps installation process.
5125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This value is persisted in the profile's user preferences because the process
5135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is async, and the user may have stopped chrome in the middle.  The next time
5145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the profile is opened, the process will continue from where it left off.
5155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
5165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// See possible values in external_provider_impl.cc.
5175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultAppsInstallState[] = "default_apps_install_state";
5185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
5205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref to initially mute volume if 1. This pref is ignored if
5215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |kAudioOutputAllowed| is set to false, but its value is preserved, therefore
5225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// when the policy is lifted the original mute state is restored.
5235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioMute[] = "settings.audio.mute";
5245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A double pref storing the user-requested volume.
5265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioVolumePercent[] = "settings.audio.volume_percent";
5275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad tap-to-click is enabled.
5295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click";
5305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad tap-dragging is enabled.
5325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging";
5335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad three-finger-click is enabled.
5355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableTouchpadThreeFingerClick[] =
5365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.touchpad.enable_three_finger_click";
5375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad three-finger swipe is enabled.
5395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableTouchpadThreeFingerSwipe[] =
5405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.touchpad.enable_three_finger_swipe";
5415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if touchpad natural scrolling is enabled.
5435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNaturalScroll[] = "settings.touchpad.natural_scroll";
5445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if primary mouse button is the left button.
5465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right";
5475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref for the touchpad sensitivity.
5495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMouseSensitivity[] = "settings.mouse.sensitivity2";
5505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref for the touchpad sensitivity.
5525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
5535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if time should be displayed in 24-hour clock.
5555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
5565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref to disable Google Drive integration.
5585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The pref prefix should remain as "gdata" for backward compatibility.
5595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDrive[] = "gdata.disabled";
5605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref to disable Drive over cellular connections.
5625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The pref prefix should remain as "gdata" for backward compatibility.
5635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDriveOverCellular[] = "gdata.cellular.disabled";
5645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref to disable hosted files on Drive.
5665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The pref prefix should remain as "gdata" for backward compatibility.
5675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled";
5685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref set to the current input method.
5705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageCurrentInputMethod[] =
5715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.current_input_method";
5725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref set to the previous input method.
5745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePreviousInputMethod[] =
5755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.previous_input_method";
5765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the "next engine in menu"
5785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// hot-key lists.
5795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageHotkeyNextEngineInMenu[] =
5805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.hotkey_next_engine_in_menu";
5815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the "previous engine"
5835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// hot-key lists.
5845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageHotkeyPreviousEngine[] =
5855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.hotkey_previous_engine";
5865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the preferred language IDs
5885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (ex. "en-US,fr,ko").
5895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePreferredLanguages[] =
5905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.preferred_languages";
5915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref (comma-separated list) set to the preloaded (active) input
5935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// method IDs (ex. "pinyin,mozc").
5945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePreloadEngines[] = "settings.language.preload_engines";
5955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A List pref (comma-separated list) set to the extension IMEs to filter out.
5975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageFilteredExtensionImes[] =
5985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.filtered_extension_imes";
5995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean prefs for ibus-chewing Chinese input method.
6015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingAutoShiftCur[] =
6025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_auto_shift_cur";
6035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingAddPhraseDirection[] =
6045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_add_phrase_direction";
6055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingEasySymbolInput[] =
6065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_easy_symbol_input";
6075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingEscCleanAllBuf[] =
6085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_esc_clean_all_buf";
6095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingForceLowercaseEnglish[] =
6105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_force_lowercase_english";
6115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingPlainZhuyin[] =
6125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_plain_zhuyin";
6135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingPhraseChoiceRearward[] =
6145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_phrase_choice_rearward";
6155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingSpaceAsSelection[] =
6165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_space_as_selection";
6175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer prefs for ibus-chewing Chinese input method.
6195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingMaxChiSymbolLen[] =
6205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_max_chi_symbol_len";
6215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingCandPerPage[] =
6225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_cand_per_page";
6235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String prefs for ibus-chewing Chinese input method.
6255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingKeyboardType[] =
6265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_keyboard_type";
6275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingSelKeys[] =
6285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_sel_keys";
6295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageChewingHsuSelKeyType[] =
6315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.chewing_hsu_sel_key_type";
6325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref which determines the keyboard layout for Hangul input method.
6345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageHangulKeyboard[] = "settings.language.hangul_keyboard";
6355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageHangulHanjaBindingKeys[] =
6365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.hangul_hanja_binding_keys";
6375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean prefs for ibus-pinyin Chinese input method.
6395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinCorrectPinyin[] =
6405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_correct_pinyin";
6415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinFuzzyPinyin[] =
6425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_fuzzy_pinyin";
6435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinShiftSelectCandidate[] =
6445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_shift_select_candidate";
6455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinMinusEqualPage[] =
6465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_minus_equal_page";
6475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinCommaPeriodPage[] =
6485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_comma_period_page";
6495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinAutoCommit[] =
6505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_auto_commit";
6515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinDoublePinyin[] =
6525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_double_pinyin";
6535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinInitChinese[] =
6545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_init_chinese";
6555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinInitFull[] =
6565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_init_full";
6575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinInitFullPunct[] =
6585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_init_full_punct";
6595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinInitSimplifiedChinese[] =
6605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_init_simplified_chinese";
6615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinTradCandidate[] =
6625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_trad_candidate";
6635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer prefs for ibus-pinyin Chinese input method.
6655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinDoublePinyinSchema[] =
6665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_double_pinyin_schema";
6675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguagePinyinLookupTablePageSize[] =
6685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.pinyin_lookup_table_page_size";
6695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string prefs for ibus-mozc Japanese input method.
6715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// ibus-mozc converts the string values to protobuf enum values defined in
6725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// third_party/ibus-mozc/files/src/session/config.proto.
6735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcPreeditMethod[] =
6745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_preedit_method";
6755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcSessionKeymap[] =
6765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_session_keymap";
6775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcPunctuationMethod[] =
6785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_punctuation_method";
6795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcSymbolMethod[] =
6805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_symbol_method";
6815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcSpaceCharacterForm[] =
6825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_space_character_form";
6835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcHistoryLearningLevel[] =
6845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_history_learning_level";
6855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcSelectionShortcut[] =
6865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_selection_shortcut";
6875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcShiftKeyModeSwitch[] =
6885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_shift_key_mode_switch";
6895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcNumpadCharacterForm[] =
6905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_numpad_character_form";
6915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcIncognitoMode[] =
6925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_incognito_mode";
6935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcUseAutoImeTurnOff[] =
6945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_use_auto_ime_turn_off";
6955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcUseHistorySuggest[] =
6965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_use_history_suggest";
6975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcUseDictionarySuggest[] =
6985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_use_dictionary_suggest";
6995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageMozcSuggestionsSize[] =
7005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.mozc_suggestions_size";
7015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer prefs which determine how we remap modifier keys (e.g. swap Alt and
7035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
7045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// src/chrome/browser/chromeos/input_method/xkeyboard.h
7055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapSearchKeyTo[] =
7065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    // Note: we no longer use XKB for remapping these keys, but we can't change
7075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    // the pref names since the names are already synced with the cloud.
7085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_remap_search_key_to";
7095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapControlKeyTo[] =
7105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_remap_control_key_to";
7115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapAltKeyTo[] =
7125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_remap_alt_key_to";
7135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageRemapCapsLockKeyTo[] =
7145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.remap_caps_lock_key_to";
7155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether key repeat is enabled.
7175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageXkbAutoRepeatEnabled[] =
7185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_auto_repeat_enabled_r2";
7195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref which determines key repeat delay (in ms).
7205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageXkbAutoRepeatDelay[] =
7215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_auto_repeat_delay_r2";
7225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A integer pref which determines key repeat interval (in ms).
7235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLanguageXkbAutoRepeatInterval[] =
7245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.language.xkb_auto_repeat_interval_r2";
7255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "_r2" suffixes are added to the three prefs above when we change the
7265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences not user-configurable, not to sync them with cloud.
7275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether spoken feedback is enabled.
7295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpokenFeedbackEnabled[] = "settings.accessibility";
7305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether high conrast is enabled.
7315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHighContrastEnabled[] = "settings.a11y.high_contrast_enabled";
7325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether screen magnifier is enabled.
7335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kScreenMagnifierEnabled[] = "settings.a11y.screen_magnifier";
7345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A double pref which determines a zooming scale of the screen magnifier.
7355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kScreenMagnifierScale[] = "settings.a11y.screen_magnifier_scale";
7365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which determines whether virtual keyboard is enabled.
7375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// TODO(hashimoto): Remove this pref.
7385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kVirtualKeyboardEnabled[] = "settings.a11y.virtual_keyboard";
7395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which turns on Advanced Filesystem
7415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (USB support, SD card, etc).
7425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLabsAdvancedFilesystemEnabled[] =
7435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.labs.advanced_filesystem";
7445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref which turns on the mediaplayer.
7465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer";
7475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref that turns on screen locker.
7495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableScreenLock[] = "settings.enable_screen_lock";
7505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref of whether to show mobile plan notifications.
7525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowPlanNotifications[] =
7535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.internet.mobile.show_plan_notifications";
7545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref of whether to show 3G promo notification.
7565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShow3gPromoNotification[] =
7575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.internet.mobile.show_3g_promo_notification";
7585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string pref that contains version where "What's new" promo was shown.
7605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version";
7615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref that uses shared proxies.
7635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUseSharedProxies[] = "settings.use_shared_proxies";
7645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string prefs for OAuth1 token.
7665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOAuth1Token[] = "settings.account.oauth1_token";
7675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string prefs for OAuth1 secret.
7695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOAuth1Secret[] = "settings.account.oauth1_secret";
7705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref that enables the (private) pepper GetID() call.
7725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableCrosDRM[] = "settings.privacy.drm_enabled";
7735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A dictionary pref that specifies per-display overscan data.  Its key is the
7755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// display's ID and its value is a dictionary of canceling overscan pixels for
7765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 'top', 'right', 'bottom', 'left'.
7775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisplayOverscans[] = "settings.display.overscans";
7785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A 64bit integer pref that specifies the name of the primary display device.
7805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrimaryDisplayID[] = "settings.display.primary_id";
7815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An enumeration that specifies the layout of the secondary display.
7835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//  0 - The secondary display is at the top of the primary display.
7845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//  1 - The secondary display is at the right of the primary display.
7855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//  2 - The secondary display is at the bottom of the primary display.
7865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//  3 - The secondary display is at the left of the primary display.
7875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// TODO(mukai,oshima): update the format of the multi-display settings.
7885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSecondaryDisplayLayout[] = "settings.display.secondary_layout";
7895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref that specifies how far the secondary display is positioned
7915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// from the edge of the primary display.
7925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSecondaryDisplayOffset[] = "settings.display.secondary_offset";
7935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A dictionary pref that specifies per-display layout/offset information.
7955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Its key is the ID of the display and its value is a dictionary for the
7965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// layout/offset information.
7975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSecondaryDisplays[] = "settings.display.secondary_displays";
7985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif  // defined(OS_CHROMEOS)
7995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The disabled messages in IPC logging.
8015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
8025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref set to true if a Home button to open the Home pages should be
8045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// visible on the toolbar.
8055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowHomeButton[] = "browser.show_home_button";
8065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string value which saves short list of recently user selected encodings
8085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// separated with comma punctuation mark.
8095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
8105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Clear Browsing Data dialog preferences.
8125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
8135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
8145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteCache[] = "browser.clear_data.cache";
8155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteCookies[] = "browser.clear_data.cookies";
8165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeletePasswords[] = "browser.clear_data.passwords";
8175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteFormData[] = "browser.clear_data.form_data";
8185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
8195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeauthorizeContentLicenses[] =
8205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.clear_data.content_licenses";
8215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
8225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref to define the default values for using spellchecker.
8245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableSpellCheck[] = "browser.enable_spellchecking";
8255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of names of the enabled labs experiments (see chrome/browser/labs.cc).
8275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
8285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref to define the default values for using auto spell correct.
8305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
8315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref to define the default setting for "block offensive words".
8335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The old key value is kept to avoid unnecessary migration code.
8345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpeechRecognitionFilterProfanities[] =
8355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.speechinput_censor_results";
8365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of speech recognition context names (extensions or websites) for which
8385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the tray notification balloon has already been shown.
8395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpeechRecognitionTrayNotificationShownContexts[] =
8405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.speechinput_tray_notification_shown_contexts";
8415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether history saving is disabled.
8435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
8445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
8465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceSafeSearch[] = "settings.force_safesearch";
8475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(TOOLKIT_GTK)
8495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// GTK specific preference on whether we should match the system GTK theme.
8505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUsesSystemTheme[] = "extensions.theme.use_system";
8515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
8525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemePackFilename[] = "extensions.theme.pack";
8535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeID[] = "extensions.theme.id";
8545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeImages[] = "extensions.theme.images";
8555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeColors[] = "extensions.theme.colors";
8565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeTints[] = "extensions.theme.tints";
8575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
8585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref which persists whether the extensions_ui is in developer mode
8605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (showing developer packing tools and extensions details)
8615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
8625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer pref that tracks the number of browser actions visible in the browser
8645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// actions toolbar.
8655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionToolbarSize[] = "extensions.toolbarsize";
8665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary pref that tracks which command belongs to which
8685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// extension + named command pair.
8695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionCommands[] = "extensions.commands";
8705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer pref that tracks how often the bubble has been shown to the user.
8725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionsSideloadWipeoutBubbleShown[] =
8735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "extensions.sideload_wipeout_bubble_shown";
8745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pref containing the directory for internal plugins as written to the plugins
8765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// list (below).
8775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
8785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing information (dictionaries) on plugins.
8805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsPluginsList[] = "plugins.plugins_list";
8815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing names of plugins that are disabled by policy.
8835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
8845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing exceptions to the list of plugins disabled by policy.
8865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsDisabledPluginsExceptions[] =
8875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "plugins.plugins_disabled_exceptions";
8885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List pref containing names of plugins that are enabled by policy.
8905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
8915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// When first shipped, the pdf plugin will be disabled by default.  When we
8935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enable it by default, we'll want to do so only once.
8945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsEnabledInternalPDF[] = "plugins.enabled_internal_pdf3";
8955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// When first shipped, the nacl plugin will be disabled by default.  When we
8975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enable it by default, we'll want to do so only once.
8985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsEnabledNaCl[] = "plugins.enabled_nacl";
8995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// When bundled NPAPI Flash is removed, if at that point it is enabled while
9015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
9025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// want to do so only once.
9035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash";
9045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
9065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether about:plugins is shown in the details mode or not.
9075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsShowDetails[] = "plugins.show_details";
9085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether outdated plugins are allowed or not.
9115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
9125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether plugins that require authorization should
9145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be always allowed or not.
9155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
9165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(ENABLE_PLUGIN_INSTALLATION)
9185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary holding plug-ins metadata.
9195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsMetadata[] = "plugins.metadata";
9205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Last update time of plug-ins resource cache.
9225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
9235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(ENABLE_WEB_INTENTS)
9265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true if Web Intents is enabled.
9275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebIntentsEnabled[] = "webintents.enabled";
9285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether we should check if we are the default browser
9315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// on start-up.
9325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCheckDefaultBrowser[] = "browser.check_default_browser";
9335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_WIN)
9355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// By default, setting Chrome as default during first run on Windows 8 will
9365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// trigger shutting down the current instance and spawning a new (Metro)
9375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Chrome. This boolean preference supresses this behaviour.
9385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSuppressSwitchToMetroModeOnSetDefault[] =
9395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.suppress_switch_to_metro_mode_on_set_default";
9405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Policy setting whether default browser check should be disabled and default
9435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser registration should take place.
9445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultBrowserSettingEnabled[] =
9455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.default_browser_setting_enabled";
9465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_MACOSX)
9485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether the application should show the info bar
9495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// asking the user to set up automatic updates when Keystone promotion is
9505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// required.
9515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowUpdatePromotionInfoBar[] =
9525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.show_update_promotion_info_bar";
9535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is false if we should show window manager decorations.  If
9565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// true, we draw a custom chrome frame (thicker title bar and blue border).
9575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
9585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether the infobar explaining that search can be
9605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// done directly from the omnibox should be shown.
9615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowOmniboxSearchHint[] = "browser.show_omnibox_search_hint";
9625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The list of origins which are allowed|denied to show desktop notifications.
9645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDesktopNotificationDefaultContentSetting[] =
9655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.notifications_default_content_setting";
9665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDesktopNotificationAllowedOrigins[] =
9675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.notification_allowed_sites";
9685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDesktopNotificationDeniedOrigins[] =
9695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.notification_denied_sites";
9705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The preferred position (which corner of screen) for desktop notifications.
9725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDesktopNotificationPosition[] =
9735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.desktop_notification_position";
9745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary of content settings applied to all hosts by default.
9765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultContentSettings[] = "profile.default_content_settings";
9775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean indicating whether the clear on exit pref was migrated to content
9795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// settings yet.
9805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsClearOnExitMigrated[] =
9815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.clear_on_exit_migrated";
9825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Version of the pattern format used to define content settings.
9845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsVersion[] = "profile.content_settings.pref_version";
9855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Patterns for mapping hostnames to content related settings. Default settings
9875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// will be applied to hosts that don't match any of the patterns. Replaces
9885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kPerHostContentSettings. The pattern format used is defined by
9895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kContentSettingsVersion.
9905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsPatterns[] = "profile.content_settings.patterns";
9915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsPatternPairs[] =
9935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.pattern_pairs";
9945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Version of the content settings whitelist.
9965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsDefaultWhitelistVersion[] =
9975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.whitelist_version";
9985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
10005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Which plugins have been whitelisted manually by the user.
10015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsPluginWhitelist[] =
10025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.content_settings.plugin_whitelist";
10035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true if we should unconditionally block third-party cookies,
10065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// regardless of other content settings.
10075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
10085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when all locally stored site data (e.g. cookies, local
10105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// storage, etc..) should be deleted on exit.
10115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit";
10125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Double that indicates the default zoom level.
10145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultZoomLevel[] = "profile.default_zoom_level";
10155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary that maps hostnames to zoom levels.  Hosts not in this pref will
10175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be displayed at the default zoom level.
10185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels";
10195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true if Autofill is enabled and allowed to save profile data.
10215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutofillEnabled[] = "autofill.enabled";
10225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when auxiliary Autofill profiles are enabled.
10245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Currently applies to Address Book "me" card on Mac.  False on Win and Linux.
10255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutofillAuxiliaryProfilesEnabled[] =
10265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "autofill.auxiliary_profiles_enabled";
10275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Double that indicates positive (for matched forms) upload rate.
10295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutofillPositiveUploadRate[] = "autofill.positive_upload_rate";
10305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Double that indicates negative (for not matched forms) upload rate.
10325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutofillNegativeUploadRate[] = "autofill.negative_upload_rate";
10335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean option set to true on the first run. Non-persistent.
10355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutofillPersonalDataManagerFirstRun[] = "autofill.pdm.first_run";
10365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Modifying bookmarks is completely disabled when this is set to false.
10385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEditBookmarksEnabled[] = "bookmarks.editing_enabled";
10395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when the translate feature is enabled.
10415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableTranslate[] = "translate.enabled";
10425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
10445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPinnedTabs[] = "pinned_tabs";
10455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer containing the default Geolocation content setting.
10485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeolocationDefaultContentSetting[] =
10495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "geolocation.default_content_setting";
10505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
10525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that controls the enabled-state of Geolocation.
10535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeolocationEnabled[] = "geolocation.enabled";
10545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary that maps [frame, toplevel] to their Geolocation content setting.
10575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeolocationContentSettings[] = "geolocation.content_settings";
10585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preference to disable 3D APIs (WebGL, Pepper 3D).
10605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisable3DAPIs[] = "disable_3d_apis";
10615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to enable hyperlink auditing ("<a ping>").
10635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableHyperlinkAuditing[] = "enable_a_ping";
10645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to enable sending referrers.
10665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableReferrers[] = "enable_referrers";
10675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to send the DNT header.
10695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableDoNotTrack[] = "enable_do_not_track";
10705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean to enable reporting memory info to page.
10725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableMemoryInfo[] = "enable_memory_info";
10735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import bookmarks from the default browser
10755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// on first run.
10765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportBookmarks[] = "import_bookmarks";
10775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the browsing history from the
10795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// default browser on first run.
10805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportHistory[] = "import_history";
10815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the homepage from the default
10835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser on first run.
10845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportHomepage[] = "import_home_page";
10855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the search engine from the default
10875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser on first run.
10885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportSearchEngine[] = "import_search_engine";
10895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to import the saved passwords from the default
10915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser on first run.
10925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kImportSavedPasswords[] = "import_saved_passwords";
10935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL of the enterprise web store, which is a site trusted by the
10955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enterprise admin. Users can install apps & extensions from this site
10965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// without scary warnings.
10975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnterpriseWebStoreURL[] = "webstore.enterprise_store_url";
10985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The name of the enterprise web store, to be shown to the user.
11005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnterpriseWebStoreName[] = "webstore.enterprise_store_name";
11015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX)
11035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The local profile id for this profile.
11045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLocalProfileId[] = "profile.local_profile_id";
11055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether passwords in external services (e.g. GNOME Keyring) have been tagged
11075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// with the local profile id yet. (Used for migrating to tagged passwords.)
11085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPasswordsUseLocalProfileId[] =
11095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.passwords_use_local_profile_id";
11105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
11115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Profile avatar and name
11135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileAvatarIndex[] = "profile.avatar_index";
11145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileName[] = "profile.name";
11155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Indicates if we've already shown a notification that high contrast
11175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// mode is on, recommending high-contrast extensions and themes.
11185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInvertNotificationShown[] = "invert_notification_version_2_shown";
11195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether printing is enabled.
11215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrintingEnabled[] = "printing.enabled";
11225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether print preview is disabled.
11245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
11255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// *************** LOCAL STATE ***************
11275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These are attached to the machine/installation
11285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Directory of the last profile used.
11305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileLastUsed[] = "profile.last_used";
11315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of directories of the profiles last active.
11335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilesLastActive[] = "profile.last_active_profiles";
11345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Total number of profiles created for this Chrome build. Used to tag profile
11365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// directories.
11375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilesNumCreated[] = "profile.profiles_created";
11385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the version of Chrome that the profile was created by.
11405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If profile was created before this feature was added, this pref will default
11415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to "1.0.0.0".
11425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileCreatedByVersion[] = "profile.created_by_version";
11435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A map of profile data directory to cached information. This cache can be
11455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// used to display information about profiles without actually having to load
11465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// them.
11475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileInfoCache[] = "profile.info_cache";
11485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prefs for SSLConfigServicePref.
11505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
11515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSSLVersionMin[] = "ssl.version_min";
11525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSSLVersionMax[] = "ssl.version_max";
11535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
11545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableOriginBoundCerts[] = "ssl.origin_bound_certs.enabled";
11555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
11565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The metrics client GUID, entropy source and session ID.
11585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsClientID[] = "user_experience_metrics.client_id";
11595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsSessionID[] = "user_experience_metrics.session_id";
11605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsLowEntropySource[] =
11615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.low_entropy_source";
11625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Date/time when the current metrics profile ID was created
11645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (which hopefully corresponds to first run).
11655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsClientIDTimestamp[] =
11665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.client_id_timestamp";
11675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether or not crash reporting and metrics reporting
11695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// are sent over the network for analysis.
11705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsReportingEnabled[] =
11715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.reporting_enabled";
11725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Array of strings that are each UMA logs that were supposed to be sent in the
11745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// first minute of a browser session. These logs include things like crash count
11755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// info, etc.  Currently we store both XML and protobuf versions of these logs.
11765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsInitialLogsXml[] =
11775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.initial_logs";
11785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsInitialLogsProto[] =
11795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.initial_logs_as_protobufs";
11805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Array of strings that are each UMA logs that were not sent because the
11825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser terminated before these accumulated metrics could be sent.  These
11835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// logs typically include histograms and memory reports, as well as ongoing
11845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// user activities.  Currently we store both XML and protobuf versions.
11855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsOngoingLogsXml[] =
11865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.ongoing_logs";
11875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsOngoingLogsProto[] =
11885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.ongoing_logs_as_protobufs";
11895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that is true when bookmark prompt is enabled.
11915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBookmarkPromptEnabled[] = "bookmark_prompt_enabled";
11925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times bookmark prompt displayed.
11945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBookmarkPromptImpressionCount[] =
11955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "bookmark_prompt_impression_count";
11965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String serialized form of variations seed protobuf.
11985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kVariationsSeed[] = "variations_seed";
11995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 64-bit integer serialization of the base::Time from the last seed received.
12015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kVariationsSeedDate[] = "variations_seed_date";
12025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Where profile specific metrics are placed.
12045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileMetrics[] = "user_experience_metrics.profiles";
12055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The metrics for a profile are stored as dictionary values under the
12075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// path kProfileMetrics. The individual metrics are placed under the path
12085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kProfileMetrics.kProfilePrefix<hashed-profile-id>.
12095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilePrefix[] = "profile-";
12105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// True if the previous run of the program exited cleanly.
12125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityExitedCleanly[] =
12135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.exited_cleanly";
12145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Version string of previous run, which is used to assure that stability
12165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// metrics reported under current version reflect stability of the same version.
12175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityStatsVersion[] =
12185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.stats_version";
12195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Build time, in seconds since an epoch, which is used to assure that stability
12215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// metrics reported reflect stability of the same build.
12225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityStatsBuildTime[] =
12235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.stats_buildtime";
12245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// False if we received a session end and either we crashed during processing
12265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the session end or ran out of time and windows terminated us.
12275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilitySessionEndCompleted[] =
12285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.session_end_completed";
12295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the application was launched since last report.
12315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityLaunchCount[] =
12325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.launch_count";
12335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the application exited uncleanly since the last report.
12355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityCrashCount[] =
12365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.crash_count";
12375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the session end did not complete.
12395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityIncompleteSessionEndCount[] =
12405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.incomplete_session_end_count";
12415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times a page load event occurred since the last report.
12435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPageLoadCount[] =
12445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.page_load_count";
12455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times a renderer process crashed since the last report.
12475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityRendererCrashCount[] =
12485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.renderer_crash_count";
12495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times an extension renderer process crashed since the last report.
12515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityExtensionRendererCrashCount[] =
12525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.extension_renderer_crash_count";
12535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Time when the app was last launched, in seconds since the epoch.
12555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityLaunchTimeSec[] =
12565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.launch_time_sec";
12575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Time when the app was last known to be running, in seconds since
12595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the epoch.
12605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityLastTimestampSec[] =
12615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.last_timestamp_sec";
12625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This is the location of a list of dictionaries of plugin stability stats.
12645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginStats[] =
12655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.plugin_stats2";
12665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the renderer has become non-responsive since the last
12685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// report.
12695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityRendererHangCount[] =
12705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.renderer_hang_count";
12715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Total number of child process crashes (other than renderer / extension
12735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer ones, and plugin children, which are counted separately) since the
12745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last report.
12755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityChildProcessCrashCount[] =
12765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.child_process_crash_count";
12775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Chrome OS, total number of non-Chrome user process crashes
12795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// since the last report.
12805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityOtherUserCrashCount[] =
12815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.other_user_crash_count";
12825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Chrome OS, total number of kernel crashes since the last report.
12845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityKernelCrashCount[] =
12855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.kernel_crash_count";
12865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Chrome OS, total number of unclean system shutdowns since the
12885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last report.
12895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilitySystemUncleanShutdownCount[] =
12905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.system_unclean_shutdowns";
12915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the browser has been able to register crash reporting.
12935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityBreakpadRegistrationSuccess[] =
12945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.breakpad_registration_ok";
12955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the browser has failed to register crash reporting.
12975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityBreakpadRegistrationFail[] =
12985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.breakpad_registration_fail";
12995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the browser has been run under a debugger.
13015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityDebuggerPresent[] =
13025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.debugger_present";
13035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of times the browser has not been run under a debugger.
13055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityDebuggerNotPresent[] =
13065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.stability.debugger_not_present";
13075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The keys below are used for the dictionaries in the
13095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kStabilityPluginStats list.
13105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginName[] = "name";
13115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginLaunches[] = "launches";
13125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginInstances[] = "instances";
13135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginCrashes[] = "crashes";
13145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStabilityPluginLoadingErrors[] = "loading_errors";
13155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The keys below are strictly increasing counters over the lifetime of
13175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a chrome installation. They are (optionally) sent up to the uninstall
13185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// survey in the event of uninstallation.
13195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallMetricsPageLoadCount[] =
13205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.page_load_count";
13215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count";
13225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallMetricsInstallDate[] =
13235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.installation_date2";
13245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec";
13255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallLastLaunchTimeSec[] =
13265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.last_launch_time_sec";
13275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstallLastObservedRunTimeSec[] =
13285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "uninstall_metrics.last_observed_running_time_sec";
13295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the browser
13315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// window to restore on startup.
13325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBrowserWindowPlacement[] = "browser.window_placement";
13335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the task
13355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// manager window to restore on startup.
13365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
13375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the keyword
13395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// editor window to restore on startup.
13405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kKeywordEditorWindowPlacement[] = "keyword_editor.window_placement";
13415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A collection of position, size, and other data relating to the preferences
13435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// window to restore on startup.
13445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPreferencesWindowPlacement[] = "preferences.window_placement";
13455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer specifying the total number of bytes to be used by the
13475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer's in-memory cache of objects.
13485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMemoryCacheSize[] = "renderer.memory_cache.size";
13495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies where to download files to by default.
13515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDownloadDefaultDirectory[] = "download.default_directory";
13525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that records if the download directory was changed by an
13545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// upgrade a unsafe location to a safe location.
13555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDownloadDirUpgraded[] = "download.directory_upgrade";
13565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies where to save html files to by default.
13585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
13595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The type used to save the page. See the enum SavePackage::SavePackageType in
13615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the chrome/browser/download/save_package.h for the possible values.
13625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSaveFileType[] = "savefile.type";
13635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies the last directory that was chosen for uploading
13655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// or opening a file.
13665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSelectFileLastDirectory[] = "selectfile.last_directory";
13675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies if file selection dialogs are shown.
13695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
13705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Map of default tasks, associated by MIME type.
13725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultTasksByMimeType[] =
13735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "filebrowser.tasks.default_by_mime_type";
13745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Map of default tasks, associated by file suffix.
13765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDefaultTasksBySuffix[] =
13775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "filebrowser.tasks.default_by_suffix";
13785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Extensions which should be opened upon completion.
13805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
13815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer which specifies the frequency in milliseconds for detecting whether
13835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// plugin windows are hung.
13845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
13855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer which specifies the timeout value to be used for SendMessageTimeout
13875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to detect a hung plugin window.
13885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginMessageResponseTimeout[] =
13895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.plugin_message_response_timeout";
13905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which represents the dictionary name for our spell-checker.
13925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpellCheckDictionary[] = "spellcheck.dictionary";
13935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean pref indicating whether the spelling confirm dialog has been shown.
13955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpellCheckConfirmDialogShown[] = "spellcheck.confirm_dialog_shown";
13965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which represents whether we use the spelling service.
13985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
13995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary of schemes used by the external protocol handler.
14015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value is true if the scheme must be ignored.
14025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
14035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Keys used for MAC handling of SafeBrowsing requests.
14055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
14065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
14075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer that specifies the index of the tab the user was on when they
14095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last visited the options window.
14105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
14115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer that specifies the index of the tab the user was on when they
14135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last visited the content settings window.
14145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettingsWindowLastTabIndex[] =
14155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "content_settings_window.last_tab_index";
14165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer that specifies the index of the tab the user was on when they
14185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// last visited the Certificate Manager window.
14195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCertificateManagerWindowLastTabIndex[] =
14205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "certificate_manager_window.last_tab_index";
14215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies if the first run bubble should be shown.
14235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This preference is only registered by the first-run procedure.
14245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShouldShowFirstRunBubble[] = "show-first-run-bubble";
14255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Signal that we should show the welcome page when we launch Chrome.
14275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShouldShowWelcomePage[] = "show-welcome-page";
14285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the last known Google URL.  We re-detect this on startup in
14305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// most cases, and use it to send traffic to the correct Google host or with the
14315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// correct Google domain/country code for whatever location the user is in.
14325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLastKnownGoogleURL[] = "browser.last_known_google_url";
14335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the last prompted Google URL to the user.
14355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If the user is using .x TLD for Google URL and gets prompted about .y TLD
14365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for Google URL, and says "no", we should leave the search engine set to .x
14375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// but not prompt again until the domain changes away from .y.
14385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLastPromptedGoogleURL[] = "browser.last_prompted_google_url";
14395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the last known intranet redirect URL, if any.  See
14415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// intranet_redirect_detector.h for more information.
14425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
14435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer containing the system Country ID the first time we checked the
14455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// template URL prepopulate data.  This is used to avoid adding a whole bunch of
14465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// new search engine choices if prepopulation runs when the user's Country ID
14475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// differs from their previous Country ID.  This pref does not exist until
14485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// prepopulation has been run at least once.
14495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCountryIDAtInstall[] = "countryid_at_install";
14505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OBSOLETE. Same as above, but uses the Windows-specific GeoID value instead.
14515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Updated if found to the above key.
14525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeoIDAtInstall[] = "geoid_at_install";
14535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An enum value of how the browser was shut down (see browser_shutdown.h).
14555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShutdownType[] = "shutdown.type";
14565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of processes that were open when the user shut down.
14575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShutdownNumProcesses[] = "shutdown.num_processes";
14585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of processes that were shut down using the slow path.
14595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
14605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to restart the current Chrome session automatically as the last thing
14625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// before shutting everything down.
14635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
14645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set before autorestarting Chrome, cleared on clean exit.
14665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWasRestarted[] = "was.restarted";
14675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_WIN)
14695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Windows 8 chrome can restart in desktop or in metro mode.
14705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestartSwitchMode[] = "restart.switch_mode";
14715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
14725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of bookmarks/folders on the bookmark bar/other bookmark folder.
14745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNumBookmarksOnBookmarkBar[] =
14755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.num_bookmarks_on_bookmark_bar";
14765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNumFoldersOnBookmarkBar[] =
14775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.num_folders_on_bookmark_bar";
14785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNumBookmarksInOtherBookmarkFolder[] =
14795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.num_bookmarks_in_other_bookmark_folder";
14805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNumFoldersInOtherBookmarkFolder[] =
14815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "user_experience_metrics.num_folders_in_other_bookmark_folder";
14825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Number of keywords.
14845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNumKeywords[] = "user_experience_metrics.num_keywords";
14855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Placeholder preference for disabling voice / video chat if it is ever added.
14875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Currently, this does not change any behavior.
14885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableVideoAndChat[] = "disable_video_chat";
14895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether Extensions are enabled.
14915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableExtensions[] = "extensions.disabled";
14925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether the plugin finder that lets you install missing plug-ins is enabled.
14945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
14955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer boolean representing the width (in pixels) of the container for
14975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser actions.
14985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBrowserActionContainerWidth[] =
14995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "extensions.browseractions.container.width";
15005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The sites that are allowed to install extensions. These sites should be
15025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// allowed to install extensions without the scary dangerous downloads bar.
15035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Also, when off-store-extension installs are disabled, these sites are exempt.
15045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionAllowedInstallSites[] = "extensions.allowed_install_sites";
15055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A whitelist of extension ids the user can install: exceptions from the
15075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// following blacklist.
15085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionInstallAllowList[] = "extensions.install.allowlist";
15095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A blacklist, containing extensions the user cannot install. This list can
15115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// contain "*" meaning all extensions. This list should not be confused with the
15125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// extension blacklist, which is Google controlled.
15135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionInstallDenyList[] = "extensions.install.denylist";
15145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether we have run the extension-alert system (see ExtensionGlobalError)
15165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// at least once for this profile.
15175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionAlertsInitializedPref[] = "extensions.alerts.initialized";
15185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A list containing extensions that Chrome will silently install
15205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// at startup time. It is a list of strings, each string contains
15215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// an extension ID and an update URL, delimited by a semicolon.
15225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This preference is set by an admin policy, and meant to be only
15235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// accessed through extensions::ExternalPolicyProvider.
15245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionInstallForceList[] = "extensions.install.forcelist";
15255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Time of the last, and next scheduled, extensions auto-update checks.
15275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLastExtensionsUpdateCheck[] = "extensions.autoupdate.last_check";
15285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNextExtensionsUpdateCheck[] = "extensions.autoupdate.next_check";
15295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Version number of last blacklist check
15305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionBlacklistUpdateVersion[] =
15315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "extensions.blacklistupdate.version";
15325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Keeps track of which sessions are collapsed in the Other Devices menu.
15345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
15355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// New Tab Page URLs that should not be shown as most visited thumbnails.
15375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
15385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Last time of update of promo_resource_cache.
15405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update";
15415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Serves tips for the NTP.
15435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpTipsResourceServer[] = "ntp.tips_resource_server";
15445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Serves dates to determine display of elements on the NTP.
15465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpDateResourceServer[] = "ntp.date_resource_server";
15475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Which bookmarks folder should be visible on the new tab page v4.
15495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
15505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Which page should be visible on the new tab page v4
15525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpShownPage[] = "ntp.shown_page";
15535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// True if a desktop sync session was found for this user.
15555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found";
15565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean indicating whether the web store is active for the current locale.
15585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled";
15595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The id of the last web store promo actually displayed on the NTP.
15615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoLastId[] = "ntp.webstore_last_promo_id";
15625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The id of the current web store promo.
15645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoId[] = "ntp.webstorepromo.id";
15655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The header line for the NTP web store promo.
15675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoHeader[] = "ntp.webstorepromo.header";
15685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The button text for the NTP web store promo.
15705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoButton[] = "ntp.webstorepromo.button";
15715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The button link for the NTP web store promo.
15735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoLink[] = "ntp.webstorepromo.link";
15745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The image URL for the NTP web store promo logo.
15765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoLogo[] = "ntp.webstorepromo.logo";
15775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The original URL for the NTP web store promo logo.
15795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoLogoSource[] = "ntp.webstorepromo.logo_source";
15805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The "hide this" link text for the NTP web store promo.
15825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoExpire[] = "ntp.webstorepromo.expire";
15835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies what users should maximize the NTP web store promo.
15855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpWebStorePromoUserGroup[] = "ntp.webstorepromo.usergroup";
15865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Customized app page names that appear on the New Tab Page.
15885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNtpAppPageNames[] = "ntp.app_page_names";
15895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsDisabled[] = "devtools.disabled";
15915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string specifying the dock location (either 'bottom' or 'right').
15935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsDockSide[] = "devtools.dock_side";
15945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Maps of files edited locally using DevTools.
15965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsEditedFiles[] = "devtools.edited_files";
15975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer location of the horizontal split bar in the browser view.
15995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsHSplitLocation[] = "devtools.split_location";
16005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether dev tools window should be opened docked.
16025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsOpenDocked[] = "devtools.open_docked";
16035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
16055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether remote dev tools debugging is enabled.
16065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
16075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
16085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integer location of the vertical split bar in the browser view.
16105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevToolsVSplitLocation[] = "devtools.v_split_location";
16115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
16135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean specifying whether a SPDY proxy is enabled.
16145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpdyProxyEnabled[] = "spdy_proxy.enabled";
16155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
16165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 64-bit integer serialization of the base::Time when the last sync occurred.
16185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncLastSyncedTime[] = "sync.last_synced_time";
16195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean specifying whether the user finished setting up sync.
16215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncHasSetupCompleted[] = "sync.has_setup_completed";
16225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean specifying whether to automatically sync all data types (including
16245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// future ones, as they're added).  If this is true, the following preferences
16255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored.
16265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncKeepEverythingSynced[] = "sync.keep_everything_synced";
16275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Booleans specifying whether the user has selected to sync the following
16295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// datatypes.
16305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncBookmarks[] = "sync.bookmarks";
16315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncPasswords[] = "sync.passwords";
16325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncPreferences[] = "sync.preferences";
16335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncAppNotifications[] = "sync.app_notifications";
16345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncAppSettings[] = "sync.app_settings";
16355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncApps[] = "sync.apps";
16365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncAutofill[] = "sync.autofill";
16375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncAutofillProfile[] = "sync.autofill_profile";
16385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncThemes[] = "sync.themes";
16395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncTypedUrls[] = "sync.typed_urls";
16405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncExtensions[] = "sync.extensions";
16415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncExtensionSettings[] = "sync.extension_settings";
16425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncSearchEngines[] = "sync.search_engines";
16435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncSessions[] = "sync.sessions";
16445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncHistoryDeleteDirectives[] = "sync.history_delete_directives";
16455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean used by enterprise configuration management in order to lock down
16475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// sync.
16485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncManaged[] = "sync.managed";
16495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean to prevent sync from automatically starting up.  This is
16515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// used when sync is disabled by the user via the privacy dashboard.
16525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncSuppressStart[] = "sync.suppress_start";
16535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of the currently acknowledged set of sync types, used to figure out
16555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// if a new sync type has rolled out so we can notify the user.
16565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncAcknowledgedSyncTypes[] = "sync.acknowledged_types";
16575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary from sync model type (as an int) to max invalidation
16595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// version (int64 represented as a string).
16605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncMaxInvalidationVersions[] = "sync.max_invalidation_versions";
16615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GUID session sync will use to identify this client, even across sync
16635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// disable/enable events.
16645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncSessionsGUID[] = "sync.session_sync_guid";
16655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Opaque state from the invalidation subsystem that is persisted via prefs.
16675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value is base 64 encoded.
16685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInvalidatorInvalidationState[] = "invalidator.invalidation_state";
16695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of {source, name, max invalidation version} tuples. source is an int,
16715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// while max invalidation version is an int64; both are stored as string
16725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// representations though.
16735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInvalidatorMaxInvalidationVersions[] =
16745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "invalidator.max_invalidation_versions";
16755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string that can be used to restore sync encryption infrastructure on
16775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// startup so that the user doesn't need to provide credentials on each start.
16785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncEncryptionBootstrapToken[] =
16795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "sync.encryption_bootstrap_token";
16805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Same as kSyncEncryptionBootstrapToken, but derived from the keystore key,
16825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// so we don't have to do a GetKey command at restart.
16835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncKeystoreEncryptionBootstrapToken[] =
16845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "sync.keystore_encryption_bootstrap_token";
16855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean tracking whether the user chose to specify a secondary encryption
16875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// passphrase.
16885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncUsingSecondaryPassphrase[] = "sync.using_secondary_passphrase";
16895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String the identifies the last user that logged into sync and other
16915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// google services. As opposed to kGoogleServicesUsername, this value is not
16925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// cleared on signout, but while the user is signed in the two values will
16935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be the same.
16945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGoogleServicesLastUsername[] = "google.services.last_username";
16955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that identifies the current user logged into sync and other google
16975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// services.
16985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGoogleServicesUsername[] = "google.services.username";
16995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Local state pref containing a string regex that restricts which accounts
17015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// can be used to log in to chrome (e.g. "*@google.com"). If missing or blank,
17025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// all accounts are allowed (no restrictions).
17035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGoogleServicesUsernamePattern[] =
17045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "google.services.username_pattern";
17055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
17075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tracks the number of times that we have shown the sync promo at startup.
17085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncPromoStartupCount[] = "sync_promo.startup_count";
17095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A counter to remember the number of times we've been to the sync promo page
17115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (not at startup).
17125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncPromoViewCount[] = "sync_promo.view_count";
17135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean tracking whether the user chose to skip the sync promo.
17155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncPromoUserSkipped[] = "sync_promo.user_skipped";
17165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies if the sync promo is allowed to show on first run.
17185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This preference is specified in the master preference file to suppress the
17195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// sync promo for some installations.
17205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncPromoShowOnFirstRunAllowed[] =
17215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "sync_promo.show_on_first_run_allowed";
17225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies if we should show a bubble in the new tab page.
17245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The bubble is used to confirm that the user is signed into sync.
17255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
17265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
17275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Time when the user's GAIA info was last updated (represented as an int64).
17295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
17305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL from which the GAIA profile picture was downloaded. This is cached to
17325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// prevent the same picture from being downloaded multiple times.
17335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url";
17345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Create web application shortcut dialog preferences.
17365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
17375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
17385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWebAppCreateInQuickLaunchBar[] =
17395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.web_app.create_in_quick_launch_bar";
17405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary that maps Geolocation network provider server URLs to
17425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// corresponding access token.
17435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGeolocationAccessToken[] = "geolocation.access_token";
17445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that indicates whether to allow firewall traversal while trying to
17465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// establish the initial connection from the client or host.
17475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostFirewallTraversal[] =
17485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_firewall_traversal";
17495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether 2-factor auth should be required when connecting
17515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to a host (instead of a PIN).
17525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostRequireTwoFactor[] =
17535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_require_two_factor";
17545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the domain name that hosts must belong to. If blank, then
17565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// hosts can belong to any domain.
17575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostDomain[] = "remote_access.host_domain";
17585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String containing the domain name of the Chromoting Directory.
17605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used by Chromoting host and client.
17615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostTalkGadgetPrefix[] =
17625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_talkgadget_prefix";
17635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean controlling whether curtaining is required when connecting to a host.
17655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteAccessHostRequireCurtain[] =
17665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "remote_access.host_require_curtain";
17675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The last used printer and its settings.
17695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrintPreviewStickySettings[] =
17705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "printing.print_preview_sticky_settings";
17715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The root URL of the cloud print service.
17725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintServiceURL[] = "cloud_print.service_url";
17735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL to use to sign in to cloud print.
17755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSigninURL[] = "cloud_print.signin_url";
17765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The last requested size of the dialog as it was closed.
17785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
17795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
17805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSigninDialogWidth[] =
17815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "cloud_print.signin_dialog_size.width";
17825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSigninDialogHeight[] =
17835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "cloud_print.signin_dialog_size.height";
17845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
17865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The Chrome To Mobile service mobile device list pref.
17875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kChromeToMobileDeviceList[] = "chrome_to_mobile.device_list";
17885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
17895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The list of BackgroundContents that should be loaded when the browser
17915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// launches.
17925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRegisteredBackgroundContents[] = "background_contents.registered";
17935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if !defined(OS_ANDROID)
17955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An int that stores how often we've shown the "Chrome is configured to
17965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// auto-launch" infobar.
17975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
17985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
17995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that lists supported HTTP authentication schemes.
18015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthSchemes[] = "auth.schemes";
18025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to disable CNAME lookups when generating
18045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Kerberos SPN.
18055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableAuthNegotiateCnameLookup[] =
18065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "auth.disable_negotiate_cname_lookup";
18075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to include the port in a generated Kerberos
18095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// SPN.
18105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
18115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whitelist containing servers for which Integrated Authentication is enabled.
18135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthServerWhitelist[] = "auth.server_whitelist";
18145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whitelist containing servers Chrome is allowed to do Kerberos delegation
18165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// with.
18175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthNegotiateDelegateWhitelist[] =
18185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "auth.negotiate_delegate_whitelist";
18195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that specifies the name of a custom GSSAPI library to load.
18215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
18225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that specifies the origin allowed to use SpdyProxy
18245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// authentication, if any.
18255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpdyProxyOrigin[] = "auth.spdyproxy.origin";
18265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean that specifies whether to allow basic auth prompting on cross-
18285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// domain sub-content requests.
18295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
18305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An int64 pref that contains the total size of all HTTP content that has been
18325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// received from the network.
18335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHttpReceivedContentLength[] = "http_received_content_length";
18345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An int64 pref that contains the total original size of all HTTP content that
18365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// was received over the network.
18375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHttpOriginalContentLength[] = "http_original_content_length";
18385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
18405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Dictionary for transient storage of settings that should go into device
18415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// settings storage before owner has been assigned.
18425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceSettingsCache[] = "signed_settings_cache";
18435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The hardware keyboard layout of the device. This should look like
18455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "xkb:us::eng".
18465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
18475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref which shows number of times carrier deal promo
18495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// notification has been shown to user.
18505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCarrierDealPromoShown[] =
18515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "settings.internet.mobile.carrier_deal_promo_shown";
18525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean pref of the auto-enrollment decision. Its value is only valid if
18545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it's not the default value; otherwise, no auto-enrollment decision has been
18555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// made yet.
18565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
18575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An integer pref with the maximum number of bits used by the client in a
18595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// previous auto-enrollment request. If the client goes through an auto update
18605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// during OOBE and reboots into a version of the OS with a larger maximum
18615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// modulus, then it will retry auto-enrollment using the updated value.
18625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
18635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The local state pref that stores device activity times before reporting
18655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// them to the policy server.
18665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceActivityTimes[] = "device_status.activity_times";
18675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the last known location when device location reporting is
18695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enabled.
18705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceLocation[] = "device_status.location";
18715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A string that is used to store first-time sync startup after once sync is
18735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// disabled. This will be refreshed every sign-in.
18745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncSpareBootstrapToken[] = "sync.spare_bootstrap_token";
18755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the value of the policy used to disable mounting of external
18775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// storage for the user.
18785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
18795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the value of the policy used to disable playing audio on
18815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite
18825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it, therefore when the policy is lifted the original mute state is restored.
18835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioOutputAllowed[] = "hardware.audio_output_enabled";
18845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A pref holding the value of the policy used to disable capturing audio on
18865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// ChromeOS devices.
18875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
18885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A dictionary that maps usernames to wallpaper properties.
18905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUsersWallpaperInfo[] = "user_wallpaper_info";
18915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copy of owner swap mouse buttons option to use on login screen.
18935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
18945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copy of owner tap-to-click option to use on login screen.
18965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
18975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
18985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
18995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether there is a Flash version installed that supports clearing LSO data.
19005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
19015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether we should show Pepper Flash-specific settings.
19035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPepperFlashSettingsEnabled[] =
19045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "browser.pepper_flash_settings_enabled";
19055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String which specifies where to store the disk cache.
19075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDiskCacheDir[] = "browser.disk_cache_dir";
19085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pref name for the policy specifying the maximal cache size.
19095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDiskCacheSize[] = "browser.disk_cache_size";
19105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pref name for the policy specifying the maximal media cache size.
19115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaCacheSize[] = "browser.media_cache_size";
19125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the release channel that the device should be locked to.
19145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Possible values: "stable-channel", "beta-channel", "dev-channel", or an
19155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// empty string, in which case the value will be ignored.
19165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// TODO(dubroy): This preference may not be necessary once
19175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// http://crosbug.com/17015 is implemented and the update engine can just
19185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// fetch the correct value from the policy.
19195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
19205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Value of the enums in TabStrip::LayoutType as an int.
19225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTabStripLayoutType[] = "tab_strip_layout_type";
19235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If true, cloud policy for the user is loaded once the user signs in.
19255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLoadCloudPolicyOnSignin[] = "policy.load_cloud_policy_on_signin";
19265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Indicates that factory reset was requested from options page.
19285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kFactoryResetRequested[] = "FactoryResetRequested";
19295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// *************** SERVICE PREFS ***************
19315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These are attached to the service process.
19325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintRoot[] = "cloud_print";
19345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
19355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The unique id for this instance of the cloud print proxy.
19365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
19375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GAIA auth token for Cloud Print
19385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
19395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The GAIA auth token used by Cloud Print to authenticate with the XMPP server
19405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This should eventually go away because the above token should work for both.
19415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token";
19425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The email address of the account used to authenticate with the Cloud Print
19435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// server.
19445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintEmail[] = "cloud_print.email";
19455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Settings specific to underlying print system.
19465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintPrintSystemSettings[] =
19475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "cloud_print.print_system_settings";
19485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether we should poll for print jobs when don't have
19495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// an XMPP connection (false by default).
19505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
19515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
19525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
19535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether we should connect to cloud print new printers.
19545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintConnectNewPrinters[] = "cloud_print.connect_new_printers";
19555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether we should ping XMPP connection.
19565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
19575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// An int value indicating the average timeout between xmpp pings.
19585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
19595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of printers which should not be connected.
19605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintPrinterBlacklist[] = "cloud_print.printer_blacklist";
19615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A boolean indicating whether submitting jobs to Google Cloud Print is
19625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// blocked by policy.
19635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
19645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preference to store proxy settings.
19665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProxy[] = "proxy";
19675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
19685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preferences that are exclusively used to store managed values for default
19705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// content settings.
19715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultCookiesSetting[] =
19725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.cookies";
19735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultImagesSetting[] =
19745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.images";
19755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultJavaScriptSetting[] =
19765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.javascript";
19775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultPluginsSetting[] =
19785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.plugins";
19795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultPopupsSetting[] =
19805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.popups";
19815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultGeolocationSetting[] =
19825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.geolocation";
19835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultNotificationsSetting[] =
19845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.notifications";
19855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedDefaultMediaStreamSetting[] =
19865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_default_content_settings.media_stream";
19875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
19885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Preferences that are exclusively used to store managed
19895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// content settings patterns.
19905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedCookiesAllowedForUrls[] =
19915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_cookies_allowed_for_urls";
19925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedCookiesBlockedForUrls[] =
19935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_cookies_blocked_for_urls";
19945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedCookiesSessionOnlyForUrls[] =
19955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_cookies_sessiononly_for_urls";
19965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedImagesAllowedForUrls[] =
19975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_images_allowed_for_urls";
19985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedImagesBlockedForUrls[] =
19995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_images_blocked_for_urls";
20005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedJavaScriptAllowedForUrls[] =
20015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_javascript_allowed_for_urls";
20025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedJavaScriptBlockedForUrls[] =
20035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_javascript_blocked_for_urls";
20045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPluginsAllowedForUrls[] =
20055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_plugins_allowed_for_urls";
20065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPluginsBlockedForUrls[] =
20075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_plugins_blocked_for_urls";
20085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPopupsAllowedForUrls[] =
20095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_popups_allowed_for_urls";
20105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedPopupsBlockedForUrls[] =
20115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_popups_blocked_for_urls";
20125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedNotificationsAllowedForUrls[] =
20135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_notifications_allowed_for_urls";
20145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedNotificationsBlockedForUrls[] =
20155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_notifications_blocked_for_urls";
20165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kManagedAutoSelectCertificateForUrls[] =
20175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "profile.managed_auto_select_certificate_for_urls";
20185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set to true if the user created a login item so we should not modify it when
20205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// uninstalling background apps.
20215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUserCreatedLoginItem[] = "background_mode.user_created_login_item";
20225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set to true if the user removed our login item so we should not create a new
20245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// one when uninstalling background apps.
20255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
20265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Set to true if background mode is enabled on this browser.
20285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBackgroundModeEnabled[] = "background_mode.enabled";
20295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of protocol handlers.
20315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRegisteredProtocolHandlers[] =
20325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "custom_handlers.registered_protocol_handlers";
20335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// List of protocol handlers the user has requested not to be asked about again.
20355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIgnoredProtocolHandlers[] =
20365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  "custom_handlers.ignored_protocol_handlers";
20375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether user-specified handlers for protocols and content types can be
20395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specified.
20405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
20415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Integers that specify the policy refresh rate for device- and user-policy in
20435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// milliseconds. Not all values are meaningful, so it is clamped to a sane range
20445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// by the cloud policy subsystem.
20455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
20465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate";
20475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that represents the recovery component last downloaded version. This
20495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// takes the usual 'a.b.c.d' notation.
20505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRecoveryComponentVersion[] = "recovery_component.version";
20515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String that stores the component updater last known state. This is used for
20535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// troubleshooting.
20545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kComponentUpdaterState[] = "component_updater.state";
20555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The next media gallery ID to assign.
20575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
20585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A list of dictionaries, where each dictionary represents a known media
20605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// gallery.
20615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaGalleriesRememberedGalleries[] =
20625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "media_galleries.remembered_galleries";
20635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(USE_AURA)
20655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
20665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// local variant is not synced and is used if set. If the local variant is not
20675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// set its value is set from the synced value (once prefs have been
20685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// synced). This gives a per-machine setting that is initialized from the last
20695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// set value.
20705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String value corresponding to ash::Shell::ShelfAlignment.
20715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAlignment[] = "shelf_alignment";
20725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAlignmentLocal[] = "shelf_alignment_local";
20735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// String value corresponding to ash::Shell::ShelfAutoHideBehavior.
20745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
20755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
20765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean value indicating whether to use default pinned apps.
20775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUseDefaultPinnedApps[] = "use_default_pinned_apps";
20785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPinnedLauncherApps[] =
20795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "pinned_launcher_apps";
20805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Boolean value indicating whether to show a logout button in the ash tray.
20815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
20825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
20835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLongPressTimeInSeconds[] =
20845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.long_press_time_in_seconds";
20855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxDistanceBetweenTapsForDoubleTap[] =
20865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_distance_between_taps_for_double_tap";
20875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxDistanceForTwoFingerTapInPixels[] =
20885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_distance_for_two_finger_tap_in_pixels";
20895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxSecondsBetweenDoubleClick[] =
20905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_seconds_between_double_click";
20915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxSeparationForGestureTouchesInPixels[] =
20925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_separation_for_gesture_touches_in_pixels";
20935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxSwipeDeviationRatio[] =
20945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_swipe_deviation_ratio";
20955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxTouchDownDurationInSecondsForClick[] =
20965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_touch_down_duration_in_seconds_for_click";
20975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxTouchMoveInPixelsForClick[] =
20985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.max_touch_move_in_pixels_for_click";
20995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinDistanceForPinchScrollInPixels[] =
21005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_distance_for_pinch_scroll_in_pixels";
21015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinFlickSpeedSquared[] =
21025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_flick_speed_squared";
21035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinPinchUpdateDistanceInPixels[] =
21045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_pinch_update_distance_in_pixels";
21055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinRailBreakVelocity[] =
21065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_rail_break_velocity";
21075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinScrollDeltaSquared[] =
21085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_scroll_delta_squared";
21095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinSwipeSpeed[] =
21105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_swipe_speed";
21115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMinTouchDownDurationInSecondsForClick[] =
21125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.min_touch_down_duration_in_seconds_for_click";
21135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPointsBufferedForVelocity[] =
21145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.points_buffered_for_velocity";
21155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRailBreakProportion[] =
21165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.rail_break_proportion";
21175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRailStartProportion[] =
21185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.rail_start_proportion";
21195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSemiLongPressTimeInSeconds[] =
21205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.semi_long_press_time_in_seconds";
21215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTouchScreenFlingAccelerationAdjustment[] =
21225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "gesture.touchscreen_fling_acceleration_adjustment";
21235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
21245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Indicates whether the browser is in managed mode.
21265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInManagedMode[] = "managed_mode";
21275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Counts how many more times the 'profile on a network share' warning should be
21295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// shown to the user before the next silence period.
21305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
21315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tracks the time of the last shown warning. Used to reset
21325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |network_profile.warnings_left| after a silence period.
21335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetworkProfileLastWarningTime[] =
21345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "network_profile.last_warning_time";
21355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 64-bit serialization of the time last policy usage statistics were collected
21375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// by UMA_HISTOGRAM_ENUMERATION.
21385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update";
21395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
21405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace prefs
2141