pref_names.cc revision cedac228d2dd51db4b79ea1e72c7f249408ee061
110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Copyright (c) 2012 The Chromium Authors. All rights reserved. 210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Use of this source code is governed by a BSD-style license that can be 310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// found in the LICENSE file. 410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project#include "chrome/common/pref_names.h" 610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project#include "base/basictypes.h" 810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project#include "chrome/common/pref_font_webkit_names.h" 910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 1010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectnamespace prefs { 1110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 1210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// *************** PROFILE PREFS *************** 1310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// These are attached to the user profile 1410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 1510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// A string property indicating whether default apps should be installed 1610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// in this profile. Use the value "install" to enable defaults apps, or 1710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// "noinstall" to disable them. This property is usually set in the 1810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// master_preferences and copied into the profile preferences on first run. 1910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Defaults apps are installed only when creating a new profile. 2010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kDefaultApps[] = "default_apps"; 2110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 2210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Whether we have installed default apps yet in this profile. 2310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kDefaultAppsInstalled[] = "default_apps_installed"; 2410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 2510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Disables screenshot accelerators and extension APIs. 2610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// This setting resides both in profile prefs and local state. Accelerator 2710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// handling code reads local state, while extension APIs use profile pref. 2810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kDisableScreenshots[] = "disable_screenshots"; 2910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 3010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// A boolean specifying whether the New Tab page is the home page or not. 3110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; 3210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 3310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// This is the URL of the page to load when opening new tabs. 3410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kHomePage[] = "homepage"; 3510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 3610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Maps host names to whether the host is manually allowed or blocked. 3710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kManagedModeManualHosts[] = "profile.managed.manual_hosts"; 3810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Maps URLs to whether the URL is manually allowed or blocked. 3910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kManagedModeManualURLs[] = "profile.managed.manual_urls"; 4010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 4110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Stores the email address associated with the google account of the custodian 4210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// of the managed user, set when the managed user is created. 4310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kManagedUserCustodianEmail[] = "profile.managed.custodian_email"; 4410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 4510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Stores the display name associated with the google account of the custodian 4610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// of the managed user, updated (if possible) each time the managed user 4710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// starts a session. 4810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kManagedUserCustodianName[] = "profile.managed.custodian_name"; 4910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 5010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Stores settings that can be modified both by a supervised user and their 5110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// manager. See ManagedUserSharedSettingsService for a description of 5210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// the format. 5310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kManagedUserSharedSettings[] = "profile.managed.shared_settings"; 5410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 5510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// An integer that keeps track of the profile icon version. This allows us to 5610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// determine the state of the profile icon for icon format changes. 5710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kProfileIconVersion[] = "profile.icon_version"; 5810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 5910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Used to determine if the last session exited cleanly. Set to false when 6010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// first opened, and to true when closing. On startup if the value is false, 6110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// it means the profile didn't exit cleanly. 6210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// DEPRECATED: this is replaced by kSessionExitType and exists for backwards 6310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// compatibility. 6410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kSessionExitedCleanly[] = "profile.exited_cleanly"; 6510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 6610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// A string pref whose values is one of the values defined by 6710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and 6810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during 6910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// shutdown. Used to determine the exit type the last time the profile was open. 7010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kSessionExitType[] = "profile.exit_type"; 7110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 7210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// An integer pref. Holds one of several values: 7310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// 0: (deprecated) open the homepage on startup. 7410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// 1: restore the last session. 7510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// 2: this was used to indicate a specific session should be restored. It is 7610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// no longer used, but saved to avoid conflict with old preferences. 7710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// 3: unused, previously indicated the user wants to restore a saved session. 7810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// 4: restore the URLs defined in kURLsToRestoreOnStartup. 7910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// 5: open the New Tab Page on startup. 8010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kRestoreOnStartup[] = "session.restore_on_startup"; 8110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 8210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// A preference to keep track of whether we have already checked whether we 8310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. 8410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// We only need to do this check once, on upgrade from m18 or lower to m19 or 8510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// higher. 8610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; 8710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 8810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// The URLs to restore on startup or when the home button is pressed. The URLs 8910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// are only restored on startup if kRestoreOnStartup is 4. 9010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kURLsToRestoreOnStartup[] = "session.startup_urls"; 9110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 9210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Old startup url pref name for kURLsToRestoreOnStartup. 9310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup"; 9410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 9510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Serialized migration time of kURLsToRestoreOnStartup (see 9610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// base::Time::ToInternalValue for details on serialization format). 9710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kRestoreStartupURLsMigrationTime[] = 9810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "session.startup_urls_migration_time"; 9910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 10010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// If set to true profiles are created in ephemeral mode and do not store their 10110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// data in the profile folder on disk but only in memory. 10210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; 10310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 10410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// The application locale. 10510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// For OS_CHROMEOS we maintain kApplicationLocale property in both local state 10610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// and user's profile. Global property determines locale of login screen, 10710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// while user's profile determines his personal locale preference. 10810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kApplicationLocale[] = "intl.app_locale"; 10910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project#if defined(OS_CHROMEOS) 11010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Locale preference of device' owner. ChromeOS device appears in this locale 11110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// after startup/wakeup/signout. 11210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kOwnerLocale[] = "intl.owner_locale"; 11310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Locale accepted by user. Non-syncable. 11410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Used to determine whether we need to show Locale Change notification. 11510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kApplicationLocaleAccepted[] = "intl.app_locale_accepted"; 11610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Non-syncable item. 11710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// It is used in two distinct ways. 11810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// (1) Used for two-step initialization of locale in ChromeOS 11910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// because synchronization of kApplicationLocale is not instant. 12010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// (2) Used to detect locale change. Locale change is detected by 12110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// LocaleChangeGuard in case values of kApplicationLocaleBackup and 12210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// kApplicationLocale are both non-empty and differ. 12310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Following is a table showing how state of those prefs may change upon 12410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// common real-life use cases: 12510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// AppLocale Backup Accepted 12610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Initial login - A - 12710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Sync B A - 12810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Accept (B) B B B 12910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// ----------------------------------------------------------- 13010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Initial login - A - 13110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// No sync and second login A A - 13210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Change options B B - 13310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// ----------------------------------------------------------- 13410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Initial login - A - 13510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Sync A A - 13610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Locale changed on login screen A C - 13710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Accept (A) A A A 13810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// ----------------------------------------------------------- 13910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Initial login - A - 14010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Sync B A - 14110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Revert A A - 14210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kApplicationLocaleBackup[] = "intl.app_locale_backup"; 14310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project#endif 14410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 14510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// The default character encoding to assume for a web page in the 14610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// absence of MIME charset specification 14710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kDefaultCharset[] = "intl.charset_default"; 14810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 14910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// The value to use for Accept-Languages HTTP header when making an HTTP 15010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// request. 15110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kAcceptLanguages[] = "intl.accept_languages"; 15210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 15310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// The value to use for showing locale-dependent encoding list for different 15410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// locale, it's initialized from the corresponding string resource that is 15510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// stored in non-translatable part of the resource bundle. 15610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kStaticEncodings[] = "intl.static_encodings"; 15710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 15810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// If these change, the corresponding enums in the extension API 15910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// experimental.fontSettings.json must also change. 16010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char* const kWebKitScriptsForFontFamilyMaps[] = { 16110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project#define EXPAND_SCRIPT_FONT(x, script_name) script_name , 16210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project#include "chrome/common/pref_font_script_names-inl.h" 16310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source ProjectALL_FONT_SCRIPTS("unused param") 16410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project#undef EXPAND_SCRIPT_FONT 16510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project}; 16610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 16710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst size_t kWebKitScriptsForFontFamilyMapsLength = 16810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project arraysize(kWebKitScriptsForFontFamilyMaps); 16910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 17010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// Strings for WebKit font family preferences. If these change, the pref prefix 17110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// in pref_names_util.cc and the pref format in font_settings_api.cc must also 17210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project// change. 17310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitStandardFontFamilyMap[] = 17410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project WEBKIT_WEBPREFS_FONTS_STANDARD; 17510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitFixedFontFamilyMap[] = 17610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project WEBKIT_WEBPREFS_FONTS_FIXED; 17710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitSerifFontFamilyMap[] = 17810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project WEBKIT_WEBPREFS_FONTS_SERIF; 17910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitSansSerifFontFamilyMap[] = 18010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project WEBKIT_WEBPREFS_FONTS_SANSERIF; 18110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitCursiveFontFamilyMap[] = 18210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project WEBKIT_WEBPREFS_FONTS_CURSIVE; 1835a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Chengconst char kWebKitFantasyFontFamilyMap[] = 1845a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Cheng WEBKIT_WEBPREFS_FONTS_FANTASY; 1855a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Chengconst char kWebKitPictographFontFamilyMap[] = 1865a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Cheng WEBKIT_WEBPREFS_FONTS_PICTOGRAPH; 1875a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Chengconst char kWebKitStandardFontFamilyArabic[] = 1885a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Cheng "webkit.webprefs.fonts.standard.Arab"; 1895a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Chengconst char kWebKitFixedFontFamilyArabic[] = 1905a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Cheng "webkit.webprefs.fonts.fixed.Arab"; 1915a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Chengconst char kWebKitSerifFontFamilyArabic[] = 1925a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Cheng "webkit.webprefs.fonts.serif.Arab"; 1935a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Chengconst char kWebKitSansSerifFontFamilyArabic[] = 1945a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Cheng "webkit.webprefs.fonts.sansserif.Arab"; 1955a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Chengconst char kWebKitStandardFontFamilyCyrillic[] = 1965a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Cheng "webkit.webprefs.fonts.standard.Cyrl"; 1975a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Chengconst char kWebKitFixedFontFamilyCyrillic[] = 1985a4eb4eb367eccd4b976d1feae96cea96d2c50f2Ben Cheng "webkit.webprefs.fonts.fixed.Cyrl"; 19910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitSerifFontFamilyCyrillic[] = 20010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.serif.Cyrl"; 20110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitSansSerifFontFamilyCyrillic[] = 20210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.sansserif.Cyrl"; 20310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitStandardFontFamilyGreek[] = 20410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.standard.Grek"; 20510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitFixedFontFamilyGreek[] = 20610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.fixed.Grek"; 20710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitSerifFontFamilyGreek[] = 20810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.serif.Grek"; 20910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitSansSerifFontFamilyGreek[] = 21010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.sansserif.Grek"; 21110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitStandardFontFamilyJapanese[] = 21210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.standard.Jpan"; 21310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitFixedFontFamilyJapanese[] = 21410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.fixed.Jpan"; 21510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitSerifFontFamilyJapanese[] = 21610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.serif.Jpan"; 21710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitSansSerifFontFamilyJapanese[] = 21810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.sansserif.Jpan"; 21910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitStandardFontFamilyKorean[] = 22010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.standard.Hang"; 22110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitFixedFontFamilyKorean[] = 22210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.fixed.Hang"; 22310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitSerifFontFamilyKorean[] = 22410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.serif.Hang"; 22510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitSansSerifFontFamilyKorean[] = 22610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.sansserif.Hang"; 22710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitCursiveFontFamilyKorean[] = 22810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.cursive.Hang"; 22910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitStandardFontFamilySimplifiedHan[] = 23010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.standard.Hans"; 2318a572b129c9755959b4421970947aeda4119c3b7Mike Doddconst char kWebKitFixedFontFamilySimplifiedHan[] = 23210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.fixed.Hans"; 23310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitSerifFontFamilySimplifiedHan[] = 23410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.serif.Hans"; 23510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitSansSerifFontFamilySimplifiedHan[] = 23610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.sansserif.Hans"; 23710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitStandardFontFamilyTraditionalHan[] = 23810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project "webkit.webprefs.fonts.standard.Hant"; 23910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectconst char kWebKitFixedFontFamilyTraditionalHan[] = 240 "webkit.webprefs.fonts.fixed.Hant"; 241const char kWebKitSerifFontFamilyTraditionalHan[] = 242 "webkit.webprefs.fonts.serif.Hant"; 243const char kWebKitSansSerifFontFamilyTraditionalHan[] = 244 "webkit.webprefs.fonts.sansserif.Hant"; 245 246// WebKit preferences. 247const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; 248const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled"; 249const char kWebKitShrinksStandaloneImagesToFit[] = 250 "webkit.webprefs.shrinks_standalone_images_to_fit"; 251const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings"; 252const char kWebKitUsesUniversalDetector[] = 253 "webkit.webprefs.uses_universal_detector"; 254const char kWebKitTextAreasAreResizable[] = 255 "webkit.webprefs.text_areas_are_resizable"; 256const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; 257const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; 258const char kWebKitAllowDisplayingInsecureContent[] = 259 "webkit.webprefs.allow_displaying_insecure_content"; 260const char kWebKitAllowRunningInsecureContent[] = 261 "webkit.webprefs.allow_running_insecure_content"; 262#if defined(OS_ANDROID) 263const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor"; 264const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom"; 265const char kWebKitPasswordEchoEnabled[] = 266 "webkit.webprefs.password_echo_enabled"; 267#endif 268 269const char kWebKitCommonScript[] = "Zyyy"; 270const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy"; 271const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy"; 272const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy"; 273const char kWebKitSansSerifFontFamily[] = 274 "webkit.webprefs.fonts.sansserif.Zyyy"; 275const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy"; 276const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy"; 277const char kWebKitPictographFontFamily[] = 278 "webkit.webprefs.fonts.pictograph.Zyyy"; 279const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; 280const char kWebKitDefaultFixedFontSize[] = 281 "webkit.webprefs.default_fixed_font_size"; 282const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; 283const char kWebKitMinimumLogicalFontSize[] = 284 "webkit.webprefs.minimum_logical_font_size"; 285const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; 286const char kWebKitJavascriptCanOpenWindowsAutomatically[] = 287 "webkit.webprefs.javascript_can_open_windows_automatically"; 288const char kWebKitLoadsImagesAutomatically[] = 289 "webkit.webprefs.loads_images_automatically"; 290const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled"; 291 292// Boolean that is true when SafeBrowsing is enabled. 293const char kSafeBrowsingEnabled[] = "safebrowsing.enabled"; 294 295// Boolean that tell us whether malicious download feedback is enabled. 296const char kSafeBrowsingDownloadFeedbackEnabled[] = 297 "safebrowsing.download_feedback_enabled"; 298 299// Boolean that is true when SafeBrowsing Malware Report is enabled. 300const char kSafeBrowsingReportingEnabled[] = 301 "safebrowsing.reporting_enabled"; 302 303// Boolean that is true when the SafeBrowsing interstitial should not allow 304// users to proceed anyway. 305const char kSafeBrowsingProceedAnywayDisabled[] = 306 "safebrowsing.proceed_anyway_disabled"; 307 308// Enum that specifies whether Incognito mode is: 309// 0 - Enabled. Default behaviour. Default mode is available on demand. 310// 1 - Disabled. Used cannot browse pages in Incognito mode. 311// 2 - Forced. All pages/sessions are forced into Incognito. 312const char kIncognitoModeAvailability[] = "incognito.mode_availability"; 313 314// Boolean that is true when Suggest support is enabled. 315const char kSearchSuggestEnabled[] = "search.suggest_enabled"; 316 317#if defined(OS_ANDROID) 318// Integer indicating the Contextual Search enabled state. 319// -1 - opt-out (disabled) 320// 0 - undecided 321// 1 - opt-in (enabled) 322const char kContextualSearchEnabled[] = "search.contextual_search_enabled"; 323#endif 324 325// Boolean that indicates whether the browser should put up a confirmation 326// window when the user is attempting to quit. Mac only. 327const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; 328 329// OBSOLETE. Enum that specifies whether to enforce a third-party cookie 330// blocking policy. This has been superseded by kDefaultContentSettings + 331// kBlockThirdPartyCookies. 332// 0 - allow all cookies. 333// 1 - block third-party cookies 334// 2 - block all cookies 335const char kCookieBehavior[] = "security.cookie_behavior"; 336 337// The GUID of the synced default search provider. Note that this acts like a 338// pointer to which synced search engine should be the default, rather than the 339// prefs below which describe the locally saved default search provider details 340// (and are not synced). This is ignored in the case of the default search 341// provider being managed by policy. 342const char kSyncedDefaultSearchProviderGUID[] = 343 "default_search_provider.synced_guid"; 344 345// Whether having a default search provider is enabled. 346const char kDefaultSearchProviderEnabled[] = 347 "default_search_provider.enabled"; 348 349// The URL (as understood by TemplateURLRef) the default search provider uses 350// for searches. 351const char kDefaultSearchProviderSearchURL[] = 352 "default_search_provider.search_url"; 353 354// The URL (as understood by TemplateURLRef) the default search provider uses 355// for suggestions. 356const char kDefaultSearchProviderSuggestURL[] = 357 "default_search_provider.suggest_url"; 358 359// The URL (as understood by TemplateURLRef) the default search provider uses 360// for instant results. 361const char kDefaultSearchProviderInstantURL[] = 362 "default_search_provider.instant_url"; 363 364// The URL (as understood by TemplateURLRef) the default search provider uses 365// for image search results. 366const char kDefaultSearchProviderImageURL[] = 367 "default_search_provider.image_url"; 368 369// The URL (as understood by TemplateURLRef) the default search provider uses 370// for the new tab page. 371const char kDefaultSearchProviderNewTabURL[] = 372 "default_search_provider.new_tab_url"; 373 374// The string of post parameters (as understood by TemplateURLRef) the default 375// search provider uses for searches by using POST. 376const char kDefaultSearchProviderSearchURLPostParams[] = 377 "default_search_provider.search_url_post_params"; 378 379// The string of post parameters (as understood by TemplateURLRef) the default 380// search provider uses for suggestions by using POST. 381const char kDefaultSearchProviderSuggestURLPostParams[] = 382 "default_search_provider.suggest_url_post_params"; 383 384// The string of post parameters (as understood by TemplateURLRef) the default 385// search provider uses for instant results by using POST. 386const char kDefaultSearchProviderInstantURLPostParams[] = 387 "default_search_provider.instant_url_post_params"; 388 389// The string of post parameters (as understood by TemplateURLRef) the default 390// search provider uses for image search results by using POST. 391const char kDefaultSearchProviderImageURLPostParams[] = 392 "default_search_provider.image_url_post_params"; 393 394// The Favicon URL (as understood by TemplateURLRef) of the default search 395// provider. 396const char kDefaultSearchProviderIconURL[] = 397 "default_search_provider.icon_url"; 398 399// The input encoding (as understood by TemplateURLRef) supported by the default 400// search provider. The various encodings are separated by ';' 401const char kDefaultSearchProviderEncodings[] = 402 "default_search_provider.encodings"; 403 404// The name of the default search provider. 405const char kDefaultSearchProviderName[] = "default_search_provider.name"; 406 407// The keyword of the default search provider. 408const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword"; 409 410// The id of the default search provider. 411const char kDefaultSearchProviderID[] = "default_search_provider.id"; 412 413// The prepopulate id of the default search provider. 414const char kDefaultSearchProviderPrepopulateID[] = 415 "default_search_provider.prepopulate_id"; 416 417// The alternate urls of the default search provider. 418const char kDefaultSearchProviderAlternateURLs[] = 419 "default_search_provider.alternate_urls"; 420 421// Search term placement query parameter for the default search provider. 422const char kDefaultSearchProviderSearchTermsReplacementKey[] = 423 "default_search_provider.search_terms_replacement_key"; 424 425// The dictionary key used when the default search providers are given 426// in the preferences file. Normally they are copied from the master 427// preferences file. 428const char kSearchProviderOverrides[] = "search_provider_overrides"; 429// The format version for the dictionary above. 430const char kSearchProviderOverridesVersion[] = 431 "search_provider_overrides_version"; 432 433// Boolean which specifies whether we should ask the user if we should download 434// a file (true) or just download it automatically. 435const char kPromptForDownload[] = "download.prompt_for_download"; 436 437// A boolean pref set to true if we're using Link Doctor error pages. 438const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled"; 439 440// OBSOLETE: new pref now stored with user prefs instead of profile, as 441// kDnsPrefetchingStartupList. 442const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList"; 443 444// An adaptively identified list of domain names to be pre-fetched during the 445// next startup, based on what was actually needed during this startup. 446const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list"; 447 448// OBSOLETE: new pref now stored with user prefs instead of profile, as 449// kDnsPrefetchingHostReferralList. 450const char kDnsHostReferralList[] = "HostReferralList"; 451 452// A list of host names used to fetch web pages, and their commonly used 453// sub-resource hostnames (and expected latency benefits from pre-resolving, or 454// preconnecting to, such sub-resource hostnames). 455// This list is adaptively grown and pruned. 456const char kDnsPrefetchingHostReferralList[] = 457 "dns_prefetching.host_referral_list"; 458 459// Disables the SPDY protocol. 460const char kDisableSpdy[] = "spdy.disabled"; 461 462// Prefs for persisting HttpServerProperties. 463const char kHttpServerProperties[] = "net.http_server_properties"; 464 465// Prefs for server names that support SPDY protocol. 466const char kSpdyServers[] = "spdy.servers"; 467 468// Prefs for servers that support Alternate-Protocol. 469const char kAlternateProtocolServers[] = "spdy.alternate_protocol"; 470 471// Disables the listed protocol schemes. 472const char kDisabledSchemes[] = "protocol.disabled_schemes"; 473 474#if defined(OS_ANDROID) || defined(OS_IOS) 475// Last time that a check for cloud policy management was done. This time is 476// recorded on Android so that retries aren't attempted on every startup. 477// Instead the cloud policy registration is retried at least 1 or 3 days later. 478const char kLastPolicyCheckTime[] = "policy.last_policy_check_time"; 479 480// A list of bookmarks to include in a Managed Bookmarks root node. Each 481// list item is a dictionary containing a "name" and an "url" entry, detailing 482// the bookmark name and target URL respectively. 483const char kManagedBookmarks[] = "policy.managed_bookmarks"; 484#endif 485 486// Prefix URL for the experimental Instant ZeroSuggest provider. 487const char kInstantUIZeroSuggestUrlPrefix[] = 488 "instant_ui.zero_suggest_url_prefix"; 489 490// Used to migrate preferences from local state to user preferences to 491// enable multiple profiles. 492// BITMASK with possible values (see browser_prefs.cc for enum): 493// 0: No preferences migrated. 494// 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList 495// 2: Browser window preferences migrated: kDevToolsSplitLocation and 496// kBrowserWindowPlacement 497const char kMultipleProfilePrefMigration[] = 498 "local_state.multiple_profile_prefs_version"; 499 500// A boolean pref set to true if prediction of network actions is allowed. 501// Actions include DNS prefetching, TCP and SSL preconnection, prerendering 502// of web pages, and resource prefetching. 503// NOTE: The "dns_prefetching.enabled" value is used so that historical user 504// preferences are not lost. 505const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; 506 507// An integer representing the state of the default apps installation process. 508// This value is persisted in the profile's user preferences because the process 509// is async, and the user may have stopped chrome in the middle. The next time 510// the profile is opened, the process will continue from where it left off. 511// 512// See possible values in external_provider_impl.cc. 513const char kDefaultAppsInstallState[] = "default_apps_install_state"; 514 515// A boolean pref set to true if the Chrome Web Store icons should be hidden 516// from the New Tab Page and app launcher. 517const char kHideWebStoreIcon[] = "hide_web_store_icon"; 518 519#if defined(OS_CHROMEOS) 520// A dictionary pref to hold the mute setting for all the currently known 521// audio devices. 522const char kAudioDevicesMute[] = "settings.audio.devices.mute"; 523 524// A dictionary pref storing the volume settings for all the currently known 525// audio devices. 526const char kAudioDevicesVolumePercent[] = 527 "settings.audio.devices.volume_percent"; 528 529// An integer pref to initially mute volume if 1. This pref is ignored if 530// |kAudioOutputAllowed| is set to false, but its value is preserved, therefore 531// when the policy is lifted the original mute state is restored. This setting 532// is here only for migration purposes now. It is being replaced by the 533// |kAudioDevicesMute| setting. 534const char kAudioMute[] = "settings.audio.mute"; 535 536// A double pref storing the user-requested volume. This setting is here only 537// for migration purposes now. It is being replaced by the 538// |kAudioDevicesVolumePercent| setting. 539const char kAudioVolumePercent[] = "settings.audio.volume_percent"; 540 541// An integer pref to record user's spring charger check result. 542// 0 - unknown charger, not checked yet. 543// 1 - confirmed safe charger. 544// 2 - confirmed original charger and declined to order new charger. 545// 3 - confirmed original charger and ordered new charger online. 546// 4 - confirmed original charger and ordered new charger by phone. 547// 5 - confirmed original charger, ordered a new one online, but continue to use 548// the old one. 549// 6 - confirmed original charger, ordered a new one by phone, but continue to 550// use the old one. 551const char kSpringChargerCheck[] = "settings.spring_charger.check_result"; 552 553// A boolean pref set to true if touchpad tap-to-click is enabled. 554const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click"; 555 556// A boolean pref set to true if touchpad tap-dragging is enabled. 557const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging"; 558 559// A boolean pref set to true if touchpad three-finger-click is enabled. 560const char kEnableTouchpadThreeFingerClick[] = 561 "settings.touchpad.enable_three_finger_click"; 562 563// A boolean pref set to true if touchpad natural scrolling is enabled. 564const char kNaturalScroll[] = "settings.touchpad.natural_scroll"; 565 566// A boolean pref set to true if primary mouse button is the left button. 567const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right"; 568 569// A integer pref for the touchpad sensitivity. 570const char kMouseSensitivity[] = "settings.mouse.sensitivity2"; 571 572// A integer pref for the touchpad sensitivity. 573const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2"; 574 575// A boolean pref set to true if time should be displayed in 24-hour clock. 576const char kUse24HourClock[] = "settings.clock.use_24hour_clock"; 577 578// A boolean pref to disable Google Drive integration. 579// The pref prefix should remain as "gdata" for backward compatibility. 580const char kDisableDrive[] = "gdata.disabled"; 581 582// A boolean pref to disable Drive over cellular connections. 583// The pref prefix should remain as "gdata" for backward compatibility. 584const char kDisableDriveOverCellular[] = "gdata.cellular.disabled"; 585 586// A boolean pref to disable hosted files on Drive. 587// The pref prefix should remain as "gdata" for backward compatibility. 588const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled"; 589 590// A string pref set to the current input method. 591const char kLanguageCurrentInputMethod[] = 592 "settings.language.current_input_method"; 593 594// A string pref set to the previous input method. 595const char kLanguagePreviousInputMethod[] = 596 "settings.language.previous_input_method"; 597 598// A string pref (comma-separated list) set to the "next engine in menu" 599// hot-key lists. 600const char kLanguageHotkeyNextEngineInMenu[] = 601 "settings.language.hotkey_next_engine_in_menu"; 602 603// A string pref (comma-separated list) set to the "previous engine" 604// hot-key lists. 605const char kLanguageHotkeyPreviousEngine[] = 606 "settings.language.hotkey_previous_engine"; 607 608// A string pref (comma-separated list) set to the preferred language IDs 609// (ex. "en-US,fr,ko"). 610const char kLanguagePreferredLanguages[] = 611 "settings.language.preferred_languages"; 612 613// A string pref (comma-separated list) set to the preloaded (active) input 614// method IDs (ex. "pinyin,mozc"). 615const char kLanguagePreloadEngines[] = "settings.language.preload_engines"; 616 617// A List pref (comma-separated list) set to the extension IMEs to be enabled. 618const char kLanguageEnabledExtensionImes[] = 619 "settings.language.enabled_extension_imes"; 620 621// Integer prefs which determine how we remap modifier keys (e.g. swap Alt and 622// Control.) Possible values for these prefs are 0-4. See ModifierKey enum in 623// src/chrome/browser/chromeos/input_method/xkeyboard.h 624const char kLanguageRemapSearchKeyTo[] = 625 // Note: we no longer use XKB for remapping these keys, but we can't change 626 // the pref names since the names are already synced with the cloud. 627 "settings.language.xkb_remap_search_key_to"; 628const char kLanguageRemapControlKeyTo[] = 629 "settings.language.xkb_remap_control_key_to"; 630const char kLanguageRemapAltKeyTo[] = 631 "settings.language.xkb_remap_alt_key_to"; 632const char kLanguageRemapCapsLockKeyTo[] = 633 "settings.language.remap_caps_lock_key_to"; 634const char kLanguageRemapDiamondKeyTo[] = 635 "settings.language.remap_diamond_key_to"; 636 637// A boolean pref that causes top-row keys to be interpreted as function keys 638// instead of as media keys. 639const char kLanguageSendFunctionKeys[] = 640 "settings.language.send_function_keys"; 641 642// A boolean pref which determines whether key repeat is enabled. 643const char kLanguageXkbAutoRepeatEnabled[] = 644 "settings.language.xkb_auto_repeat_enabled_r2"; 645// A integer pref which determines key repeat delay (in ms). 646const char kLanguageXkbAutoRepeatDelay[] = 647 "settings.language.xkb_auto_repeat_delay_r2"; 648// A integer pref which determines key repeat interval (in ms). 649const char kLanguageXkbAutoRepeatInterval[] = 650 "settings.language.xkb_auto_repeat_interval_r2"; 651// "_r2" suffixes are added to the three prefs above when we change the 652// preferences not user-configurable, not to sync them with cloud. 653 654// A boolean pref which determines whether the large cursor feature is enabled. 655const char kLargeCursorEnabled[] = "settings.a11y.large_cursor_enabled"; 656 657// A boolean pref which determines whether the sticky keys feature is enabled. 658const char kStickyKeysEnabled[] = "settings.a11y.sticky_keys_enabled"; 659// A boolean pref which determines whether spoken feedback is enabled. 660const char kSpokenFeedbackEnabled[] = "settings.accessibility"; 661// A boolean pref which determines whether high conrast is enabled. 662const char kHighContrastEnabled[] = "settings.a11y.high_contrast_enabled"; 663// A boolean pref which determines whether screen magnifier is enabled. 664const char kScreenMagnifierEnabled[] = "settings.a11y.screen_magnifier"; 665// A integer pref which determines what type of screen magnifier is enabled. 666// Note that: 'screen_magnifier_type' had been used as string pref. Hence, 667// we are using another name pref here. 668const char kScreenMagnifierType[] = "settings.a11y.screen_magnifier_type2"; 669// A double pref which determines a zooming scale of the screen magnifier. 670const char kScreenMagnifierScale[] = "settings.a11y.screen_magnifier_scale"; 671// A boolean pref which determines whether the virtual keyboard is enabled for 672// accessibility. This feature is separate from displaying an onscreen keyboard 673// due to lack of a physical keyboard. 674const char kVirtualKeyboardEnabled[] = "settings.a11y.virtual_keyboard"; 675// A boolean pref which determines whether autoclick is enabled. 676const char kAutoclickEnabled[] = "settings.a11y.autoclick"; 677// An integer pref which determines time in ms between when the mouse cursor 678// stops and when an autoclick is triggered. 679const char kAutoclickDelayMs[] = "settings.a11y.autoclick_delay_ms"; 680// A boolean pref which determines whether the accessibility menu shows 681// regardless of the state of a11y features. 682const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu"; 683 684// A boolean pref which turns on Advanced Filesystem 685// (USB support, SD card, etc). 686const char kLabsAdvancedFilesystemEnabled[] = 687 "settings.labs.advanced_filesystem"; 688 689// A boolean pref which turns on the mediaplayer. 690const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer"; 691 692// A boolean pref that turns on automatic screen locking. 693const char kEnableAutoScreenLock[] = "settings.enable_screen_lock"; 694 695// A boolean pref of whether to show mobile plan notifications. 696const char kShowPlanNotifications[] = 697 "settings.internet.mobile.show_plan_notifications"; 698 699// A boolean pref of whether to show 3G promo notification. 700const char kShow3gPromoNotification[] = 701 "settings.internet.mobile.show_3g_promo_notification"; 702 703// A string pref that contains version where "What's new" promo was shown. 704const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version"; 705 706// A boolean pref that controls whether proxy settings from shared network 707// settings (accordingly from device policy) are applied or ignored. 708const char kUseSharedProxies[] = "settings.use_shared_proxies"; 709 710// Power state of the current displays from the last run. 711const char kDisplayPowerState[] = "settings.display.power_state"; 712// A dictionary pref that stores per display preferences. 713const char kDisplayProperties[] = "settings.display.properties"; 714 715// A dictionary pref that specifies per-display layout/offset information. 716// Its key is the ID of the display and its value is a dictionary for the 717// layout/offset information. 718const char kSecondaryDisplays[] = "settings.display.secondary_displays"; 719 720// A boolean pref indicating whether user activity has been observed in the 721// current session already. The pref is used to restore information about user 722// activity after browser crashes. 723const char kSessionUserActivitySeen[] = "session.user_activity_seen"; 724 725// A preference to keep track of the session start time. If the session length 726// limit is configured to start running after initial user activity has been 727// observed, the pref is set after the first user activity in a session. 728// Otherwise, it is set immediately after session start. The pref is used to 729// restore the session start time after browser crashes. The time is expressed 730// as the serialization obtained from base::TimeTicks::ToInternalValue(). 731const char kSessionStartTime[] = "session.start_time"; 732 733// Holds the maximum session time in milliseconds. If this pref is set, the 734// user is logged out when the maximum session time is reached. The user is 735// informed about the remaining time by a countdown timer shown in the ash 736// system tray. 737const char kSessionLengthLimit[] = "session.length_limit"; 738 739// Whether the session length limit should start running only after the first 740// user activity has been observed in a session. 741const char kSessionWaitForInitialUserActivity[] = 742 "session.wait_for_initial_user_activity"; 743 744// Inactivity time in milliseconds while the system is on AC power before 745// the screen should be dimmed, turned off, or locked, before an 746// IdleActionImminent D-Bus signal should be sent, or before 747// kPowerAcIdleAction should be performed. 0 disables the delay (N/A for 748// kPowerAcIdleDelayMs). 749const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms"; 750const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms"; 751const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms"; 752const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms"; 753const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms"; 754 755// Similar delays while the system is on battery power. 756const char kPowerBatteryScreenDimDelayMs[] = 757 "power.battery_screen_dim_delay_ms"; 758const char kPowerBatteryScreenOffDelayMs[] = 759 "power.battery_screen_off_delay_ms"; 760const char kPowerBatteryScreenLockDelayMs[] = 761 "power.battery_screen_lock_delay_ms"; 762const char kPowerBatteryIdleWarningDelayMs[] = 763 "power.battery_idle_warning_delay_ms"; 764const char kPowerBatteryIdleDelayMs[] = 765 "power.battery_idle_delay_ms"; 766 767// Action that should be performed when the idle delay is reached while the 768// system is on AC power or battery power. 769// Values are from the chromeos::PowerPolicyController::Action enum. 770const char kPowerAcIdleAction[] = "power.ac_idle_action"; 771const char kPowerBatteryIdleAction[] = "power.battery_idle_action"; 772 773// Action that should be performed when the lid is closed. 774// Values are from the chromeos::PowerPolicyController::Action enum. 775const char kPowerLidClosedAction[] = "power.lid_closed_action"; 776 777// Should audio and video activity be used to disable the above delays? 778const char kPowerUseAudioActivity[] = "power.use_audio_activity"; 779const char kPowerUseVideoActivity[] = "power.use_video_activity"; 780 781// Should extensions be able to use the chrome.power API to override 782// screen-related power management (including locking)? 783const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks"; 784 785// Amount by which the screen-dim delay should be scaled while the system 786// is in presentation mode. Values are limited to a minimum of 1.0. 787const char kPowerPresentationScreenDimDelayFactor[] = 788 "power.presentation_screen_dim_delay_factor"; 789 790// Amount by which the screen-dim delay should be scaled when user activity is 791// observed while the screen is dimmed or soon after the screen has been turned 792// off. Values are limited to a minimum of 1.0. 793const char kPowerUserActivityScreenDimDelayFactor[] = 794 "power.user_activity_screen_dim_delay_factor"; 795 796// Whether the power management delays should start running only after the first 797// user activity has been observed in a session. 798const char kPowerWaitForInitialUserActivity[] = 799 "power.wait_for_initial_user_activity"; 800 801// The URL from which the Terms of Service can be downloaded. The value is only 802// honored for public accounts. 803const char kTermsOfServiceURL[] = "terms_of_service.url"; 804 805// Indicates that the Profile has made navigations that used a certificate 806// installed by the system administrator. If that is true then the local cache 807// of remote data is tainted (e.g. shared scripts), and future navigations 808// show a warning indicating that the organization may track the browsing 809// session. 810const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once"; 811 812// Indicates whether the remote attestation is enabled for the user. 813const char kAttestationEnabled[] = "attestation.enabled"; 814// The list of extensions allowed to use the platformKeysPrivate API for 815// remote attestation. 816const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist"; 817 818// A boolean pref indicating whether the projection touch HUD is enabled or not. 819const char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled"; 820 821// A pref to configure networks. Its value must be a list of 822// NetworkConfigurations according to the OpenNetworkConfiguration 823// specification. 824// Currently, this pref is only used to store the policy. The user's 825// configuration is still stored in Shill. 826const char kOpenNetworkConfiguration[] = "onc"; 827 828// A boolean pref that tracks whether the user has already given consent for 829// enabling remote attestation for content protection. 830const char kRAConsentFirstTime[] = "settings.privacy.ra_consent"; 831 832// A boolean pref recording whether user has dismissed the multiprofile 833// itroduction dialog show. 834const char kMultiProfileNeverShowIntro[] = 835 "settings.multi_profile_never_show_intro"; 836 837// A boolean pref recording whether user has dismissed the multiprofile 838// teleport warning dialog show. 839const char kMultiProfileWarningShowDismissed[] = 840 "settings.multi_profile_warning_show_dismissed"; 841 842// A string pref that holds string enum values of how the user should behave 843// in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy 844// for more details of the valid values. 845const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior"; 846 847// A boolean preference indicating whether user has seen first-run tutorial 848// already. 849const char kFirstRunTutorialShown[] = "settings.first_run_tutorial_shown"; 850 851// Indicates the amount of time for which a user authenticated via SAML can use 852// offline authentication against a cached password before being forced to go 853// through online authentication against GAIA again. The time is expressed in 854// seconds. A value of -1 indicates no limit, allowing the user to use offline 855// authentication indefinitely. The limit is in effect only if GAIA redirected 856// the user to a SAML IdP during the last online authentication. 857const char kSAMLOfflineSigninTimeLimit[] = "saml.offline_signin_time_limit"; 858 859// A preference to keep track of the last time the user authenticated against 860// GAIA using SAML. The preference is updated whenever the user authenticates 861// against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the 862// current time. If GAIA performs the authentication itself, the preference is 863// cleared. The time is expressed as the serialization obtained from 864// base::Time::ToInternalValue(). 865const char kSAMLLastGAIASignInTime[] = "saml.last_gaia_sign_in_time"; 866 867// The total number of seconds that the machine has spent sitting on the 868// OOBE screen. 869const char kTimeOnOobe[] = "settings.time_on_oobe"; 870 871// The app/extension name who sets the current wallpaper. If current wallpaper 872// is set by the component wallpaper picker, it is set to an empty string. 873const char kCurrentWallpaperAppName[] = "wallpaper.app.name"; 874#endif // defined(OS_CHROMEOS) 875 876// The disabled messages in IPC logging. 877const char kIpcDisabledMessages[] = "ipc_log_disabled_messages"; 878 879// A boolean pref set to true if a Home button to open the Home pages should be 880// visible on the toolbar. 881const char kShowHomeButton[] = "browser.show_home_button"; 882 883// A string value which saves short list of recently user selected encodings 884// separated with comma punctuation mark. 885const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings"; 886 887// Clear Browsing Data dialog preferences. 888const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history"; 889const char kDeleteDownloadHistory[] = "browser.clear_data.download_history"; 890const char kDeleteCache[] = "browser.clear_data.cache"; 891const char kDeleteCookies[] = "browser.clear_data.cookies"; 892const char kDeletePasswords[] = "browser.clear_data.passwords"; 893const char kDeleteFormData[] = "browser.clear_data.form_data"; 894const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data"; 895const char kDeauthorizeContentLicenses[] = 896 "browser.clear_data.content_licenses"; 897const char kDeleteTimePeriod[] = "browser.clear_data.time_period"; 898const char kLastClearBrowsingDataTime[] = 899 "browser.last_clear_browsing_data_time"; 900 901// Boolean pref to define the default values for using spellchecker. 902const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking"; 903 904// List of names of the enabled labs experiments (see chrome/browser/labs.cc). 905const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments"; 906 907// Boolean pref to define the default values for using auto spell correct. 908const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect"; 909 910// Boolean pref to define the default setting for "block offensive words". 911// The old key value is kept to avoid unnecessary migration code. 912const char kSpeechRecognitionFilterProfanities[] = 913 "browser.speechinput_censor_results"; 914 915// List of speech recognition context names (extensions or websites) for which 916// the tray notification balloon has already been shown. 917const char kSpeechRecognitionTrayNotificationShownContexts[] = 918 "browser.speechinput_tray_notification_shown_contexts"; 919 920// Boolean controlling whether history saving is disabled. 921const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled"; 922 923// Boolean controlling whether deleting browsing and download history is 924// permitted. 925const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled"; 926 927// Boolean controlling whether SafeSearch is mandatory for Google Web Searches. 928const char kForceSafeSearch[] = "settings.force_safesearch"; 929 930#if defined(OS_LINUX) && !defined(OS_CHROMEOS) 931// Linux specific preference on whether we should match the system theme. 932const char kUsesSystemTheme[] = "extensions.theme.use_system"; 933#endif 934const char kCurrentThemePackFilename[] = "extensions.theme.pack"; 935const char kCurrentThemeID[] = "extensions.theme.id"; 936const char kCurrentThemeImages[] = "extensions.theme.images"; 937const char kCurrentThemeColors[] = "extensions.theme.colors"; 938const char kCurrentThemeTints[] = "extensions.theme.tints"; 939const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties"; 940 941// Boolean pref which persists whether the extensions_ui is in developer mode 942// (showing developer packing tools and extensions details) 943const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode"; 944 945// Boolean pref which indicates whether the Chrome Apps & Extensions Developer 946// Tool promotion has been dismissed by the user. 947const char kExtensionsUIDismissedADTPromo[] = 948 "extensions.ui.dismissed_adt_promo"; 949 950// Dictionary pref that tracks which command belongs to which 951// extension + named command pair. 952const char kExtensionCommands[] = "extensions.commands"; 953 954// Pref containing the directory for internal plugins as written to the plugins 955// list (below). 956const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory"; 957 958// List pref containing information (dictionaries) on plugins. 959const char kPluginsPluginsList[] = "plugins.plugins_list"; 960 961// List pref containing names of plugins that are disabled by policy. 962const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled"; 963 964// List pref containing exceptions to the list of plugins disabled by policy. 965const char kPluginsDisabledPluginsExceptions[] = 966 "plugins.plugins_disabled_exceptions"; 967 968// List pref containing names of plugins that are enabled by policy. 969const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled"; 970 971// When bundled NPAPI Flash is removed, if at that point it is enabled while 972// Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will 973// want to do so only once. 974const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash"; 975 976// In the early stage of component-updated PPAPI Flash, we did field trials in 977// which it was set to disabled by default. The corresponding settings item may 978// remain in some users' profiles. Currently it affects both the bundled and 979// component-updated PPAPI Flash (since the two share the same enable/disable 980// state). We want to remove this item to get those users to use PPAPI Flash. 981// We will want to do so only once. 982const char kPluginsRemovedOldComponentPepperFlashSettings[] = 983 "plugins.removed_old_component_pepper_flash_settings"; 984 985#if !defined(OS_ANDROID) 986// Whether about:plugins is shown in the details mode or not. 987const char kPluginsShowDetails[] = "plugins.show_details"; 988#endif 989 990// Boolean that indicates whether outdated plugins are allowed or not. 991const char kPluginsAllowOutdated[] = "plugins.allow_outdated"; 992 993// Boolean that indicates whether plugins that require authorization should 994// be always allowed or not. 995const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize"; 996 997#if defined(ENABLE_PLUGIN_INSTALLATION) 998// Dictionary holding plug-ins metadata. 999const char kPluginsMetadata[] = "plugins.metadata"; 1000 1001// Last update time of plug-ins resource cache. 1002const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update"; 1003#endif 1004 1005// Boolean that indicates whether we should check if we are the default browser 1006// on start-up. 1007const char kCheckDefaultBrowser[] = "browser.check_default_browser"; 1008 1009#if defined(OS_WIN) 1010// By default, setting Chrome as default during first run on Windows 8 will 1011// trigger shutting down the current instance and spawning a new (Metro) 1012// Chrome. This boolean preference suppresses this behaviour. 1013const char kSuppressSwitchToMetroModeOnSetDefault[] = 1014 "browser.suppress_switch_to_metro_mode_on_set_default"; 1015#endif 1016 1017// Policy setting whether default browser check should be disabled and default 1018// browser registration should take place. 1019const char kDefaultBrowserSettingEnabled[] = 1020 "browser.default_browser_setting_enabled"; 1021 1022#if defined(OS_MACOSX) 1023// Boolean that indicates whether the application should show the info bar 1024// asking the user to set up automatic updates when Keystone promotion is 1025// required. 1026const char kShowUpdatePromotionInfoBar[] = 1027 "browser.show_update_promotion_info_bar"; 1028#endif 1029 1030// Boolean that is false if we should show window manager decorations. If 1031// true, we draw a custom chrome frame (thicker title bar and blue border). 1032const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame"; 1033 1034// Dictionary of content settings applied to all hosts by default. 1035const char kDefaultContentSettings[] = "profile.default_content_settings"; 1036 1037// Boolean indicating whether the clear on exit pref was migrated to content 1038// settings yet. 1039const char kContentSettingsClearOnExitMigrated[] = 1040 "profile.content_settings.clear_on_exit_migrated"; 1041 1042// Version of the pattern format used to define content settings. 1043const char kContentSettingsVersion[] = "profile.content_settings.pref_version"; 1044 1045// Patterns for mapping origins to origin related settings. Default settings 1046// will be applied to origins that don't match any of the patterns. The pattern 1047// format used is defined by kContentSettingsVersion. 1048const char kContentSettingsPatternPairs[] = 1049 "profile.content_settings.pattern_pairs"; 1050 1051// Version of the content settings whitelist. 1052const char kContentSettingsDefaultWhitelistVersion[] = 1053 "profile.content_settings.whitelist_version"; 1054 1055#if !defined(OS_ANDROID) 1056// Which plugins have been whitelisted manually by the user. 1057const char kContentSettingsPluginWhitelist[] = 1058 "profile.content_settings.plugin_whitelist"; 1059#endif 1060 1061// Boolean that is true if we should unconditionally block third-party cookies, 1062// regardless of other content settings. 1063const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies"; 1064 1065// Boolean that is true when all locally stored site data (e.g. cookies, local 1066// storage, etc..) should be deleted on exit. 1067const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit"; 1068 1069// Double that indicates the default zoom level. 1070const char kDefaultZoomLevel[] = "profile.default_zoom_level"; 1071 1072// Dictionary that maps hostnames to zoom levels. Hosts not in this pref will 1073// be displayed at the default zoom level. 1074const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels"; 1075 1076// A dictionary that tracks the default data model to use for each section of 1077// the dialog. 1078const char kAutofillDialogAutofillDefault[] = "autofill.data_model_default"; 1079 1080// Whether a user opted out of making purchases with Google Wallet; changed via 1081// the autofill dialog's account chooser and set explicitly on dialog submission 1082// (but not cancel). If this isn't set, the dialog assumes it's the first run. 1083const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet"; 1084 1085// Which GAIA users have accepted that use of Google Wallet implies their 1086// location will be shared with fraud protection services. 1087const char kAutofillDialogWalletLocationAcceptance[] = 1088 "autofill.wallet_location_disclosure"; 1089 1090// Whether a user wants to save data locally in Autofill. 1091const char kAutofillDialogSaveData[] = "autofill.save_data"; 1092 1093// Whether the user has selected "Same as billing" for the shipping address when 1094// using Google Wallet. 1095const char kAutofillDialogWalletShippingSameAsBilling[] = 1096 "autofill.wallet_shipping_same_as_billing"; 1097 1098// The number of times the generated credit card bubble has been shown. 1099const char kAutofillGeneratedCardBubbleTimesShown[] = 1100 "autofill.generated_card_bubble_times_shown"; 1101 1102// A dictionary that tracks the defaults to be set on the next invocation 1103// of the requestAutocomplete dialog. 1104const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults"; 1105 1106#if !defined(OS_ANDROID) 1107const char kPinnedTabs[] = "pinned_tabs"; 1108#endif 1109 1110#if defined(OS_ANDROID) 1111// Boolean that controls the enabled-state of Geolocation in content. 1112const char kGeolocationEnabled[] = "geolocation.enabled"; 1113#endif 1114 1115#if defined(ENABLE_GOOGLE_NOW) 1116// Boolean that is true when Google services can use the user's location. 1117const char kGoogleGeolocationAccessEnabled[] = 1118 "googlegeolocationaccess.enabled"; 1119#endif 1120 1121// The default audio capture device used by the Media content setting. 1122const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device"; 1123 1124// The default video capture device used by the Media content setting. 1125const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device"; 1126 1127// The salt used for creating random MediaSource IDs. 1128const char kMediaDeviceIdSalt[] = "media.device_id_salt"; 1129 1130// Preference to disable 3D APIs (WebGL, Pepper 3D). 1131const char kDisable3DAPIs[] = "disable_3d_apis"; 1132 1133// Whether to enable hyperlink auditing ("<a ping>"). 1134const char kEnableHyperlinkAuditing[] = "enable_a_ping"; 1135 1136// Whether to enable sending referrers. 1137const char kEnableReferrers[] = "enable_referrers"; 1138 1139// Whether to send the DNT header. 1140const char kEnableDoNotTrack[] = "enable_do_not_track"; 1141 1142// GL_VENDOR string. 1143const char kGLVendorString[] = "gl_vendor_string"; 1144 1145// GL_RENDERER string. 1146const char kGLRendererString[] = "gl_renderer_string"; 1147 1148// GL_VERSION string. 1149const char kGLVersionString[] = "gl_version_string"; 1150 1151// Boolean that specifies whether to import bookmarks from the default browser 1152// on first run. 1153const char kImportBookmarks[] = "import_bookmarks"; 1154 1155// Boolean that specifies whether to import the browsing history from the 1156// default browser on first run. 1157const char kImportHistory[] = "import_history"; 1158 1159// Boolean that specifies whether to import the homepage from the default 1160// browser on first run. 1161const char kImportHomepage[] = "import_home_page"; 1162 1163// Boolean that specifies whether to import the search engine from the default 1164// browser on first run. 1165const char kImportSearchEngine[] = "import_search_engine"; 1166 1167// Boolean that specifies whether to import the saved passwords from the default 1168// browser on first run. 1169const char kImportSavedPasswords[] = "import_saved_passwords"; 1170 1171// Profile avatar and name 1172const char kProfileAvatarIndex[] = "profile.avatar_index"; 1173const char kProfileName[] = "profile.name"; 1174 1175// Whether the profile is managed. 1176const char kProfileIsManaged[] = "profile.is_managed"; 1177 1178// The managed user ID. 1179const char kManagedUserId[] = "profile.managed_user_id"; 1180 1181// 64-bit integer serialization of the base::Time when the user's GAIA info 1182// was last updated. 1183const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time"; 1184 1185// The URL from which the GAIA profile picture was downloaded. This is cached to 1186// prevent the same picture from being downloaded multiple times. 1187const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url"; 1188 1189// Integer that specifies the number of times that we have shown the tutorial 1190// card in the profile avatar bubble. 1191const char kProfileAvatarTutorialShown[] = 1192 "profile.avatar_bubble_tutorial_shown"; 1193 1194// Boolean that specifies whether we have shown the user manager tutorial. 1195const char kProfileUserManagerTutorialShown[] = 1196 "profile.user_manager_tutorial_shown"; 1197 1198// Indicates if we've already shown a notification that high contrast 1199// mode is on, recommending high-contrast extensions and themes. 1200const char kInvertNotificationShown[] = "invert_notification_version_2_shown"; 1201 1202// Boolean controlling whether printing is enabled. 1203const char kPrintingEnabled[] = "printing.enabled"; 1204 1205// Boolean controlling whether print preview is disabled. 1206const char kPrintPreviewDisabled[] = "printing.print_preview_disabled"; 1207 1208// An integer pref specifying the fallback behavior for sites outside of content 1209// packs. One of: 1210// 0: Allow (does nothing) 1211// 1: Warn. 1212// 2: Block. 1213const char kDefaultManagedModeFilteringBehavior[] = 1214 "profile.managed.default_filtering_behavior"; 1215 1216// Whether this user is permitted to create managed users. 1217const char kManagedUserCreationAllowed[] = 1218 "profile.managed_user_creation_allowed"; 1219 1220// List pref containing the users managed by this user. 1221const char kManagedUsers[] = "profile.managed_users"; 1222 1223// List pref containing the extension ids which are not allowed to send 1224// notifications to the message center. 1225const char kMessageCenterDisabledExtensionIds[] = 1226 "message_center.disabled_extension_ids"; 1227 1228// List pref containing the system component ids which are not allowed to send 1229// notifications to the message center. 1230const char kMessageCenterDisabledSystemComponentIds[] = 1231 "message_center.disabled_system_component_ids"; 1232 1233// List pref containing the system component ids which are allowed to send 1234// notifications to the message center. 1235extern const char kMessageCenterEnabledSyncNotifierIds[] = 1236 "message_center.enabled_sync_notifier_ids"; 1237 1238// List pref containing synced notification sending services that are currently 1239// enabled. 1240extern const char kEnabledSyncedNotificationSendingServices[] = 1241 "synced_notification.enabled_remote_services"; 1242 1243// List pref containing which synced notification sending services have already 1244// been turned on once for the user (so we don't turn them on again). 1245extern const char kInitializedSyncedNotificationSendingServices[] = 1246 "synced_notification.initialized_remote_services"; 1247 1248// Boolean pref containing whether this is the first run of the Synced 1249// Notification feature. 1250extern const char kSyncedNotificationFirstRun[] = 1251 "synced_notification.first_run"; 1252 1253// Boolean pref indicating the Chrome Now welcome notification was dismissed 1254// by the user. Syncable. 1255// Note: This is now read-only. The welcome notification writes the _local 1256// version, below. 1257extern const char kWelcomeNotificationDismissed[] = 1258 "message_center.welcome_notification_dismissed"; 1259 1260// Boolean pref indicating the Chrome Now welcome notification was dismissed 1261// by the user on this machine. 1262extern const char kWelcomeNotificationDismissedLocal[] = 1263 "message_center.welcome_notification_dismissed_local"; 1264 1265// Boolean pref indicating the welcome notification was previously popped up. 1266extern const char kWelcomeNotificationPreviouslyPoppedUp[] = 1267 "message_center.welcome_notification_previously_popped_up"; 1268 1269// Integer pref containing the expiration timestamp of the welcome notification. 1270extern const char kWelcomeNotificationExpirationTimestamp[] = 1271 "message_center.welcome_notification_expiration_timestamp"; 1272 1273// Boolean pref that determines whether the user can enter fullscreen mode. 1274// Disabling fullscreen mode also makes kiosk mode unavailable on desktop 1275// platforms. 1276extern const char kFullscreenAllowed[] = "fullscreen.allowed"; 1277 1278// Enable notifications for new devices on the local network that can be 1279// registered to the user's account, e.g. Google Cloud Print printers. 1280const char kLocalDiscoveryNotificationsEnabled[] = 1281 "local_discovery.notifications_enabled"; 1282 1283// A timestamp (stored in base::Time::ToInternalValue format) of the last time 1284// a preference was reset. 1285const char kPreferenceResetTime[] = "prefs.preference_reset_time"; 1286 1287// String that indicates if the Profile Reset prompt has already been shown to 1288// the user. Used both in user preferences and local state, in the latter, it is 1289// actually a dictionary that maps profile keys to before-mentioned strings. 1290const char kProfileResetPromptMemento[] = "profile.reset_prompt_memento"; 1291 1292// The GCM channel's enabled state. 1293const char kGCMChannelEnabled[] = "gcm.channel_enabled"; 1294 1295// Whether Easy Unlock is enabled. 1296extern const char kEasyUnlockEnabled[] = "easy_unlock.enabled"; 1297 1298// Whether to show the Easy Unlock first run tutorial. 1299extern const char kEasyUnlockShowTutorial[] = "easy_unlock.show_tutorial"; 1300 1301// Preference storing Easy Unlock pairing data. 1302extern const char kEasyUnlockPairing[] = "easy_unlock.pairing"; 1303 1304// A cache of zero suggest results using JSON serialized into a string. 1305const char kZeroSuggestCachedResults[] = "zerosuggest.cachedresults"; 1306 1307// *************** LOCAL STATE *************** 1308// These are attached to the machine/installation 1309 1310// A pref to configure networks device-wide. Its value must be a list of 1311// NetworkConfigurations according to the OpenNetworkConfiguration 1312// specification. 1313// Currently, this pref is only used to store the policy. The user's 1314// configuration is still stored in Shill. 1315const char kDeviceOpenNetworkConfiguration[] = "device_onc"; 1316 1317// Directory of the last profile used. 1318const char kProfileLastUsed[] = "profile.last_used"; 1319 1320// List of directories of the profiles last active. 1321const char kProfilesLastActive[] = "profile.last_active_profiles"; 1322 1323// Total number of profiles created for this Chrome build. Used to tag profile 1324// directories. 1325const char kProfilesNumCreated[] = "profile.profiles_created"; 1326 1327// String containing the version of Chrome that the profile was created by. 1328// If profile was created before this feature was added, this pref will default 1329// to "1.0.0.0". 1330const char kProfileCreatedByVersion[] = "profile.created_by_version"; 1331 1332// A map of profile data directory to cached information. This cache can be 1333// used to display information about profiles without actually having to load 1334// them. 1335const char kProfileInfoCache[] = "profile.info_cache"; 1336 1337// Prefs for SSLConfigServicePref. 1338const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled"; 1339const char kCertRevocationCheckingRequiredLocalAnchors[] = 1340 "ssl.rev_checking.required_for_local_anchors"; 1341const char kSSLVersionMin[] = "ssl.version_min"; 1342const char kSSLVersionMax[] = "ssl.version_max"; 1343const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist"; 1344const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled"; 1345 1346// A boolean pref of the EULA accepted flag. 1347const char kEulaAccepted[] = "EulaAccepted"; 1348 1349// The metrics client GUID, entropy source and session ID. 1350// Note: The names client_id2 and low_entropy_source2 are a result of creating 1351// new prefs to do a one-time reset of the previous values. 1352const char kMetricsClientID[] = "user_experience_metrics.client_id2"; 1353const char kMetricsSessionID[] = "user_experience_metrics.session_id"; 1354const char kMetricsLowEntropySource[] = 1355 "user_experience_metrics.low_entropy_source2"; 1356 1357// Old client id and low entropy source values, cleared the first time this 1358// version is launched. 1359// TODO(asvitkine): Delete these after a few releases have gone by and old 1360// values have been cleaned up. http://crbug.com/357704 1361const char kMetricsOldClientID[] = "user_experience_metrics.client_id"; 1362const char kMetricsOldLowEntropySource[] = 1363 "user_experience_metrics.low_entropy_source"; 1364 1365// Boolean that specifies whether or not crash reporting and metrics reporting 1366// are sent over the network for analysis. 1367const char kMetricsReportingEnabled[] = 1368 "user_experience_metrics.reporting_enabled"; 1369// Date/time when the user opted in to UMA and generated the client id for the 1370// very first time (local machine time, stored as a 64-bit time_t value). 1371const char kMetricsReportingEnabledTimestamp[] = 1372 "user_experience_metrics.client_id_timestamp"; 1373 1374// Boolean that specifies whether or not crash reports are sent 1375// over the network for analysis. 1376#if defined(OS_ANDROID) 1377const char kCrashReportingEnabled[] = 1378 "user_experience_metrics_crash.reporting_enabled"; 1379#endif 1380 1381// 64-bit integer serialization of the base::Time from the last successful seed 1382// fetch (i.e. when the Variations server responds with 200 or 304). 1383const char kVariationsLastFetchTime[] = "variations_last_fetch_time"; 1384 1385// String for the restrict parameter to be appended to the variations URL. 1386const char kVariationsRestrictParameter[] = "variations_restrict_parameter"; 1387 1388// String serialized form of variations seed protobuf. 1389const char kVariationsSeed[] = "variations_seed"; 1390 1391// 64-bit integer serialization of the base::Time from the last seed received. 1392const char kVariationsSeedDate[] = "variations_seed_date"; 1393 1394// SHA-1 hash of the serialized variations seed data (hex encoded). 1395const char kVariationsSeedHash[] = "variations_seed_hash"; 1396 1397// Digital signature of the binary variations seed data, base64-encoded. 1398const char kVariationsSeedSignature[] = "variations_seed_signature"; 1399 1400// An enum value to indicate the execution phase the browser was in. 1401const char kStabilityExecutionPhase[] = 1402 "user_experience_metrics.stability.execution_phase"; 1403 1404// True if the previous run of the program exited cleanly. 1405const char kStabilityExitedCleanly[] = 1406 "user_experience_metrics.stability.exited_cleanly"; 1407 1408// Version string of previous run, which is used to assure that stability 1409// metrics reported under current version reflect stability of the same version. 1410const char kStabilityStatsVersion[] = 1411 "user_experience_metrics.stability.stats_version"; 1412 1413// Build time, in seconds since an epoch, which is used to assure that stability 1414// metrics reported reflect stability of the same build. 1415const char kStabilityStatsBuildTime[] = 1416 "user_experience_metrics.stability.stats_buildtime"; 1417 1418// False if we received a session end and either we crashed during processing 1419// the session end or ran out of time and windows terminated us. 1420const char kStabilitySessionEndCompleted[] = 1421 "user_experience_metrics.stability.session_end_completed"; 1422 1423// Number of times the application was launched since last report. 1424const char kStabilityLaunchCount[] = 1425 "user_experience_metrics.stability.launch_count"; 1426 1427// Number of times the application exited uncleanly since the last report. 1428const char kStabilityCrashCount[] = 1429 "user_experience_metrics.stability.crash_count"; 1430 1431// Number of times the session end did not complete. 1432const char kStabilityIncompleteSessionEndCount[] = 1433 "user_experience_metrics.stability.incomplete_session_end_count"; 1434 1435// Number of times a page load event occurred since the last report. 1436const char kStabilityPageLoadCount[] = 1437 "user_experience_metrics.stability.page_load_count"; 1438 1439// Base64 encoded serialized UMA system profile proto from the previous session. 1440const char kStabilitySavedSystemProfile[] = 1441 "user_experience_metrics.stability.saved_system_profile"; 1442 1443// SHA-1 hash of the serialized UMA system profile proto (hex encoded). 1444const char kStabilitySavedSystemProfileHash[] = 1445 "user_experience_metrics.stability.saved_system_profile_hash"; 1446 1447// Number of times a renderer process crashed since the last report. 1448const char kStabilityRendererCrashCount[] = 1449 "user_experience_metrics.stability.renderer_crash_count"; 1450 1451// Number of times an extension renderer process crashed since the last report. 1452const char kStabilityExtensionRendererCrashCount[] = 1453 "user_experience_metrics.stability.extension_renderer_crash_count"; 1454 1455// Time when the app was last launched, in seconds since the epoch. 1456const char kStabilityLaunchTimeSec[] = 1457 "user_experience_metrics.stability.launch_time_sec"; 1458 1459// Time when the app was last known to be running, in seconds since 1460// the epoch. 1461const char kStabilityLastTimestampSec[] = 1462 "user_experience_metrics.stability.last_timestamp_sec"; 1463 1464// This is the location of a list of dictionaries of plugin stability stats. 1465const char kStabilityPluginStats[] = 1466 "user_experience_metrics.stability.plugin_stats2"; 1467 1468// Number of times the renderer has become non-responsive since the last 1469// report. 1470const char kStabilityRendererHangCount[] = 1471 "user_experience_metrics.stability.renderer_hang_count"; 1472 1473// Total number of child process crashes (other than renderer / extension 1474// renderer ones, and plugin children, which are counted separately) since the 1475// last report. 1476const char kStabilityChildProcessCrashCount[] = 1477 "user_experience_metrics.stability.child_process_crash_count"; 1478 1479// On Chrome OS, total number of non-Chrome user process crashes 1480// since the last report. 1481const char kStabilityOtherUserCrashCount[] = 1482 "user_experience_metrics.stability.other_user_crash_count"; 1483 1484// On Chrome OS, total number of kernel crashes since the last report. 1485const char kStabilityKernelCrashCount[] = 1486 "user_experience_metrics.stability.kernel_crash_count"; 1487 1488// On Chrome OS, total number of unclean system shutdowns since the 1489// last report. 1490const char kStabilitySystemUncleanShutdownCount[] = 1491 "user_experience_metrics.stability.system_unclean_shutdowns"; 1492 1493#if defined(OS_ANDROID) 1494// Activity type that is currently in the foreground for the UMA session. 1495// Uses the ActivityTypeIds::Type enum. 1496const char kStabilityForegroundActivityType[] = 1497 "user_experience_metrics.stability.current_foreground_activity_type"; 1498 1499// Tracks which Activities were launched during the last session. 1500// See |metrics_service_android.cc| for its usage. 1501const char kStabilityLaunchedActivityFlags[] = 1502 "user_experience_metrics.stability.launched_activity_flags"; 1503 1504// List pref: Counts how many times each Activity was launched. 1505// Indexed into by ActivityTypeIds::Type. 1506const char kStabilityLaunchedActivityCounts[] = 1507 "user_experience_metrics.stability.launched_activity_counts"; 1508 1509// List pref: Counts how many times each Activity type was in the foreground 1510// when a UMA session failed to be shut down properly. 1511// Indexed into by ActivityTypeIds::Type. 1512const char kStabilityCrashedActivityCounts[] = 1513 "user_experience_metrics.stability.crashed_activity_counts"; 1514#endif 1515 1516// Number of times the browser has been able to register crash reporting. 1517const char kStabilityBreakpadRegistrationSuccess[] = 1518 "user_experience_metrics.stability.breakpad_registration_ok"; 1519 1520// Number of times the browser has failed to register crash reporting. 1521const char kStabilityBreakpadRegistrationFail[] = 1522 "user_experience_metrics.stability.breakpad_registration_fail"; 1523 1524// Number of times the browser has been run under a debugger. 1525const char kStabilityDebuggerPresent[] = 1526 "user_experience_metrics.stability.debugger_present"; 1527 1528// Number of times the browser has not been run under a debugger. 1529const char kStabilityDebuggerNotPresent[] = 1530 "user_experience_metrics.stability.debugger_not_present"; 1531 1532// The keys below are used for the dictionaries in the 1533// kStabilityPluginStats list. 1534const char kStabilityPluginName[] = "name"; 1535const char kStabilityPluginLaunches[] = "launches"; 1536const char kStabilityPluginInstances[] = "instances"; 1537const char kStabilityPluginCrashes[] = "crashes"; 1538const char kStabilityPluginLoadingErrors[] = "loading_errors"; 1539 1540// The keys below are strictly increasing counters over the lifetime of 1541// a chrome installation. They are (optionally) sent up to the uninstall 1542// survey in the event of uninstallation. The installation date is used by some 1543// opt-in services such as Wallet and UMA. 1544const char kInstallDate[] = "uninstall_metrics.installation_date2"; 1545const char kUninstallMetricsPageLoadCount[] = 1546 "uninstall_metrics.page_load_count"; 1547const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; 1548const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; 1549const char kUninstallLastLaunchTimeSec[] = 1550 "uninstall_metrics.last_launch_time_sec"; 1551const char kUninstallLastObservedRunTimeSec[] = 1552 "uninstall_metrics.last_observed_running_time_sec"; 1553 1554// String containing the version of Chrome for which Chrome will not prompt the 1555// user about setting Chrome as the default browser. 1556const char kBrowserSuppressDefaultBrowserPrompt[] = 1557 "browser.suppress_default_browser_prompt_for_version"; 1558 1559// A collection of position, size, and other data relating to the browser 1560// window to restore on startup. 1561const char kBrowserWindowPlacement[] = "browser.window_placement"; 1562 1563// Browser window placement for popup windows. 1564const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup"; 1565 1566// A collection of position, size, and other data relating to the task 1567// manager window to restore on startup. 1568const char kTaskManagerWindowPlacement[] = "task_manager.window_placement"; 1569 1570// A collection of position, size, and other data relating to the keyword 1571// editor window to restore on startup. 1572const char kKeywordEditorWindowPlacement[] = "keyword_editor.window_placement"; 1573 1574// A collection of position, size, and other data relating to the preferences 1575// window to restore on startup. 1576const char kPreferencesWindowPlacement[] = "preferences.window_placement"; 1577 1578// An integer specifying the total number of bytes to be used by the 1579// renderer's in-memory cache of objects. 1580const char kMemoryCacheSize[] = "renderer.memory_cache.size"; 1581 1582// String which specifies where to download files to by default. 1583const char kDownloadDefaultDirectory[] = "download.default_directory"; 1584 1585// Boolean that records if the download directory was changed by an 1586// upgrade a unsafe location to a safe location. 1587const char kDownloadDirUpgraded[] = "download.directory_upgrade"; 1588 1589// String which specifies where to save html files to by default. 1590const char kSaveFileDefaultDirectory[] = "savefile.default_directory"; 1591 1592// The type used to save the page. See the enum SavePackage::SavePackageType in 1593// the chrome/browser/download/save_package.h for the possible values. 1594const char kSaveFileType[] = "savefile.type"; 1595 1596// String which specifies the last directory that was chosen for uploading 1597// or opening a file. 1598const char kSelectFileLastDirectory[] = "selectfile.last_directory"; 1599 1600// Boolean that specifies if file selection dialogs are shown. 1601const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed"; 1602 1603// Map of default tasks, associated by MIME type. 1604const char kDefaultTasksByMimeType[] = 1605 "filebrowser.tasks.default_by_mime_type"; 1606 1607// Map of default tasks, associated by file suffix. 1608const char kDefaultTasksBySuffix[] = 1609 "filebrowser.tasks.default_by_suffix"; 1610 1611// Extensions which should be opened upon completion. 1612const char kDownloadExtensionsToOpen[] = "download.extensions_to_open"; 1613 1614// Integer which specifies the frequency in milliseconds for detecting whether 1615// plugin windows are hung. 1616const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq"; 1617 1618// Integer which specifies the timeout value to be used for SendMessageTimeout 1619// to detect a hung plugin window. 1620const char kPluginMessageResponseTimeout[] = 1621 "browser.plugin_message_response_timeout"; 1622 1623// String which represents the dictionary name for our spell-checker. 1624const char kSpellCheckDictionary[] = "spellcheck.dictionary"; 1625 1626// String which represents whether we use the spelling service. 1627const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service"; 1628 1629// Dictionary of schemes used by the external protocol handler. 1630// The value is true if the scheme must be ignored. 1631const char kExcludedSchemes[] = "protocol_handler.excluded_schemes"; 1632 1633// Keys used for MAC handling of SafeBrowsing requests. 1634const char kSafeBrowsingClientKey[] = "safe_browsing.client_key"; 1635const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key"; 1636 1637// Integer that specifies the index of the tab the user was on when they 1638// last visited the options window. 1639const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index"; 1640 1641// Integer that specifies the index of the tab the user was on when they 1642// last visited the content settings window. 1643const char kContentSettingsWindowLastTabIndex[] = 1644 "content_settings_window.last_tab_index"; 1645 1646// Integer that specifies the index of the tab the user was on when they 1647// last visited the Certificate Manager window. 1648const char kCertificateManagerWindowLastTabIndex[] = 1649 "certificate_manager_window.last_tab_index"; 1650 1651// Integer that specifies if the first run bubble should be shown. 1652// This preference is only registered by the first-run procedure. 1653const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option"; 1654 1655// String containing the last known Google URL. We re-detect this on startup in 1656// most cases, and use it to send traffic to the correct Google host or with the 1657// correct Google domain/country code for whatever location the user is in. 1658const char kLastKnownGoogleURL[] = "browser.last_known_google_url"; 1659 1660// String containing the last prompted Google URL to the user. 1661// If the user is using .x TLD for Google URL and gets prompted about .y TLD 1662// for Google URL, and says "no", we should leave the search engine set to .x 1663// but not prompt again until the domain changes away from .y. 1664const char kLastPromptedGoogleURL[] = "browser.last_prompted_google_url"; 1665 1666// String containing the last known intranet redirect URL, if any. See 1667// intranet_redirect_detector.h for more information. 1668const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin"; 1669 1670// Integer containing the system Country ID the first time we checked the 1671// template URL prepopulate data. This is used to avoid adding a whole bunch of 1672// new search engine choices if prepopulation runs when the user's Country ID 1673// differs from their previous Country ID. This pref does not exist until 1674// prepopulation has been run at least once. 1675const char kCountryIDAtInstall[] = "countryid_at_install"; 1676// OBSOLETE. Same as above, but uses the Windows-specific GeoID value instead. 1677// Updated if found to the above key. 1678const char kGeoIDAtInstall[] = "geoid_at_install"; 1679 1680// An enum value of how the browser was shut down (see browser_shutdown.h). 1681const char kShutdownType[] = "shutdown.type"; 1682// Number of processes that were open when the user shut down. 1683const char kShutdownNumProcesses[] = "shutdown.num_processes"; 1684// Number of processes that were shut down using the slow path. 1685const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow"; 1686 1687// Whether to restart the current Chrome session automatically as the last thing 1688// before shutting everything down. 1689const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown"; 1690 1691// Set before autorestarting Chrome, cleared on clean exit. 1692const char kWasRestarted[] = "was.restarted"; 1693 1694#if defined(OS_WIN) 1695// Preference to be used while relaunching Chrome. This preference dictates if 1696// Chrome should be launched in Metro or Desktop mode. 1697// For more info take a look at ChromeRelaunchMode enum. 1698const char kRelaunchMode[] = "relaunch.mode"; 1699#endif 1700 1701// Placeholder preference for disabling voice / video chat if it is ever added. 1702// Currently, this does not change any behavior. 1703const char kDisableVideoAndChat[] = "disable_video_chat"; 1704 1705// Whether Extensions are enabled. 1706const char kDisableExtensions[] = "extensions.disabled"; 1707 1708// Whether the plugin finder that lets you install missing plug-ins is enabled. 1709const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; 1710 1711// Customized app page names that appear on the New Tab Page. 1712const char kNtpAppPageNames[] = "ntp.app_page_names"; 1713 1714// Keeps track of which sessions are collapsed in the Other Devices menu. 1715const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; 1716 1717// Keeps track of recently closed tabs collapsed state in the Other Devices 1718// menu. 1719const char kNtpCollapsedRecentlyClosedTabs[] = 1720 "ntp.collapsed_recently_closed_tabs"; 1721 1722// Keeps track of snapshot documents collapsed state in the Other Devices menu. 1723const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document"; 1724 1725// Keeps track of sync promo collapsed state in the Other Devices menu. 1726const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo"; 1727 1728// Serves dates to determine display of elements on the NTP. 1729const char kNtpDateResourceServer[] = "ntp.date_resource_server"; 1730 1731// New Tab Page URLs that should not be shown as most visited thumbnails. 1732const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist"; 1733 1734// True if a desktop sync session was found for this user. 1735const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found"; 1736 1737// Last time of update of promo_resource_cache. 1738const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update"; 1739 1740// Which bookmarks folder should be visible on the new tab page v4. 1741const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder"; 1742 1743// Which page should be visible on the new tab page v4 1744const char kNtpShownPage[] = "ntp.shown_page"; 1745 1746// Serves tips for the NTP. 1747const char kNtpTipsResourceServer[] = "ntp.tips_resource_server"; 1748 1749// Boolean indicating whether the web store is active for the current locale. 1750const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled"; 1751 1752// A private RSA key for ADB handshake. 1753const char kDevToolsAdbKey[] = "devtools.adb_key"; 1754 1755const char kDevToolsDisabled[] = "devtools.disabled"; 1756 1757// Determines whether devtools should be discovering usb devices for 1758// remote debugging at chrome://inspect. 1759const char kDevToolsDiscoverUsbDevicesEnabled[] = 1760 "devtools.discover_usb_devices"; 1761 1762// Maps of files edited locally using DevTools. 1763const char kDevToolsEditedFiles[] = "devtools.edited_files"; 1764 1765// List of file system paths added in DevTools. 1766const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths"; 1767 1768// A boolean specifying whether dev tools window should be opened docked. 1769const char kDevToolsOpenDocked[] = "devtools.open_docked"; 1770 1771// A boolean specifying whether port forwarding should be enabled. 1772const char kDevToolsPortForwardingEnabled[] = 1773 "devtools.port_forwarding_enabled"; 1774 1775// A boolean specifying whether default port forwarding configuration has been 1776// set. 1777const char kDevToolsPortForwardingDefaultSet[] = 1778 "devtools.port_forwarding_default_set"; 1779 1780// A dictionary of port->location pairs for port forwarding. 1781const char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config"; 1782 1783#if defined(OS_ANDROID) 1784// A boolean specifying whether remote dev tools debugging is enabled. 1785const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled"; 1786#endif 1787 1788// Boolean indicating that TiclInvalidationService should use GCM channel. 1789// False or lack of settings means XMPPPushClient channel. 1790const char kInvalidationServiceUseGCMChannel[] = 1791 "invalidation_service.use_gcm_channel"; 1792 1793// Local hash of authentication password, used for off-line authentication 1794// when on-line authentication is not available. 1795const char kGoogleServicesPasswordHash[] = "google.services.password_hash"; 1796 1797#if !defined(OS_ANDROID) 1798// Tracks the number of times that we have shown the sign in promo at startup. 1799const char kSignInPromoStartupCount[] = "sync_promo.startup_count"; 1800 1801// Boolean tracking whether the user chose to skip the sign in promo. 1802const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped"; 1803 1804// Boolean that specifies if the sign in promo is allowed to show on first run. 1805// This preference is specified in the master preference file to suppress the 1806// sign in promo for some installations. 1807const char kSignInPromoShowOnFirstRunAllowed[] = 1808 "sync_promo.show_on_first_run_allowed"; 1809 1810// Boolean that specifies if we should show a bubble in the new tab page. 1811// The bubble is used to confirm that the user is signed into sync. 1812const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble"; 1813#endif 1814 1815// Create web application shortcut dialog preferences. 1816const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop"; 1817const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu"; 1818const char kWebAppCreateInQuickLaunchBar[] = 1819 "browser.web_app.create_in_quick_launch_bar"; 1820 1821// Dictionary that maps Geolocation network provider server URLs to 1822// corresponding access token. 1823const char kGeolocationAccessToken[] = "geolocation.access_token"; 1824 1825// Boolean that indicates whether to allow firewall traversal while trying to 1826// establish the initial connection from the client or host. 1827const char kRemoteAccessHostFirewallTraversal[] = 1828 "remote_access.host_firewall_traversal"; 1829 1830// Boolean controlling whether 2-factor auth should be required when connecting 1831// to a host (instead of a PIN). 1832const char kRemoteAccessHostRequireTwoFactor[] = 1833 "remote_access.host_require_two_factor"; 1834 1835// String containing the domain name that hosts must belong to. If blank, then 1836// hosts can belong to any domain. 1837const char kRemoteAccessHostDomain[] = "remote_access.host_domain"; 1838 1839// String containing the domain name of the Chromoting Directory. 1840// Used by Chromoting host and client. 1841const char kRemoteAccessHostTalkGadgetPrefix[] = 1842 "remote_access.host_talkgadget_prefix"; 1843 1844// Boolean controlling whether curtaining is required when connecting to a host. 1845const char kRemoteAccessHostRequireCurtain[] = 1846 "remote_access.host_require_curtain"; 1847 1848// Boolean controlling whether curtaining is required when connecting to a host. 1849const char kRemoteAccessHostAllowClientPairing[] = 1850 "remote_access.host_allow_client_pairing"; 1851 1852// Whether Chrome Remote Desktop can proxy gnubby authentication traffic. 1853const char kRemoteAccessHostAllowGnubbyAuth[] = 1854 "remote_access.host_allow_gnubby_auth"; 1855 1856// Boolean that indicates whether the Chromoting host should allow connections 1857// using relay servers. 1858const char kRemoteAccessHostAllowRelayedConnection[] = 1859 "remote_access.host_allow_relayed_connection"; 1860 1861// String containing the UDP port range that the Chromoting host should used 1862// when connecting to clients. The port range should be in the form: 1863// <min_port>-<max_port>. E.g. 12400-12409. 1864const char kRemoteAccessHostUdpPortRange[] = 1865 "remote_access.host_udp_port_range"; 1866 1867// The last used printer and its settings. 1868const char kPrintPreviewStickySettings[] = 1869 "printing.print_preview_sticky_settings"; 1870 1871// The last requested size of the dialog as it was closed. 1872const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width"; 1873const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height"; 1874const char kCloudPrintSigninDialogWidth[] = 1875 "cloud_print.signin_dialog_size.width"; 1876const char kCloudPrintSigninDialogHeight[] = 1877 "cloud_print.signin_dialog_size.height"; 1878 1879// The list of BackgroundContents that should be loaded when the browser 1880// launches. 1881const char kRegisteredBackgroundContents[] = "background_contents.registered"; 1882 1883#if !defined(OS_ANDROID) 1884// An int that stores how often we've shown the "Chrome is configured to 1885// auto-launch" infobar. 1886const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar"; 1887#endif 1888 1889// String that lists supported HTTP authentication schemes. 1890const char kAuthSchemes[] = "auth.schemes"; 1891 1892// Boolean that specifies whether to disable CNAME lookups when generating 1893// Kerberos SPN. 1894const char kDisableAuthNegotiateCnameLookup[] = 1895 "auth.disable_negotiate_cname_lookup"; 1896 1897// Boolean that specifies whether to include the port in a generated Kerberos 1898// SPN. 1899const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port"; 1900 1901// Whitelist containing servers for which Integrated Authentication is enabled. 1902const char kAuthServerWhitelist[] = "auth.server_whitelist"; 1903 1904// Whitelist containing servers Chrome is allowed to do Kerberos delegation 1905// with. 1906const char kAuthNegotiateDelegateWhitelist[] = 1907 "auth.negotiate_delegate_whitelist"; 1908 1909// String that specifies the name of a custom GSSAPI library to load. 1910const char kGSSAPILibraryName[] = "auth.gssapi_library_name"; 1911 1912// Boolean that specifies whether to allow basic auth prompting on cross- 1913// domain sub-content requests. 1914const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt"; 1915 1916// Boolean that specifies whether the built-in asynchronous DNS client is used. 1917const char kBuiltInDnsClientEnabled[] = "async_dns.enabled"; 1918 1919// A pref holding the value of the policy used to explicitly allow or deny 1920// access to audio capture devices. When enabled or not set, the user is 1921// prompted for device access. When disabled, access to audio capture devices 1922// is not allowed and no prompt will be shown. 1923// See also kAudioCaptureAllowedUrls. 1924const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled"; 1925// Holds URL patterns that specify URLs that will be granted access to audio 1926// capture devices without prompt. NOTE: This whitelist is currently only 1927// supported when running in kiosk mode. 1928// TODO(tommi): Update comment when this is supported for all modes. 1929const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls"; 1930 1931// A pref holding the value of the policy used to explicitly allow or deny 1932// access to video capture devices. When enabled or not set, the user is 1933// prompted for device access. When disabled, access to video capture devices 1934// is not allowed and no prompt will be shown. 1935const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled"; 1936// Holds URL patterns that specify URLs that will be granted access to video 1937// capture devices without prompt. NOTE: This whitelist is currently only 1938// supported when running in kiosk mode. 1939// TODO(tommi): Update comment when this is supported for all modes. 1940const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls"; 1941 1942// A boolean pref that controls the enabled-state of hotword search voice 1943// trigger. 1944const char kHotwordSearchEnabled[] = "hotword.search_enabled_2"; 1945 1946// An integer pref that keeps track of how many times the opt in popup for 1947// hotword void search has been shown to the user. After this pref has reached 1948// the maximum number of times as defined by the HotwordService, the popup is no 1949// longer shown. 1950const char kHotwordOptInPopupTimesShown[] = "hotword.opt_in_popup_times_shown"; 1951 1952// A boolean pref that controls whether the sound of "Ok, Google" plus a few 1953// seconds of audio data before is sent back to improve voice search. 1954const char kHotwordAudioLoggingEnabled[] = "hotword.audio_logging_enabled"; 1955 1956#if defined(OS_ANDROID) 1957// Boolean that controls the global enabled-state of protected media identifier. 1958const char kProtectedMediaIdentifierEnabled[] = 1959 "protected_media_identifier.enabled"; 1960#endif 1961 1962#if defined(OS_CHROMEOS) 1963// Dictionary for transient storage of settings that should go into device 1964// settings storage before owner has been assigned. 1965const char kDeviceSettingsCache[] = "signed_settings_cache"; 1966 1967// The hardware keyboard layout of the device. This should look like 1968// "xkb:us::eng". 1969const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard"; 1970 1971// An integer pref which shows number of times carrier deal promo 1972// notification has been shown to user. 1973const char kCarrierDealPromoShown[] = 1974 "settings.internet.mobile.carrier_deal_promo_shown"; 1975 1976// A boolean pref of the auto-enrollment decision. Its value is only valid if 1977// it's not the default value; otherwise, no auto-enrollment decision has been 1978// made yet. 1979const char kShouldAutoEnroll[] = "ShouldAutoEnroll"; 1980 1981// An integer pref with the maximum number of bits used by the client in a 1982// previous auto-enrollment request. If the client goes through an auto update 1983// during OOBE and reboots into a version of the OS with a larger maximum 1984// modulus, then it will retry auto-enrollment using the updated value. 1985const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit"; 1986 1987// The local state pref that stores device activity times before reporting 1988// them to the policy server. 1989const char kDeviceActivityTimes[] = "device_status.activity_times"; 1990 1991// A pref holding the last known location when device location reporting is 1992// enabled. 1993const char kDeviceLocation[] = "device_status.location"; 1994 1995// A pref holding the value of the policy used to disable mounting of external 1996// storage for the user. 1997const char kExternalStorageDisabled[] = "hardware.external_storage_disabled"; 1998 1999// A pref holding the value of the policy used to disable playing audio on 2000// ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite 2001// it, therefore when the policy is lifted the original mute state is restored. 2002const char kAudioOutputAllowed[] = "hardware.audio_output_enabled"; 2003 2004// A dictionary that maps usernames to wallpaper properties. 2005const char kUsersWallpaperInfo[] = "user_wallpaper_info"; 2006 2007// Copy of owner swap mouse buttons option to use on login screen. 2008const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right"; 2009 2010// Copy of owner tap-to-click option to use on login screen. 2011const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click"; 2012 2013// The length of device uptime after which an automatic reboot is scheduled, 2014// expressed in seconds. 2015const char kUptimeLimit[] = "automatic_reboot.uptime_limit"; 2016 2017// Whether an automatic reboot should be scheduled when an update has been 2018// applied and a reboot is required to complete the update process. 2019const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update"; 2020 2021// An any-api scoped refresh token for enterprise-enrolled devices. Allows 2022// for connection to Google APIs when the user isn't logged in. Currently used 2023// for for getting a cloudprint scoped token to allow printing in Guest mode, 2024// Public Accounts and kiosks. 2025const char kDeviceRobotAnyApiRefreshToken[] = 2026 "device_robot_refresh_token.any-api"; 2027 2028// Device requisition for enterprise enrollment. 2029const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition"; 2030 2031// Whether to automatically start the enterprise enrollment step during OOBE. 2032const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start"; 2033 2034// Whether the user may exit enrollment. 2035const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit"; 2036 2037// How many times HID detection OOBE dialog was shown. 2038const char kTimesHIDDialogShown[] = "HIDDialog.shown_how_many_times"; 2039 2040// Dictionary of per-user Least Recently Used input method (used at login 2041// screen). 2042extern const char kUsersLRUInputMethod[] = "UsersLRUInputMethod"; 2043 2044// A dictionary pref of the echo offer check flag. It sets offer info when 2045// an offer is checked. 2046extern const char kEchoCheckedOffers[] = "EchoCheckedOffers"; 2047 2048// Key name of a dictionary in local state to store cached multiprofle user 2049// behavior policy value. 2050const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior"; 2051 2052// A string pref with initial locale set in VPD or manifest. 2053const char kInitialLocale[] = "intl.initial_locale"; 2054 2055// A boolean pref of the OOBE complete flag (first OOBE part before login). 2056const char kOobeComplete[] = "OobeComplete"; 2057 2058// The name of the screen that has to be shown if OOBE has been interrupted. 2059const char kOobeScreenPending[] = "OobeScreenPending"; 2060 2061// A boolean pref of the device registered flag (second part after first login). 2062const char kDeviceRegistered[] = "DeviceRegistered"; 2063 2064// List of usernames that used certificates pushed by policy before. 2065// This is used to prevent these users from joining multiprofile sessions. 2066const char kUsedPolicyCertificates[] = "policy.used_policy_certificates"; 2067 2068// A dictionary containing server-provided device state pulled form the cloud 2069// after recovery. 2070const char kServerBackedDeviceState[] = "server_backed_device_state"; 2071 2072// Customized wallpaper URL, which is already downloaded and scaled. 2073// The URL from this preference must never be fetched. It is compared to the 2074// URL from customization document to check if wallpaper URL has changed 2075// since wallpaper was cached. 2076const char kCustomizationDefaultWallpaperURL[] = 2077 "customization.default_wallpaper_url"; 2078#endif 2079 2080// Whether there is a Flash version installed that supports clearing LSO data. 2081const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled"; 2082 2083// Whether we should show Pepper Flash-specific settings. 2084const char kPepperFlashSettingsEnabled[] = 2085 "browser.pepper_flash_settings_enabled"; 2086 2087// String which specifies where to store the disk cache. 2088const char kDiskCacheDir[] = "browser.disk_cache_dir"; 2089// Pref name for the policy specifying the maximal cache size. 2090const char kDiskCacheSize[] = "browser.disk_cache_size"; 2091// Pref name for the policy specifying the maximal media cache size. 2092const char kMediaCacheSize[] = "browser.media_cache_size"; 2093 2094// Specifies the release channel that the device should be locked to. 2095// Possible values: "stable-channel", "beta-channel", "dev-channel", or an 2096// empty string, in which case the value will be ignored. 2097// TODO(dubroy): This preference may not be necessary once 2098// http://crosbug.com/17015 is implemented and the update engine can just 2099// fetch the correct value from the policy. 2100const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel"; 2101 2102const char kPerformanceTracingEnabled[] = 2103 "feedback.performance_tracing_enabled"; 2104 2105// Boolean indicating whether tabstrip uses stacked layout (on touch devices). 2106// Defaults to false. 2107const char kTabStripStackedLayout[] = "tab-strip-stacked-layout"; 2108 2109// Indicates that factory reset was requested from options page or reset screen. 2110const char kFactoryResetRequested[] = "FactoryResetRequested"; 2111 2112// Indicates that rollback was requested alongside with factory reset. 2113// Makes sense only if kFactoryResetRequested is true. 2114const char kRollbackRequested[] = "RollbackRequested"; 2115 2116// Boolean recording whether we have showed a balloon that calls out the message 2117// center for desktop notifications. 2118const char kMessageCenterShowedFirstRunBalloon[] = 2119 "message_center.showed_first_run_balloon"; 2120 2121// Boolean recording whether the user has disabled the notifications 2122// menubar or systray icon. 2123const char kMessageCenterShowIcon[] = "message_center.show_icon"; 2124 2125const char kMessageCenterForcedOnTaskbar[] = 2126 "message_center.was_forced_on_taskbar"; 2127 2128// *************** SERVICE PREFS *************** 2129// These are attached to the service process. 2130 2131const char kCloudPrintRoot[] = "cloud_print"; 2132const char kCloudPrintProxyEnabled[] = "cloud_print.enabled"; 2133// The unique id for this instance of the cloud print proxy. 2134const char kCloudPrintProxyId[] = "cloud_print.proxy_id"; 2135// The GAIA auth token for Cloud Print 2136const char kCloudPrintAuthToken[] = "cloud_print.auth_token"; 2137// The GAIA auth token used by Cloud Print to authenticate with the XMPP server 2138// This should eventually go away because the above token should work for both. 2139const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token"; 2140// The email address of the account used to authenticate with the Cloud Print 2141// server. 2142const char kCloudPrintEmail[] = "cloud_print.email"; 2143// Settings specific to underlying print system. 2144const char kCloudPrintPrintSystemSettings[] = 2145 "cloud_print.print_system_settings"; 2146// A boolean indicating whether we should poll for print jobs when don't have 2147// an XMPP connection (false by default). 2148const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll"; 2149const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token"; 2150const char kCloudPrintRobotEmail[] = "cloud_print.robot_email"; 2151// A boolean indicating whether we should connect to cloud print new printers. 2152const char kCloudPrintConnectNewPrinters[] = 2153 "cloud_print.user_settings.connectNewPrinters"; 2154// A boolean indicating whether we should ping XMPP connection. 2155const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled"; 2156// An int value indicating the average timeout between xmpp pings. 2157const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec"; 2158// Dictionary with settings stored by connector setup page. 2159const char kCloudPrintUserSettings[] = "cloud_print.user_settings"; 2160// List of printers settings. 2161extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers"; 2162// A boolean indicating whether submitting jobs to Google Cloud Print is 2163// blocked by policy. 2164const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled"; 2165 2166// Preference to store proxy settings. 2167const char kProxy[] = "proxy"; 2168const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy"; 2169 2170// Preferences that are exclusively used to store managed values for default 2171// content settings. 2172const char kManagedDefaultCookiesSetting[] = 2173 "profile.managed_default_content_settings.cookies"; 2174const char kManagedDefaultImagesSetting[] = 2175 "profile.managed_default_content_settings.images"; 2176const char kManagedDefaultJavaScriptSetting[] = 2177 "profile.managed_default_content_settings.javascript"; 2178const char kManagedDefaultPluginsSetting[] = 2179 "profile.managed_default_content_settings.plugins"; 2180const char kManagedDefaultPopupsSetting[] = 2181 "profile.managed_default_content_settings.popups"; 2182const char kManagedDefaultGeolocationSetting[] = 2183 "profile.managed_default_content_settings.geolocation"; 2184const char kManagedDefaultNotificationsSetting[] = 2185 "profile.managed_default_content_settings.notifications"; 2186const char kManagedDefaultMediaStreamSetting[] = 2187 "profile.managed_default_content_settings.media_stream"; 2188 2189// Preferences that are exclusively used to store managed 2190// content settings patterns. 2191const char kManagedCookiesAllowedForUrls[] = 2192 "profile.managed_cookies_allowed_for_urls"; 2193const char kManagedCookiesBlockedForUrls[] = 2194 "profile.managed_cookies_blocked_for_urls"; 2195const char kManagedCookiesSessionOnlyForUrls[] = 2196 "profile.managed_cookies_sessiononly_for_urls"; 2197const char kManagedImagesAllowedForUrls[] = 2198 "profile.managed_images_allowed_for_urls"; 2199const char kManagedImagesBlockedForUrls[] = 2200 "profile.managed_images_blocked_for_urls"; 2201const char kManagedJavaScriptAllowedForUrls[] = 2202 "profile.managed_javascript_allowed_for_urls"; 2203const char kManagedJavaScriptBlockedForUrls[] = 2204 "profile.managed_javascript_blocked_for_urls"; 2205const char kManagedPluginsAllowedForUrls[] = 2206 "profile.managed_plugins_allowed_for_urls"; 2207const char kManagedPluginsBlockedForUrls[] = 2208 "profile.managed_plugins_blocked_for_urls"; 2209const char kManagedPopupsAllowedForUrls[] = 2210 "profile.managed_popups_allowed_for_urls"; 2211const char kManagedPopupsBlockedForUrls[] = 2212 "profile.managed_popups_blocked_for_urls"; 2213const char kManagedNotificationsAllowedForUrls[] = 2214 "profile.managed_notifications_allowed_for_urls"; 2215const char kManagedNotificationsBlockedForUrls[] = 2216 "profile.managed_notifications_blocked_for_urls"; 2217const char kManagedAutoSelectCertificateForUrls[] = 2218 "profile.managed_auto_select_certificate_for_urls"; 2219 2220#if defined(OS_MACOSX) 2221// Set to true if the user removed our login item so we should not create a new 2222// one when uninstalling background apps. 2223const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item"; 2224 2225// Set to true if Chrome already created a login item, so there's no need to 2226// create another one. 2227const char kChromeCreatedLoginItem[] = 2228 "background_mode.chrome_created_login_item"; 2229 2230// Set to true once we've initialized kChromeCreatedLoginItem for the first 2231// time. 2232const char kMigratedLoginItemPref[] = 2233 "background_mode.migrated_login_item_pref"; 2234 2235// A boolean that tracks whether to show a notification when trying to quit 2236// while there are apps running. 2237const char kNotifyWhenAppsKeepChromeAlive[] = 2238 "apps.notify-when-apps-keep-chrome-alive"; 2239#endif 2240 2241// Set to true if background mode is enabled on this browser. 2242const char kBackgroundModeEnabled[] = "background_mode.enabled"; 2243 2244// Set to true if hardware acceleration mode is enabled on this browser. 2245const char kHardwareAccelerationModeEnabled[] = 2246 "hardware_acceleration_mode.enabled"; 2247 2248// Hardware acceleration mode from previous browser launch. 2249const char kHardwareAccelerationModePrevious[] = 2250 "hardware_acceleration_mode_previous"; 2251 2252// List of protocol handlers. 2253const char kRegisteredProtocolHandlers[] = 2254 "custom_handlers.registered_protocol_handlers"; 2255 2256// List of protocol handlers the user has requested not to be asked about again. 2257const char kIgnoredProtocolHandlers[] = 2258 "custom_handlers.ignored_protocol_handlers"; 2259 2260// Whether user-specified handlers for protocols and content types can be 2261// specified. 2262const char kCustomHandlersEnabled[] = "custom_handlers.enabled"; 2263 2264// Integer that specifies the policy refresh rate for device-policy in 2265// milliseconds. Not all values are meaningful, so it is clamped to a sane range 2266// by the cloud policy subsystem. 2267const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate"; 2268 2269// String that represents the recovery component last downloaded version. This 2270// takes the usual 'a.b.c.d' notation. 2271const char kRecoveryComponentVersion[] = "recovery_component.version"; 2272 2273// String that stores the component updater last known state. This is used for 2274// troubleshooting. 2275const char kComponentUpdaterState[] = "component_updater.state"; 2276 2277// A boolean where true means that the browser has previously attempted to 2278// enable autoupdate and failed, so the next out-of-date browser start should 2279// not prompt the user to enable autoupdate, it should offer to reinstall Chrome 2280// instead. 2281const char kAttemptedToEnableAutoupdate[] = 2282 "browser.attempted_to_enable_autoupdate"; 2283 2284// The next media gallery ID to assign. 2285const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id"; 2286 2287// A list of dictionaries, where each dictionary represents a known media 2288// gallery. 2289const char kMediaGalleriesRememberedGalleries[] = 2290 "media_galleries.remembered_galleries"; 2291 2292// The last time a media scan completed. 2293const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time"; 2294 2295#if defined(USE_ASH) 2296// |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The 2297// local variant is not synced and is used if set. If the local variant is not 2298// set its value is set from the synced value (once prefs have been 2299// synced). This gives a per-machine setting that is initialized from the last 2300// set value. 2301// These values are default on the machine but can be overridden by per-display 2302// values in kShelfPreferences (unless overridden by managed policy). 2303// String value corresponding to ash::Shell::ShelfAlignment. 2304const char kShelfAlignment[] = "shelf_alignment"; 2305const char kShelfAlignmentLocal[] = "shelf_alignment_local"; 2306// String value corresponding to ash::Shell::ShelfAutoHideBehavior. 2307const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; 2308const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; 2309// This value stores chrome icon's index in the launcher. This should be handled 2310// separately with app shortcut's index because of ShelfModel's backward 2311// compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its 2312// index is also stored in the |kPinnedLauncherApp| pref. It may causes 2313// creating two chrome icons. 2314const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index"; 2315// Dictionary value that holds per-display preference of shelf alignment and 2316// auto-hide behavior. Key of the dictionary is the id of the display, and 2317// its value is a dictionary whose keys are kShelfAlignment and 2318// kShelfAutoHideBehavior. 2319const char kShelfPreferences[] = "shelf_preferences"; 2320 2321// Integer value in milliseconds indicating the length of time for which a 2322// confirmation dialog should be shown when the user presses the logout button. 2323// A value of 0 indicates that logout should happen immediately, without showing 2324// a confirmation dialog. 2325const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms"; 2326const char kPinnedLauncherApps[] = "pinned_launcher_apps"; 2327// Boolean value indicating whether to show a logout button in the ash tray. 2328const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray"; 2329#endif 2330 2331#if defined(USE_AURA) 2332// Tuning settings for gestures. 2333const char kFlingVelocityCap[] = "gesture.fling_velocity_cap"; 2334const char kLongPressTimeInSeconds[] = 2335 "gesture.long_press_time_in_seconds"; 2336const char kMaxDistanceBetweenTapsForDoubleTap[] = 2337 "gesture.max_distance_between_taps_for_double_tap"; 2338const char kMaxDistanceForTwoFingerTapInPixels[] = 2339 "gesture.max_distance_for_two_finger_tap_in_pixels"; 2340const char kMaxSecondsBetweenDoubleClick[] = 2341 "gesture.max_seconds_between_double_click"; 2342const char kMaxSeparationForGestureTouchesInPixels[] = 2343 "gesture.max_separation_for_gesture_touches_in_pixels"; 2344const char kMaxSwipeDeviationRatio[] = 2345 "gesture.max_swipe_deviation_ratio"; 2346const char kMaxTouchDownDurationInSecondsForClick[] = 2347 "gesture.max_touch_down_duration_in_seconds_for_click"; 2348const char kMaxTouchMoveInPixelsForClick[] = 2349 "gesture.max_touch_move_in_pixels_for_click"; 2350const char kMinDistanceForPinchScrollInPixels[] = 2351 "gesture.min_distance_for_pinch_scroll_in_pixels"; 2352const char kMinFlickSpeedSquared[] = 2353 "gesture.min_flick_speed_squared"; 2354const char kMinPinchUpdateDistanceInPixels[] = 2355 "gesture.min_pinch_update_distance_in_pixels"; 2356const char kMinRailBreakVelocity[] = 2357 "gesture.min_rail_break_velocity"; 2358const char kMinScrollDeltaSquared[] = 2359 "gesture.min_scroll_delta_squared"; 2360const char kMinSwipeSpeed[] = 2361 "gesture.min_swipe_speed"; 2362const char kMinTouchDownDurationInSecondsForClick[] = 2363 "gesture.min_touch_down_duration_in_seconds_for_click"; 2364const char kPointsBufferedForVelocity[] = 2365 "gesture.points_buffered_for_velocity"; 2366const char kRailBreakProportion[] = 2367 "gesture.rail_break_proportion"; 2368const char kRailStartProportion[] = 2369 "gesture.rail_start_proportion"; 2370const char kScrollPredictionSeconds[] = 2371 "gesture.scroll_prediction_seconds"; 2372const char kSemiLongPressTimeInSeconds[] = 2373 "gesture.semi_long_press_time_in_seconds"; 2374const char kShowPressDelayInMS[] = 2375 "gesture.show_press_delay_in_ms"; 2376const char kTabScrubActivationDelayInMS[] = 2377 "gesture.tab_scrub_activation_delay_in_ms"; 2378const char kFlingAccelerationCurveCoefficient0[] = 2379 "gesture.fling_acceleration_curve_coefficient_0"; 2380const char kFlingAccelerationCurveCoefficient1[] = 2381 "gesture.fling_acceleration_curve_coefficient_1"; 2382const char kFlingAccelerationCurveCoefficient2[] = 2383 "gesture.fling_acceleration_curve_coefficient_2"; 2384const char kFlingAccelerationCurveCoefficient3[] = 2385 "gesture.fling_acceleration_curve_coefficient_3"; 2386const char kFlingCurveTouchpadAlpha[] = "flingcurve.touchpad_alpha"; 2387const char kFlingCurveTouchpadBeta[] = "flingcurve.touchpad_beta"; 2388const char kFlingCurveTouchpadGamma[] = "flingcurve.touchpad_gamma"; 2389const char kFlingCurveTouchscreenAlpha[] = "flingcurve.touchscreen_alpha"; 2390const char kFlingCurveTouchscreenBeta[] = "flingcurve.touchscreen_beta"; 2391const char kFlingCurveTouchscreenGamma[] = "flingcurve.touchscreen_gamma"; 2392const char kFlingMaxCancelToDownTimeInMs[] = 2393 "gesture.fling_max_cancel_to_down_time_in_ms"; 2394const char kFlingMaxTapGapTimeInMs[] = 2395 "gesture.fling_max_tap_gap_time_in_ms"; 2396const char kOverscrollHorizontalThresholdComplete[] = 2397 "overscroll.horizontal_threshold_complete"; 2398const char kOverscrollVerticalThresholdComplete[] = 2399 "overscroll.vertical_threshold_complete"; 2400const char kOverscrollMinimumThresholdStart[] = 2401 "overscroll.minimum_threshold_start"; 2402const char kOverscrollMinimumThresholdStartTouchpad[] = 2403 "overscroll.minimum_threshold_start_touchpad"; 2404const char kOverscrollVerticalThresholdStart[] = 2405 "overscroll.vertical_threshold_start"; 2406const char kOverscrollHorizontalResistThreshold[] = 2407 "overscroll.horizontal_resist_threshold"; 2408const char kOverscrollVerticalResistThreshold[] = 2409 "overscroll.vertical_resist_threshold"; 2410#endif 2411 2412// Counts how many more times the 'profile on a network share' warning should be 2413// shown to the user before the next silence period. 2414const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; 2415// Tracks the time of the last shown warning. Used to reset 2416// |network_profile.warnings_left| after a silence period. 2417const char kNetworkProfileLastWarningTime[] = 2418 "network_profile.last_warning_time"; 2419 2420#if defined(OS_CHROMEOS) 2421// The RLZ brand code, if enabled. 2422const char kRLZBrand[] = "rlz.brand"; 2423// Whether RLZ pings are disabled. 2424const char kRLZDisabled[] = "rlz.disabled"; 2425#endif 2426 2427#if defined(ENABLE_APP_LIST) 2428// The directory in user data dir that contains the profile to be used with the 2429// app launcher. 2430const char kAppListProfile[] = "app_list.profile"; 2431 2432// The number of times the app launcher was launched since last ping and 2433// the time of the last ping. 2434const char kAppListLaunchCount[] = "app_list.launch_count"; 2435const char kLastAppListLaunchPing[] = "app_list.last_launch_ping"; 2436 2437// The number of times the an app was launched from the app launcher since last 2438// ping and the time of the last ping. 2439const char kAppListAppLaunchCount[] = "app_list.app_launch_count"; 2440const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping"; 2441 2442// A boolean that tracks whether the user has ever enabled the app launcher. 2443const char kAppLauncherHasBeenEnabled[] = 2444 "apps.app_launcher.has_been_enabled"; 2445 2446// An enum indicating how the app launcher was enabled. E.g., via webstore, app 2447// install, command line, etc. For UMA. 2448const char kAppListEnableMethod[] = "app_list.how_enabled"; 2449 2450// The time that the app launcher was enabled. Cleared when UMA is recorded. 2451const char kAppListEnableTime[] = "app_list.when_enabled"; 2452 2453// TODO(calamity): remove this pref since app launcher will always be 2454// installed. 2455// Local state caching knowledge of whether the app launcher is installed. 2456const char kAppLauncherIsEnabled[] = 2457 "apps.app_launcher.should_show_apps_page"; 2458 2459// Integer representing the version of the app launcher shortcut installed on 2460// the system. Incremented, e.g., when embedded icons change. 2461const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version"; 2462 2463// A boolean identifying if we should show the app launcher promo or not. 2464const char kShowAppLauncherPromo[] = "app_launcher.show_promo"; 2465#endif 2466 2467// If set, the user requested to launch the app with this extension id while 2468// in Metro mode, and then relaunched to Desktop mode to start it. 2469const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart"; 2470 2471// Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers 2472// launch of the specified app when restarting Chrome in desktop mode. 2473const char kAppLaunchForMetroRestartProfile[] = 2474 "apps.app_launch_for_metro_restart_profile"; 2475 2476// A boolean that indicates whether app shortcuts have been created. 2477// On a transition from false to true, shortcuts are created for all apps. 2478const char kAppShortcutsHaveBeenCreated[] = "apps.shortcuts_have_been_created"; 2479 2480// How often the bubble has been shown. 2481extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown"; 2482 2483// A string pref for storing the salt used to compute the pepper device ID. 2484const char kDRMSalt[] = "settings.privacy.drm_salt"; 2485// A boolean pref that enables the (private) pepper GetDeviceID() call and 2486// enables the use of remote attestation for content protection. 2487const char kEnableDRM[] = "settings.privacy.drm_enabled"; 2488 2489// An integer per-profile pref that signals if the watchdog extension is 2490// installed and active. We need to know if the watchdog extension active for 2491// ActivityLog initialization before the extension system is initialized. 2492const char kWatchdogExtensionActive[] = 2493 "profile.extensions.activity_log.num_consumers_active"; 2494// The old version was a bool. 2495const char kWatchdogExtensionActiveOld[] = 2496 "profile.extensions.activity_log.watchdog_extension_active"; 2497 2498// A dictionary pref which maps profile names to dictionary values which hold 2499// hashes of profile prefs that we track to detect changes that happen outside 2500// of Chrome. 2501const char kProfilePreferenceHashes[] = "profile.preference_hashes"; 2502 2503// Stores a pair of local time and corresponding network time to bootstrap 2504// network time tracker when browser starts. 2505const char kNetworkTimeMapping[] = "network_time.network_time_mapping"; 2506 2507#if defined(OS_ANDROID) 2508// A list of partner bookmark rename/remove mappings. 2509// Each list item is a dictionary containing a "url", a "provider_title" and 2510// "mapped_title" entries, detailing the bookmark target URL (if any), the title 2511// given by the PartnerBookmarksProvider and either the user-visible renamed 2512// title or an empty string if the bookmark node was removed. 2513const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; 2514#endif 2515 2516// Whether DNS Quick Check is disabled in proxy resolution. 2517const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; 2518 2519} // namespace prefs 2520