pref_names.cc revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
1// Copyright (c) 2012 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "chrome/common/pref_names.h" 6 7#include "base/basictypes.h" 8#include "chrome/common/pref_font_webkit_names.h" 9 10namespace prefs { 11 12// *************** PROFILE PREFS *************** 13// These are attached to the user profile 14 15// A string property indicating whether default apps should be installed 16// in this profile. Use the value "install" to enable defaults apps, or 17// "noinstall" to disable them. This property is usually set in the 18// master_preferences and copied into the profile preferences on first run. 19// Defaults apps are installed only when creating a new profile. 20const char kDefaultApps[] = "default_apps"; 21 22// Whether we have installed default apps yet in this profile. 23const char kDefaultAppsInstalled[] = "default_apps_installed"; 24 25// Disables screenshot accelerators and extension APIs. 26// This setting resides both in profile prefs and local state. Accelerator 27// handling code reads local state, while extension APIs use profile pref. 28const char kDisableScreenshots[] = "disable_screenshots"; 29 30// A boolean specifying whether the New Tab page is the home page or not. 31const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; 32 33// This is the URL of the page to load when opening new tabs. 34const char kHomePage[] = "homepage"; 35 36// Did the user change the home page after install? 37const char kHomePageChanged[] = "homepage_changed"; 38 39// This preference is used to store the hash of a password of the custodian of 40// a managed user. It allows to unlock options which should be not available to 41// the managed user. The salt preference is used to derive the hash from the 42// password. 43const char kManagedModeLocalPassphrase[] = "managed_mode.passphrase"; 44const char kManagedModeLocalSalt[] = "managed_mode.salt"; 45 46// Maps host names to whether the host is manually allowed or blocked. 47const char kManagedModeManualHosts[] = "profile.managed.manual_hosts"; 48// Maps URLs to whether the URL is manually allowed or blocked. 49const char kManagedModeManualURLs[] = "profile.managed.manual_urls"; 50 51// Used to determine if the last session exited cleanly. Set to false when 52// first opened, and to true when closing. On startup if the value is false, 53// it means the profile didn't exit cleanly. 54// DEPRECATED: this is replaced by kSessionExitType and exists for backwards 55// compatability. 56const char kSessionExitedCleanly[] = "profile.exited_cleanly"; 57 58// A string pref whose values is one of the values defined by 59// |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and 60// one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during 61// shutdown. Used to determine the exit type the last time the profile was open. 62const char kSessionExitType[] = "profile.exit_type"; 63 64// An integer pref. Holds one of several values: 65// 0: (deprecated) open the homepage on startup. 66// 1: restore the last session. 67// 2: this was used to indicate a specific session should be restored. It is 68// no longer used, but saved to avoid conflict with old preferences. 69// 3: unused, previously indicated the user wants to restore a saved session. 70// 4: restore the URLs defined in kURLsToRestoreOnStartup. 71// 5: open the New Tab Page on startup. 72const char kRestoreOnStartup[] = "session.restore_on_startup"; 73 74// The URLs to restore on startup or when the home button is pressed. The URLs 75// are only restored on startup if kRestoreOnStartup is 4. 76const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; 77 78// A preference to keep track of whether we have already checked whether we 79// need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. 80// We only need to do this check once, on upgrade from m18 or lower to m19 or 81// higher. 82const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; 83 84// The application locale. 85// For OS_CHROMEOS we maintain kApplicationLocale property in both local state 86// and user's profile. Global property determines locale of login screen, 87// while user's profile determines his personal locale preference. 88const char kApplicationLocale[] = "intl.app_locale"; 89#if defined(OS_CHROMEOS) 90// Locale preference of device' owner. ChromeOS device appears in this locale 91// after startup/wakeup/signout. 92const char kOwnerLocale[] = "intl.owner_locale"; 93// Locale accepted by user. Non-syncable. 94// Used to determine whether we need to show Locale Change notification. 95const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted"; 96// Non-syncable item. 97// It is used in two distinct ways. 98// (1) Used for two-step initialization of locale in ChromeOS 99// because synchronization of kApplicationLocale is not instant. 100// (2) Used to detect locale change. Locale change is detected by 101// LocaleChangeGuard in case values of kApplicationLocaleBackup and 102// kApplicationLocale are both non-empty and differ. 103// Following is a table showing how state of those prefs may change upon 104// common real-life use cases: 105// AppLocale Backup Accepted 106// Initial login - A - 107// Sync B A - 108// Accept (B) B B B 109// ----------------------------------------------------------- 110// Initial login - A - 111// No sync and second login A A - 112// Change options B B - 113// ----------------------------------------------------------- 114// Initial login - A - 115// Sync A A - 116// Locale changed on login screen A C - 117// Accept (A) A A A 118// ----------------------------------------------------------- 119// Initial login - A - 120// Sync B A - 121// Revert A A - 122const char kApplicationLocaleBackup[] = "intl.app_locale_backup"; 123#endif 124 125// The default character encoding to assume for a web page in the 126// absence of MIME charset specification 127const char kDefaultCharset[] = "intl.charset_default"; 128 129// The value to use for Accept-Languages HTTP header when making an HTTP 130// request. 131const char kAcceptLanguages[] = "intl.accept_languages"; 132 133// The value to use for showing locale-dependent encoding list for different 134// locale, it's initialized from the corresponding string resource that is 135// stored in non-translatable part of the resource bundle. 136const char kStaticEncodings[] = "intl.static_encodings"; 137 138// Obselete WebKit prefs for migration. 139const char kGlobalDefaultCharset[] = "intl.global.charset_default"; 140const char kWebKitGlobalDefaultFontSize[] = 141 "webkit.webprefs.global.default_font_size"; 142const char kWebKitGlobalDefaultFixedFontSize[] = 143 "webkit.webprefs.global.default_fixed_font_size"; 144const char kWebKitGlobalMinimumFontSize[] = 145 "webkit.webprefs.global.minimum_font_size"; 146const char kWebKitGlobalMinimumLogicalFontSize[] = 147 "webkit.webprefs.global.minimum_logical_font_size"; 148const char kWebKitGlobalJavascriptCanOpenWindowsAutomatically[] = 149 "webkit.webprefs.global.javascript_can_open_windows_automatically"; 150const char kWebKitGlobalJavascriptEnabled[] = 151 "webkit.webprefs.global.javascript_enabled"; 152const char kWebKitGlobalLoadsImagesAutomatically[] = 153 "webkit.webprefs.global.loads_images_automatically"; 154const char kWebKitGlobalPluginsEnabled[] = 155 "webkit.webprefs.global.plugins_enabled"; 156const char kWebKitGlobalStandardFontFamily[] = 157 "webkit.webprefs.global.standard_font_family"; 158const char kWebKitGlobalFixedFontFamily[] = 159 "webkit.webprefs.global.fixed_font_family"; 160const char kWebKitGlobalSerifFontFamily[] = 161 "webkit.webprefs.global.serif_font_family"; 162const char kWebKitGlobalSansSerifFontFamily[] = 163 "webkit.webprefs.global.sansserif_font_family"; 164const char kWebKitGlobalCursiveFontFamily[] = 165 "webkit.webprefs.global.cursive_font_family"; 166const char kWebKitGlobalFantasyFontFamily[] = 167 "webkit.webprefs.global.fantasy_font_family"; 168const char kWebKitOldStandardFontFamily[] = 169 "webkit.webprefs.standard_font_family"; 170const char kWebKitOldFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; 171const char kWebKitOldSerifFontFamily[] = "webkit.webprefs.serif_font_family"; 172const char kWebKitOldSansSerifFontFamily[] = 173 "webkit.webprefs.sansserif_font_family"; 174const char kWebKitOldCursiveFontFamily[] = 175 "webkit.webprefs.cursive_font_family"; 176const char kWebKitOldFantasyFontFamily[] = 177 "webkit.webprefs.fantasy_font_family"; 178 179// If these change, the corresponding enums in the extension API 180// experimental.fontSettings.json must also change. 181const char* const kWebKitScriptsForFontFamilyMaps[] = { 182#define EXPAND_SCRIPT_FONT(x, script_name) script_name , 183#include "chrome/common/pref_font_script_names-inl.h" 184ALL_FONT_SCRIPTS("unused param") 185#undef EXPAND_SCRIPT_FONT 186}; 187 188const size_t kWebKitScriptsForFontFamilyMapsLength = 189 arraysize(kWebKitScriptsForFontFamilyMaps); 190 191// Strings for WebKit font family preferences. If these change, the pref prefix 192// in pref_names_util.cc and the pref format in font_settings_api.cc must also 193// change. 194const char kWebKitStandardFontFamilyMap[] = 195 WEBKIT_WEBPREFS_FONTS_STANDARD; 196const char kWebKitFixedFontFamilyMap[] = 197 WEBKIT_WEBPREFS_FONTS_FIXED; 198const char kWebKitSerifFontFamilyMap[] = 199 WEBKIT_WEBPREFS_FONTS_SERIF; 200const char kWebKitSansSerifFontFamilyMap[] = 201 WEBKIT_WEBPREFS_FONTS_SANSERIF; 202const char kWebKitCursiveFontFamilyMap[] = 203 WEBKIT_WEBPREFS_FONTS_CURSIVE; 204const char kWebKitFantasyFontFamilyMap[] = 205 WEBKIT_WEBPREFS_FONTS_FANTASY; 206const char kWebKitPictographFontFamilyMap[] = 207 WEBKIT_WEBPREFS_FONTS_PICTOGRAPH; 208const char kWebKitStandardFontFamilyArabic[] = 209 "webkit.webprefs.fonts.standard.Arab"; 210const char kWebKitFixedFontFamilyArabic[] = 211 "webkit.webprefs.fonts.fixed.Arab"; 212const char kWebKitSerifFontFamilyArabic[] = 213 "webkit.webprefs.fonts.serif.Arab"; 214const char kWebKitSansSerifFontFamilyArabic[] = 215 "webkit.webprefs.fonts.sansserif.Arab"; 216const char kWebKitStandardFontFamilyCyrillic[] = 217 "webkit.webprefs.fonts.standard.Cyrl"; 218const char kWebKitFixedFontFamilyCyrillic[] = 219 "webkit.webprefs.fonts.fixed.Cyrl"; 220const char kWebKitSerifFontFamilyCyrillic[] = 221 "webkit.webprefs.fonts.serif.Cyrl"; 222const char kWebKitSansSerifFontFamilyCyrillic[] = 223 "webkit.webprefs.fonts.sansserif.Cyrl"; 224const char kWebKitStandardFontFamilyGreek[] = 225 "webkit.webprefs.fonts.standard.Grek"; 226const char kWebKitFixedFontFamilyGreek[] = 227 "webkit.webprefs.fonts.fixed.Grek"; 228const char kWebKitSerifFontFamilyGreek[] = 229 "webkit.webprefs.fonts.serif.Grek"; 230const char kWebKitSansSerifFontFamilyGreek[] = 231 "webkit.webprefs.fonts.sansserif.Grek"; 232const char kWebKitStandardFontFamilyJapanese[] = 233 "webkit.webprefs.fonts.standard.Jpan"; 234const char kWebKitFixedFontFamilyJapanese[] = 235 "webkit.webprefs.fonts.fixed.Jpan"; 236const char kWebKitSerifFontFamilyJapanese[] = 237 "webkit.webprefs.fonts.serif.Jpan"; 238const char kWebKitSansSerifFontFamilyJapanese[] = 239 "webkit.webprefs.fonts.sansserif.Jpan"; 240const char kWebKitStandardFontFamilyKorean[] = 241 "webkit.webprefs.fonts.standard.Hang"; 242const char kWebKitFixedFontFamilyKorean[] = 243 "webkit.webprefs.fonts.fixed.Hang"; 244const char kWebKitSerifFontFamilyKorean[] = 245 "webkit.webprefs.fonts.serif.Hang"; 246const char kWebKitSansSerifFontFamilyKorean[] = 247 "webkit.webprefs.fonts.sansserif.Hang"; 248const char kWebKitCursiveFontFamilyKorean[] = 249 "webkit.webprefs.fonts.cursive.Hang"; 250const char kWebKitStandardFontFamilyLatin[] = 251 "webkit.webprefs.fonts.standard.Latn"; 252const char kWebKitFixedFontFamilyLatin[] = 253 "webkit.webprefs.fonts.fixed.Latn"; 254const char kWebKitSerifFontFamilyLatin[] = 255 "webkit.webprefs.fonts.serif.Latn"; 256const char kWebKitSansSerifFontFamilyLatin[] = 257 "webkit.webprefs.fonts.sansserif.Latn"; 258const char kWebKitCursiveFontFamilyLatin[] = 259 "webkit.webprefs.fonts.cursive.Latn"; 260const char kWebKitFantasyFontFamilyLatin[] = 261 "webkit.webprefs.fonts.fantasy.Latn"; 262const char kWebKitPictographFontFamilyLatin[] = 263 "webkit.webprefs.fonts.pictograph.Latn"; 264const char kWebKitStandardFontFamilySimplifiedHan[] = 265 "webkit.webprefs.fonts.standard.Hans"; 266const char kWebKitFixedFontFamilySimplifiedHan[] = 267 "webkit.webprefs.fonts.fixed.Hans"; 268const char kWebKitSerifFontFamilySimplifiedHan[] = 269 "webkit.webprefs.fonts.serif.Hans"; 270const char kWebKitSansSerifFontFamilySimplifiedHan[] = 271 "webkit.webprefs.fonts.sansserif.Hans"; 272const char kWebKitStandardFontFamilyTraditionalHan[] = 273 "webkit.webprefs.fonts.standard.Hant"; 274const char kWebKitFixedFontFamilyTraditionalHan[] = 275 "webkit.webprefs.fonts.fixed.Hant"; 276const char kWebKitSerifFontFamilyTraditionalHan[] = 277 "webkit.webprefs.fonts.serif.Hant"; 278const char kWebKitSansSerifFontFamilyTraditionalHan[] = 279 "webkit.webprefs.fonts.sansserif.Hant"; 280 281// WebKit preferences. 282const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; 283const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled"; 284const char kWebKitShrinksStandaloneImagesToFit[] = 285 "webkit.webprefs.shrinks_standalone_images_to_fit"; 286const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings"; 287const char kWebKitUsesUniversalDetector[] = 288 "webkit.webprefs.uses_universal_detector"; 289const char kWebKitTextAreasAreResizable[] = 290 "webkit.webprefs.text_areas_are_resizable"; 291const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; 292const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; 293const char kWebKitAllowDisplayingInsecureContent[] = 294 "webkit.webprefs.allow_displaying_insecure_content"; 295const char kWebKitAllowRunningInsecureContent[] = 296 "webkit.webprefs.allow_running_insecure_content"; 297#if defined(OS_ANDROID) 298const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor"; 299const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom"; 300#endif 301 302const char kWebKitCommonScript[] = "Zyyy"; 303const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy"; 304const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy"; 305const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy"; 306const char kWebKitSansSerifFontFamily[] = 307 "webkit.webprefs.fonts.sansserif.Zyyy"; 308const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy"; 309const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy"; 310const char kWebKitPictographFontFamily[] = 311 "webkit.webprefs.fonts.pictograph.Zyyy"; 312const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; 313const char kWebKitDefaultFixedFontSize[] = 314 "webkit.webprefs.default_fixed_font_size"; 315const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; 316const char kWebKitMinimumLogicalFontSize[] = 317 "webkit.webprefs.minimum_logical_font_size"; 318const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; 319const char kWebKitJavascriptCanOpenWindowsAutomatically[] = 320 "webkit.webprefs.javascript_can_open_windows_automatically"; 321const char kWebKitLoadsImagesAutomatically[] = 322 "webkit.webprefs.loads_images_automatically"; 323const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled"; 324 325// Boolean which specifies whether the bookmark bar is visible on all tabs. 326const char kShowBookmarkBar[] = "bookmark_bar.show_on_all_tabs"; 327 328// Boolean which specifies whether the apps shortcut is visible on the bookmark 329// bar. 330const char kShowAppsShortcutInBookmarkBar[] = "bookmark_bar.show_apps_shortcut"; 331 332// Boolean which specifies the ids of the bookmark nodes that are expanded in 333// the bookmark editor. 334const char kBookmarkEditorExpandedNodes[] = "bookmark_editor.expanded_nodes"; 335 336// Boolean controlling whether password generation is enabled (will allow users 337// to generated passwords on account creation pages). 338const char kPasswordGenerationEnabled[] = "password_generation.enabled"; 339 340// Boolean that is true if the password manager is on (will record new 341// passwords and fill in known passwords). 342const char kPasswordManagerEnabled[] = "profile.password_manager_enabled"; 343 344// Boolean controlling whether the password manager allows to retrieve passwords 345// in clear text. 346const char kPasswordManagerAllowShowPasswords[] = 347 "profile.password_manager_allow_show_passwords"; 348 349// Booleans identifying whether normal and reverse auto-logins are enabled. 350const char kAutologinEnabled[] = "autologin.enabled"; 351const char kReverseAutologinEnabled[] = "reverse_autologin.enabled"; 352 353// List to keep track of emails for which the user has rejected one-click 354// sign-in. 355const char kReverseAutologinRejectedEmailList[] = 356 "reverse_autologin.rejected_email_list"; 357 358// Boolean that is true when SafeBrowsing is enabled. 359const char kSafeBrowsingEnabled[] = "safebrowsing.enabled"; 360 361// Boolean that is true when SafeBrowsing Malware Report is enabled. 362const char kSafeBrowsingReportingEnabled[] = 363 "safebrowsing.reporting_enabled"; 364 365// Boolean that is true when the SafeBrowsing interstitial should not allow 366// users to proceed anyway. 367const char kSafeBrowsingProceedAnywayDisabled[] = 368 "safebrowsing.proceed_anyway_disabled"; 369 370// Enum that specifies whether Incognito mode is: 371// 0 - Enabled. Default behaviour. Default mode is available on demand. 372// 1 - Disabled. Used cannot browse pages in Incognito mode. 373// 2 - Forced. All pages/sessions are forced into Incognito. 374const char kIncognitoModeAvailability[] = "incognito.mode_availability"; 375 376// Boolean that is true when Suggest support is enabled. 377const char kSearchSuggestEnabled[] = "search.suggest_enabled"; 378 379// Boolean that indicates whether the browser should put up a confirmation 380// window when the user is attempting to quit. Mac only. 381const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; 382 383// OBSOLETE. Enum that specifies whether to enforce a third-party cookie 384// blocking policy. This has been superseded by kDefaultContentSettings + 385// kBlockThirdPartyCookies. 386// 0 - allow all cookies. 387// 1 - block third-party cookies 388// 2 - block all cookies 389const char kCookieBehavior[] = "security.cookie_behavior"; 390 391// The GUID of the synced default search provider. Note that this acts like a 392// pointer to which synced search engine should be the default, rather than the 393// prefs below which describe the locally saved default search provider details 394// (and are not synced). This is ignored in the case of the default search 395// provider being managed by policy. 396const char kSyncedDefaultSearchProviderGUID[] = 397 "default_search_provider.synced_guid"; 398 399// Whether having a default search provider is enabled. 400const char kDefaultSearchProviderEnabled[] = 401 "default_search_provider.enabled"; 402 403// The URL (as understood by TemplateURLRef) the default search provider uses 404// for searches. 405const char kDefaultSearchProviderSearchURL[] = 406 "default_search_provider.search_url"; 407 408// The URL (as understood by TemplateURLRef) the default search provider uses 409// for suggestions. 410const char kDefaultSearchProviderSuggestURL[] = 411 "default_search_provider.suggest_url"; 412 413// The URL (as understood by TemplateURLRef) the default search provider uses 414// for instant results. 415const char kDefaultSearchProviderInstantURL[] = 416 "default_search_provider.instant_url"; 417 418// The Favicon URL (as understood by TemplateURLRef) of the default search 419// provider. 420const char kDefaultSearchProviderIconURL[] = 421 "default_search_provider.icon_url"; 422 423// The input encoding (as understood by TemplateURLRef) supported by the default 424// search provider. The various encodings are separated by ';' 425const char kDefaultSearchProviderEncodings[] = 426 "default_search_provider.encodings"; 427 428// The name of the default search provider. 429const char kDefaultSearchProviderName[] = "default_search_provider.name"; 430 431// The keyword of the default search provider. 432const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword"; 433 434// The id of the default search provider. 435const char kDefaultSearchProviderID[] = "default_search_provider.id"; 436 437// The prepopulate id of the default search provider. 438const char kDefaultSearchProviderPrepopulateID[] = 439 "default_search_provider.prepopulate_id"; 440 441// The alternate urls of the default search provider. 442const char kDefaultSearchProviderAlternateURLs[] = 443 "default_search_provider.alternate_urls"; 444 445// Search term placement query parameter for the default search provider. 446const char kDefaultSearchProviderSearchTermsReplacementKey[] = 447 "default_search_provider.search_terms_replacement_key"; 448 449// The dictionary key used when the default search providers are given 450// in the preferences file. Normally they are copied from the master 451// preferences file. 452const char kSearchProviderOverrides[] = "search_provider_overrides"; 453// The format version for the dictionary above. 454const char kSearchProviderOverridesVersion[] = 455 "search_provider_overrides_version"; 456 457// Boolean which specifies whether we should ask the user if we should download 458// a file (true) or just download it automatically. 459const char kPromptForDownload[] = "download.prompt_for_download"; 460 461// A boolean pref set to true if we're using Link Doctor error pages. 462const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled"; 463 464// OBSOLETE: new pref now stored with user prefs instead of profile, as 465// kDnsPrefetchingStartupList. 466const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList"; 467 468// An adaptively identified list of domain names to be pre-fetched during the 469// next startup, based on what was actually needed during this startup. 470const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list"; 471 472// OBSOLETE: new pref now stored with user prefs instead of profile, as 473// kDnsPrefetchingHostReferralList. 474const char kDnsHostReferralList[] = "HostReferralList"; 475 476// A list of host names used to fetch web pages, and their commonly used 477// sub-resource hostnames (and expected latency benefits from pre-resolving, or 478// preconnecting to, such sub-resource hostnames). 479// This list is adaptively grown and pruned. 480const char kDnsPrefetchingHostReferralList[] = 481 "dns_prefetching.host_referral_list"; 482 483// Disables the SPDY protocol. 484const char kDisableSpdy[] = "spdy.disabled"; 485 486// Prefs for persisting HttpServerProperties. 487const char kHttpServerProperties[] = "net.http_server_properties"; 488 489// Prefs for server names that support SPDY protocol. 490const char kSpdyServers[] = "spdy.servers"; 491 492// Prefs for servers that support Alternate-Protocol. 493const char kAlternateProtocolServers[] = "spdy.alternate_protocol"; 494 495// Disables the listed protocol schemes. 496const char kDisabledSchemes[] = "protocol.disabled_schemes"; 497 498// Blocks access to the listed host patterns. 499const char kUrlBlacklist[] = "policy.url_blacklist"; 500 501// Allows access to the listed host patterns, as exceptions to the blacklist. 502const char kUrlWhitelist[] = "policy.url_whitelist"; 503 504// Boolean pref indicating if instant is enabled. 505const char kInstantEnabled[] = "instant.enabled"; 506 507// Boolean pref indicating if instant is enabled for instant extended. 508const char kInstantExtendedEnabled[] = "instant_extended.enabled"; 509 510// Prefix URL for the experimental Instant ZeroSuggest provider. 511const char kInstantUIZeroSuggestUrlPrefix[] = 512 "instant_ui.zero_suggest_url_prefix"; 513 514// Used to migrate preferences from local state to user preferences to 515// enable multiple profiles. 516// BITMASK with possible values (see browser_prefs.cc for enum): 517// 0: No preferences migrated. 518// 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList 519// 2: Browser window preferences migrated: kDevToolsSplitLocation and 520// kBrowserWindowPlacement 521const char kMultipleProfilePrefMigration[] = 522 "local_state.multiple_profile_prefs_version"; 523 524// A boolean pref set to true if prediction of network actions is allowed. 525// Actions include DNS prefetching, TCP and SSL preconnection, and prerendering 526// of web pages. 527// NOTE: The "dns_prefetching.enabled" value is used so that historical user 528// preferences are not lost. 529const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; 530 531// An integer representing the state of the default apps installation process. 532// This value is persisted in the profile's user preferences because the process 533// is async, and the user may have stopped chrome in the middle. The next time 534// the profile is opened, the process will continue from where it left off. 535// 536// See possible values in external_provider_impl.cc. 537const char kDefaultAppsInstallState[] = "default_apps_install_state"; 538 539// A boolean pref set to true if the Chrome Web Store icons should be hidden 540// from the New Tab Page and app launcher. 541const char kHideWebStoreIcon[] = "hide_web_store_icon"; 542 543#if defined(OS_CHROMEOS) 544// A dictionary pref to hold the mute setting for all the currently known 545// audio devices. 546const char kAudioDevicesMute[] = "settings.audio.devices.mute"; 547 548// A dictionary pref storing the volume settings for all the currently known 549// audio devices. 550const char kAudioDevicesVolumePercent[] = 551 "settings.audio.devices.volume_percent"; 552 553// An integer pref to initially mute volume if 1. This pref is ignored if 554// |kAudioOutputAllowed| is set to false, but its value is preserved, therefore 555// when the policy is lifted the original mute state is restored. This setting 556// is here only for migration purposes now. It is being replaced by the 557// |kAudioDevicesMute| setting. 558const char kAudioMute[] = "settings.audio.mute"; 559 560// A double pref storing the user-requested volume. This setting is here only 561// for migration purposes now. It is being replaced by the 562// |kAudioDevicesVolumePercent| setting. 563const char kAudioVolumePercent[] = "settings.audio.volume_percent"; 564 565// A boolean pref set to true if touchpad tap-to-click is enabled. 566const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click"; 567 568// A boolean pref set to true if touchpad tap-dragging is enabled. 569const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging"; 570 571// A boolean pref set to true if touchpad three-finger-click is enabled. 572const char kEnableTouchpadThreeFingerClick[] = 573 "settings.touchpad.enable_three_finger_click"; 574 575// A boolean pref set to true if touchpad three-finger swipe is enabled. 576const char kEnableTouchpadThreeFingerSwipe[] = 577 "settings.touchpad.enable_three_finger_swipe"; 578 579// A boolean pref set to true if touchpad natural scrolling is enabled. 580const char kNaturalScroll[] = "settings.touchpad.natural_scroll"; 581 582// A boolean pref set to true if primary mouse button is the left button. 583const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right"; 584 585// A integer pref for the touchpad sensitivity. 586const char kMouseSensitivity[] = "settings.mouse.sensitivity2"; 587 588// A integer pref for the touchpad sensitivity. 589const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2"; 590 591// A boolean pref set to true if time should be displayed in 24-hour clock. 592const char kUse24HourClock[] = "settings.clock.use_24hour_clock"; 593 594// A boolean pref to disable Google Drive integration. 595// The pref prefix should remain as "gdata" for backward compatibility. 596const char kDisableDrive[] = "gdata.disabled"; 597 598// A boolean pref to disable Drive over cellular connections. 599// The pref prefix should remain as "gdata" for backward compatibility. 600const char kDisableDriveOverCellular[] = "gdata.cellular.disabled"; 601 602// A boolean pref to disable hosted files on Drive. 603// The pref prefix should remain as "gdata" for backward compatibility. 604const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled"; 605 606// A string pref set to the current input method. 607const char kLanguageCurrentInputMethod[] = 608 "settings.language.current_input_method"; 609 610// A string pref set to the previous input method. 611const char kLanguagePreviousInputMethod[] = 612 "settings.language.previous_input_method"; 613 614// A string pref (comma-separated list) set to the "next engine in menu" 615// hot-key lists. 616const char kLanguageHotkeyNextEngineInMenu[] = 617 "settings.language.hotkey_next_engine_in_menu"; 618 619// A string pref (comma-separated list) set to the "previous engine" 620// hot-key lists. 621const char kLanguageHotkeyPreviousEngine[] = 622 "settings.language.hotkey_previous_engine"; 623 624// A string pref (comma-separated list) set to the preferred language IDs 625// (ex. "en-US,fr,ko"). 626const char kLanguagePreferredLanguages[] = 627 "settings.language.preferred_languages"; 628 629// A string pref (comma-separated list) set to the preloaded (active) input 630// method IDs (ex. "pinyin,mozc"). 631const char kLanguagePreloadEngines[] = "settings.language.preload_engines"; 632 633// A List pref (comma-separated list) set to the extension IMEs to filter out. 634const char kLanguageFilteredExtensionImes[] = 635 "settings.language.filtered_extension_imes"; 636 637// Boolean prefs for ibus-chewing Chinese input method. 638const char kLanguageChewingAutoShiftCur[] = 639 "settings.language.chewing_auto_shift_cur"; 640const char kLanguageChewingAddPhraseDirection[] = 641 "settings.language.chewing_add_phrase_direction"; 642const char kLanguageChewingEasySymbolInput[] = 643 "settings.language.chewing_easy_symbol_input"; 644const char kLanguageChewingEscCleanAllBuf[] = 645 "settings.language.chewing_esc_clean_all_buf"; 646const char kLanguageChewingForceLowercaseEnglish[] = 647 "settings.language.chewing_force_lowercase_english"; 648const char kLanguageChewingPlainZhuyin[] = 649 "settings.language.chewing_plain_zhuyin"; 650const char kLanguageChewingPhraseChoiceRearward[] = 651 "settings.language.chewing_phrase_choice_rearward"; 652const char kLanguageChewingSpaceAsSelection[] = 653 "settings.language.chewing_space_as_selection"; 654 655// Integer prefs for ibus-chewing Chinese input method. 656const char kLanguageChewingMaxChiSymbolLen[] = 657 "settings.language.chewing_max_chi_symbol_len"; 658const char kLanguageChewingCandPerPage[] = 659 "settings.language.chewing_cand_per_page"; 660 661// String prefs for ibus-chewing Chinese input method. 662const char kLanguageChewingKeyboardType[] = 663 "settings.language.chewing_keyboard_type"; 664const char kLanguageChewingSelKeys[] = 665 "settings.language.chewing_sel_keys"; 666 667const char kLanguageChewingHsuSelKeyType[] = 668 "settings.language.chewing_hsu_sel_key_type"; 669 670// A string pref which determines the keyboard layout for Hangul input method. 671const char kLanguageHangulKeyboard[] = "settings.language.hangul_keyboard"; 672const char kLanguageHangulHanjaBindingKeys[] = 673 "settings.language.hangul_hanja_binding_keys"; 674 675// A boolean prefs for ibus-pinyin Chinese input method. 676const char kLanguagePinyinCorrectPinyin[] = 677 "settings.language.pinyin_correct_pinyin"; 678const char kLanguagePinyinFuzzyPinyin[] = 679 "settings.language.pinyin_fuzzy_pinyin"; 680const char kLanguagePinyinShiftSelectCandidate[] = 681 "settings.language.pinyin_shift_select_candidate"; 682const char kLanguagePinyinMinusEqualPage[] = 683 "settings.language.pinyin_minus_equal_page"; 684const char kLanguagePinyinCommaPeriodPage[] = 685 "settings.language.pinyin_comma_period_page"; 686const char kLanguagePinyinAutoCommit[] = 687 "settings.language.pinyin_auto_commit"; 688const char kLanguagePinyinDoublePinyin[] = 689 "settings.language.pinyin_double_pinyin"; 690const char kLanguagePinyinInitChinese[] = 691 "settings.language.pinyin_init_chinese"; 692const char kLanguagePinyinInitFull[] = 693 "settings.language.pinyin_init_full"; 694const char kLanguagePinyinInitFullPunct[] = 695 "settings.language.pinyin_init_full_punct"; 696const char kLanguagePinyinInitSimplifiedChinese[] = 697 "settings.language.pinyin_init_simplified_chinese"; 698const char kLanguagePinyinTradCandidate[] = 699 "settings.language.pinyin_trad_candidate"; 700 701// A integer prefs for ibus-pinyin Chinese input method. 702const char kLanguagePinyinDoublePinyinSchema[] = 703 "settings.language.pinyin_double_pinyin_schema"; 704const char kLanguagePinyinLookupTablePageSize[] = 705 "settings.language.pinyin_lookup_table_page_size"; 706 707// A string prefs for ibus-mozc Japanese input method. 708// ibus-mozc converts the string values to protobuf enum values defined in 709// third_party/ibus-mozc/files/src/session/config.proto. 710const char kLanguageMozcPreeditMethod[] = 711 "settings.language.mozc_preedit_method"; 712const char kLanguageMozcSessionKeymap[] = 713 "settings.language.mozc_session_keymap"; 714const char kLanguageMozcPunctuationMethod[] = 715 "settings.language.mozc_punctuation_method"; 716const char kLanguageMozcSymbolMethod[] = 717 "settings.language.mozc_symbol_method"; 718const char kLanguageMozcSpaceCharacterForm[] = 719 "settings.language.mozc_space_character_form"; 720const char kLanguageMozcHistoryLearningLevel[] = 721 "settings.language.mozc_history_learning_level"; 722const char kLanguageMozcSelectionShortcut[] = 723 "settings.language.mozc_selection_shortcut"; 724const char kLanguageMozcShiftKeyModeSwitch[] = 725 "settings.language.mozc_shift_key_mode_switch"; 726const char kLanguageMozcNumpadCharacterForm[] = 727 "settings.language.mozc_numpad_character_form"; 728const char kLanguageMozcIncognitoMode[] = 729 "settings.language.mozc_incognito_mode"; 730const char kLanguageMozcUseAutoImeTurnOff[] = 731 "settings.language.mozc_use_auto_ime_turn_off"; 732const char kLanguageMozcUseHistorySuggest[] = 733 "settings.language.mozc_use_history_suggest"; 734const char kLanguageMozcUseDictionarySuggest[] = 735 "settings.language.mozc_use_dictionary_suggest"; 736const char kLanguageMozcSuggestionsSize[] = 737 "settings.language.mozc_suggestions_size"; 738 739// A integer prefs which determine how we remap modifier keys (e.g. swap Alt and 740// Control.) Possible values for these prefs are 0-4. See ModifierKey enum in 741// src/chrome/browser/chromeos/input_method/xkeyboard.h 742const char kLanguageRemapSearchKeyTo[] = 743 // Note: we no longer use XKB for remapping these keys, but we can't change 744 // the pref names since the names are already synced with the cloud. 745 "settings.language.xkb_remap_search_key_to"; 746const char kLanguageRemapControlKeyTo[] = 747 "settings.language.xkb_remap_control_key_to"; 748const char kLanguageRemapAltKeyTo[] = 749 "settings.language.xkb_remap_alt_key_to"; 750const char kLanguageRemapCapsLockKeyTo[] = 751 "settings.language.remap_caps_lock_key_to"; 752const char kLanguageRemapDiamondKeyTo[] = 753 "settings.language.remap_diamond_key_to"; 754 755// A boolean pref which determines whether key repeat is enabled. 756const char kLanguageXkbAutoRepeatEnabled[] = 757 "settings.language.xkb_auto_repeat_enabled_r2"; 758// A integer pref which determines key repeat delay (in ms). 759const char kLanguageXkbAutoRepeatDelay[] = 760 "settings.language.xkb_auto_repeat_delay_r2"; 761// A integer pref which determines key repeat interval (in ms). 762const char kLanguageXkbAutoRepeatInterval[] = 763 "settings.language.xkb_auto_repeat_interval_r2"; 764// "_r2" suffixes are added to the three prefs above when we change the 765// preferences not user-configurable, not to sync them with cloud. 766 767// A boolean pref which determines whether spoken feedback is enabled. 768const char kSpokenFeedbackEnabled[] = "settings.accessibility"; 769// A boolean pref which determines whether high conrast is enabled. 770const char kHighContrastEnabled[] = "settings.a11y.high_contrast_enabled"; 771// A boolean pref which determines whether screen magnifier is enabled. 772const char kScreenMagnifierEnabled[] = "settings.a11y.screen_magnifier"; 773// A integer pref which determines what type of screen magnifier is enabled. 774// Note that: 'screen_magnifier_type' had been used as string pref. Hence, 775// we are using another name pref here. 776const char kScreenMagnifierType[] = "settings.a11y.screen_magnifier_type2"; 777// A double pref which determines a zooming scale of the screen magnifier. 778const char kScreenMagnifierScale[] = "settings.a11y.screen_magnifier_scale"; 779// A boolean pref which determines whether virtual keyboard is enabled. 780// TODO(hashimoto): Remove this pref. 781const char kVirtualKeyboardEnabled[] = "settings.a11y.virtual_keyboard"; 782// A boolean pref which determines whether the accessibility menu shows 783// regardless of the state of a11y features. 784const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu"; 785 786// A boolean pref which turns on Advanced Filesystem 787// (USB support, SD card, etc). 788const char kLabsAdvancedFilesystemEnabled[] = 789 "settings.labs.advanced_filesystem"; 790 791// A boolean pref which turns on the mediaplayer. 792const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer"; 793 794// A boolean pref that turns on screen locker. 795const char kEnableScreenLock[] = "settings.enable_screen_lock"; 796 797// A boolean pref of whether to show mobile plan notifications. 798const char kShowPlanNotifications[] = 799 "settings.internet.mobile.show_plan_notifications"; 800 801// A boolean pref of whether to show 3G promo notification. 802const char kShow3gPromoNotification[] = 803 "settings.internet.mobile.show_3g_promo_notification"; 804 805// A string pref that contains version where "What's new" promo was shown. 806const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version"; 807 808// A boolean pref that uses shared proxies. 809const char kUseSharedProxies[] = "settings.use_shared_proxies"; 810 811// Power state of the current displays from the last run. 812const char kDisplayPowerState[] = "settings.display.power_state"; 813// A dictionary pref that stores per display preferences. 814const char kDisplayProperties[] = "settings.display.properties"; 815 816// A 64bit integer pref that specifies the name of the primary display device. 817const char kPrimaryDisplayID[] = "settings.display.primary_id"; 818 819// An enumeration that specifies the layout of the secondary display. 820// 0 - The secondary display is at the top of the primary display. 821// 1 - The secondary display is at the right of the primary display. 822// 2 - The secondary display is at the bottom of the primary display. 823// 3 - The secondary display is at the left of the primary display. 824// TODO(mukai,oshima): update the format of the multi-display settings. 825const char kSecondaryDisplayLayout[] = "settings.display.secondary_layout"; 826 827// An integer pref that specifies how far the secondary display is positioned 828// from the edge of the primary display. 829const char kSecondaryDisplayOffset[] = "settings.display.secondary_offset"; 830 831// A dictionary pref that specifies per-display layout/offset information. 832// Its key is the ID of the display and its value is a dictionary for the 833// layout/offset information. 834const char kSecondaryDisplays[] = "settings.display.secondary_displays"; 835 836// A preference to keep track of the session start time. The value is set 837// after login. When the browser restarts after a crash, the pref value is not 838// changed unless it appears corrupted (value unset, value lying in the future, 839// zero value). 840const char kSessionStartTime[] = "session.start_time"; 841 842// Holds the maximum session time in milliseconds. If this pref is set, the 843// user is logged out when the maximum session time is reached. The user is 844// informed about the remaining time by a countdown timer shown in the ash 845// system tray. 846const char kSessionLengthLimit[] = "session.length_limit"; 847 848// Inactivity time in milliseconds while the system is on AC power before 849// the screen should be dimmed, turned off, or locked, before an 850// IdleActionImminent D-Bus signal should be sent, or before 851// kPowerIdleAction should be performed. 0 disables the delay (N/A for 852// kPowerAcIdleDelayMs). 853const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms"; 854const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms"; 855const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms"; 856const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms"; 857const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms"; 858 859// Similar delays while the system is on battery power. 860const char kPowerBatteryScreenDimDelayMs[] = 861 "power.battery_screen_dim_delay_ms"; 862const char kPowerBatteryScreenOffDelayMs[] = 863 "power.battery_screen_off_delay_ms"; 864const char kPowerBatteryScreenLockDelayMs[] = 865 "power.battery_screen_lock_delay_ms"; 866const char kPowerBatteryIdleWarningDelayMs[] = 867 "power.battery_idle_warning_delay_ms"; 868const char kPowerBatteryIdleDelayMs[] = 869 "power.battery_idle_delay_ms"; 870 871// Action that should be performed when the idle delay is reached. 872// Values are from the chromeos::PowerPolicyController::Action enum. 873const char kPowerIdleAction[] = "power.idle_action"; 874 875// Action that should be performed when the lid is closed. 876// Values are from the chromeos::PowerPolicyController::Action enum. 877const char kPowerLidClosedAction[] = "power.lid_closed_action"; 878 879// Should audio and video activity be used to disable the above delays? 880const char kPowerUseAudioActivity[] = "power.use_audio_activity"; 881const char kPowerUseVideoActivity[] = "power.use_video_activity"; 882 883// Should extensions be able to use the chrome.power API to override 884// screen-related power management (including locking)? 885const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks"; 886 887// Amount by which the idle delay should be scaled while the system is in 888// presentation mode. Values are limited to a minimum of 1.0. 889const char kPowerPresentationIdleDelayFactor[] = 890 "power.presentation_idle_delay_factor"; 891 892// Amount by which the screen-dim delay should be scaled when user activity is 893// observed while the screen is dimmed or soon after the screen has been turned 894// off. Values are limited to a minimum of 1.0. 895const char kPowerUserActivityScreenDimDelayFactor[] = 896 "power.user_activity_screen_dim_delay_factor"; 897 898// The URL from which the Terms of Service can be downloaded. The value is only 899// honored for public accounts. 900const char kTermsOfServiceURL[] = "terms_of_service.url"; 901 902// Indicates that the Profile has made navigations that used a certificate 903// installed by the system administrator. If that is true then the local cache 904// of remote data is tainted (e.g. shared scripts), and future navigations 905// show a warning indicating that the organization may track the browsing 906// session. 907const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once"; 908 909// Indicates whether the remote attestation is enabled for the user. 910const char kAttestationEnabled[] = "attestation.enabled"; 911// The list of extensions allowed to use the platformKeysPrivate API for 912// remote attestation. 913const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist"; 914#endif // defined(OS_CHROMEOS) 915 916// The disabled messages in IPC logging. 917const char kIpcDisabledMessages[] = "ipc_log_disabled_messages"; 918 919// A boolean pref set to true if a Home button to open the Home pages should be 920// visible on the toolbar. 921const char kShowHomeButton[] = "browser.show_home_button"; 922 923// A string value which saves short list of recently user selected encodings 924// separated with comma punctuation mark. 925const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings"; 926 927// Clear Browsing Data dialog preferences. 928const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history"; 929const char kDeleteDownloadHistory[] = "browser.clear_data.download_history"; 930const char kDeleteCache[] = "browser.clear_data.cache"; 931const char kDeleteCookies[] = "browser.clear_data.cookies"; 932const char kDeletePasswords[] = "browser.clear_data.passwords"; 933const char kDeleteFormData[] = "browser.clear_data.form_data"; 934const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data"; 935const char kDeauthorizeContentLicenses[] = 936 "browser.clear_data.content_licenses"; 937const char kDeleteTimePeriod[] = "browser.clear_data.time_period"; 938const char kLastClearBrowsingDataTime[] = 939 "browser.last_clear_browsing_data_time"; 940 941// Boolean pref to define the default values for using spellchecker. 942const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking"; 943 944// List of names of the enabled labs experiments (see chrome/browser/labs.cc). 945const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments"; 946 947// Boolean pref to define the default values for using auto spell correct. 948const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect"; 949 950// Boolean pref to define the default setting for "block offensive words". 951// The old key value is kept to avoid unnecessary migration code. 952const char kSpeechRecognitionFilterProfanities[] = 953 "browser.speechinput_censor_results"; 954 955// List of speech recognition context names (extensions or websites) for which 956// the tray notification balloon has already been shown. 957const char kSpeechRecognitionTrayNotificationShownContexts[] = 958 "browser.speechinput_tray_notification_shown_contexts"; 959 960// Boolean controlling whether history saving is disabled. 961const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled"; 962 963// Boolean controlling whether deleting browsing and download history is 964// permitted. 965const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled"; 966 967// Boolean controlling whether SafeSearch is mandatory for Google Web Searches. 968const char kForceSafeSearch[] = "settings.force_safesearch"; 969 970#if defined(TOOLKIT_GTK) 971// GTK specific preference on whether we should match the system GTK theme. 972const char kUsesSystemTheme[] = "extensions.theme.use_system"; 973#endif 974const char kCurrentThemePackFilename[] = "extensions.theme.pack"; 975const char kCurrentThemeID[] = "extensions.theme.id"; 976const char kCurrentThemeImages[] = "extensions.theme.images"; 977const char kCurrentThemeColors[] = "extensions.theme.colors"; 978const char kCurrentThemeTints[] = "extensions.theme.tints"; 979const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties"; 980 981// Boolean pref which persists whether the extensions_ui is in developer mode 982// (showing developer packing tools and extensions details) 983const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode"; 984 985// Integer pref that tracks the number of browser actions visible in the browser 986// actions toolbar. 987const char kExtensionToolbarSize[] = "extensions.toolbarsize"; 988 989// A preference that tracks browser action toolbar configuration. This is a list 990// object stored in the Preferences file. The extensions are stored by ID. 991const char kExtensionToolbar[] = "extensions.toolbar"; 992 993// Dictionary pref that tracks which command belongs to which 994// extension + named command pair. 995const char kExtensionCommands[] = "extensions.commands"; 996 997// Pref containing the directory for internal plugins as written to the plugins 998// list (below). 999const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory"; 1000 1001// List pref containing information (dictionaries) on plugins. 1002const char kPluginsPluginsList[] = "plugins.plugins_list"; 1003 1004// List pref containing names of plugins that are disabled by policy. 1005const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled"; 1006 1007// List pref containing exceptions to the list of plugins disabled by policy. 1008const char kPluginsDisabledPluginsExceptions[] = 1009 "plugins.plugins_disabled_exceptions"; 1010 1011// List pref containing names of plugins that are enabled by policy. 1012const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled"; 1013 1014// When first shipped, the pdf plugin will be disabled by default. When we 1015// enable it by default, we'll want to do so only once. 1016const char kPluginsEnabledInternalPDF[] = "plugins.enabled_internal_pdf3"; 1017 1018// When first shipped, the nacl plugin will be disabled by default. When we 1019// enable it by default, we'll want to do so only once. 1020const char kPluginsEnabledNaCl[] = "plugins.enabled_nacl"; 1021 1022// When bundled NPAPI Flash is removed, if at that point it is enabled while 1023// Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will 1024// want to do so only once. 1025const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash"; 1026 1027// In the early stage of component-updated PPAPI Flash, we did field trials in 1028// which it was set to disabled by default. The corresponding settings item may 1029// remain in some users' profiles. Currently it affects both the bundled and 1030// component-updated PPAPI Flash (since the two share the same enable/disable 1031// state). We want to remove this item to get those users to use PPAPI Flash. 1032// We will want to do so only once. 1033const char kPluginsRemovedOldComponentPepperFlashSettings[] = 1034 "plugins.removed_old_component_pepper_flash_settings"; 1035 1036#if !defined(OS_ANDROID) 1037// Whether about:plugins is shown in the details mode or not. 1038const char kPluginsShowDetails[] = "plugins.show_details"; 1039#endif 1040 1041// Boolean that indicates whether outdated plugins are allowed or not. 1042const char kPluginsAllowOutdated[] = "plugins.allow_outdated"; 1043 1044// Boolean that indicates whether plugins that require authorization should 1045// be always allowed or not. 1046const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize"; 1047 1048#if defined(ENABLE_PLUGIN_INSTALLATION) 1049// Dictionary holding plug-ins metadata. 1050const char kPluginsMetadata[] = "plugins.metadata"; 1051 1052// Last update time of plug-ins resource cache. 1053const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update"; 1054#endif 1055 1056// Boolean that indicates whether we should check if we are the default browser 1057// on start-up. 1058const char kCheckDefaultBrowser[] = "browser.check_default_browser"; 1059 1060#if defined(OS_WIN) 1061// By default, setting Chrome as default during first run on Windows 8 will 1062// trigger shutting down the current instance and spawning a new (Metro) 1063// Chrome. This boolean preference supresses this behaviour. 1064const char kSuppressSwitchToMetroModeOnSetDefault[] = 1065 "browser.suppress_switch_to_metro_mode_on_set_default"; 1066#endif 1067 1068// Policy setting whether default browser check should be disabled and default 1069// browser registration should take place. 1070const char kDefaultBrowserSettingEnabled[] = 1071 "browser.default_browser_setting_enabled"; 1072 1073#if defined(OS_MACOSX) 1074// Boolean that indicates whether the application should show the info bar 1075// asking the user to set up automatic updates when Keystone promotion is 1076// required. 1077const char kShowUpdatePromotionInfoBar[] = 1078 "browser.show_update_promotion_info_bar"; 1079#endif 1080 1081// Boolean that is false if we should show window manager decorations. If 1082// true, we draw a custom chrome frame (thicker title bar and blue border). 1083const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame"; 1084 1085// Boolean that indicates whether the infobar explaining that search can be 1086// done directly from the omnibox should be shown. 1087const char kShowOmniboxSearchHint[] = "browser.show_omnibox_search_hint"; 1088 1089// The preferred position (which corner of screen) for desktop notifications. 1090const char kDesktopNotificationPosition[] = 1091 "browser.desktop_notification_position"; 1092 1093// Dictionary of content settings applied to all hosts by default. 1094const char kDefaultContentSettings[] = "profile.default_content_settings"; 1095 1096// Boolean indicating whether the clear on exit pref was migrated to content 1097// settings yet. 1098const char kContentSettingsClearOnExitMigrated[] = 1099 "profile.content_settings.clear_on_exit_migrated"; 1100 1101// Version of the pattern format used to define content settings. 1102const char kContentSettingsVersion[] = "profile.content_settings.pref_version"; 1103 1104// Patterns for mapping origins to origin related settings. Default settings 1105// will be applied to origins that don't match any of the patterns. The pattern 1106// format used is defined by kContentSettingsVersion. 1107const char kContentSettingsPatternPairs[] = 1108 "profile.content_settings.pattern_pairs"; 1109 1110// Version of the content settings whitelist. 1111const char kContentSettingsDefaultWhitelistVersion[] = 1112 "profile.content_settings.whitelist_version"; 1113 1114#if !defined(OS_ANDROID) 1115// Which plugins have been whitelisted manually by the user. 1116const char kContentSettingsPluginWhitelist[] = 1117 "profile.content_settings.plugin_whitelist"; 1118#endif 1119 1120// Boolean that is true if we should unconditionally block third-party cookies, 1121// regardless of other content settings. 1122const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies"; 1123 1124// Boolean that is true when all locally stored site data (e.g. cookies, local 1125// storage, etc..) should be deleted on exit. 1126const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit"; 1127 1128// Double that indicates the default zoom level. 1129const char kDefaultZoomLevel[] = "profile.default_zoom_level"; 1130 1131// Dictionary that maps hostnames to zoom levels. Hosts not in this pref will 1132// be displayed at the default zoom level. 1133const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels"; 1134 1135// Whether a user opted out of making purchases with Google Wallet; changed via 1136// the autofill dialog's account chooser and set explicitly on dialog submission 1137// (but not cancel). If this isn't set, the dialog assumes it's the first run. 1138const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet"; 1139 1140// Modifying bookmarks is completely disabled when this is set to false. 1141const char kEditBookmarksEnabled[] = "bookmarks.editing_enabled"; 1142 1143// Boolean that is true when the translate feature is enabled. 1144const char kEnableTranslate[] = "translate.enabled"; 1145 1146#if !defined(OS_ANDROID) 1147const char kPinnedTabs[] = "pinned_tabs"; 1148#endif 1149 1150#if defined(OS_ANDROID) 1151// Boolean that controls the enabled-state of Geolocation. 1152const char kGeolocationEnabled[] = "geolocation.enabled"; 1153#endif 1154 1155// The default audio capture device used by the Media content setting. 1156const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device"; 1157 1158// The default video capture device used by the Media content setting. 1159const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device"; 1160 1161// Preference to disable 3D APIs (WebGL, Pepper 3D). 1162const char kDisable3DAPIs[] = "disable_3d_apis"; 1163 1164// Whether to enable hyperlink auditing ("<a ping>"). 1165const char kEnableHyperlinkAuditing[] = "enable_a_ping"; 1166 1167// Whether to enable sending referrers. 1168const char kEnableReferrers[] = "enable_referrers"; 1169 1170// Whether to send the DNT header. 1171const char kEnableDoNotTrack[] = "enable_do_not_track"; 1172 1173// Boolean to enable reporting memory info to page. 1174const char kEnableMemoryInfo[] = "enable_memory_info"; 1175 1176// GL_VENDOR string. 1177const char kGLVendorString[] = "gl_vendor_string"; 1178 1179// GL_RENDERER string. 1180const char kGLRendererString[] = "gl_renderer_string"; 1181 1182// GL_VERSION string. 1183const char kGLVersionString[] = "gl_version_string"; 1184 1185// Boolean that specifies whether to import bookmarks from the default browser 1186// on first run. 1187const char kImportBookmarks[] = "import_bookmarks"; 1188 1189// Boolean that specifies whether to import the browsing history from the 1190// default browser on first run. 1191const char kImportHistory[] = "import_history"; 1192 1193// Boolean that specifies whether to import the homepage from the default 1194// browser on first run. 1195const char kImportHomepage[] = "import_home_page"; 1196 1197// Boolean that specifies whether to import the search engine from the default 1198// browser on first run. 1199const char kImportSearchEngine[] = "import_search_engine"; 1200 1201// Boolean that specifies whether to import the saved passwords from the default 1202// browser on first run. 1203const char kImportSavedPasswords[] = "import_saved_passwords"; 1204 1205// The URL of the enterprise web store, which is a site trusted by the 1206// enterprise admin. Users can install apps & extensions from this site 1207// without scary warnings. 1208const char kEnterpriseWebStoreURL[] = "webstore.enterprise_store_url"; 1209 1210// The name of the enterprise web store, to be shown to the user. 1211const char kEnterpriseWebStoreName[] = "webstore.enterprise_store_name"; 1212 1213#if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) 1214// The local profile id for this profile. 1215const char kLocalProfileId[] = "profile.local_profile_id"; 1216 1217// Whether passwords in external services (e.g. GNOME Keyring) have been tagged 1218// with the local profile id yet. (Used for migrating to tagged passwords.) 1219const char kPasswordsUseLocalProfileId[] = 1220 "profile.passwords_use_local_profile_id"; 1221#endif 1222 1223// Profile avatar and name 1224const char kProfileAvatarIndex[] = "profile.avatar_index"; 1225const char kProfileName[] = "profile.name"; 1226 1227// Whether the profile is managed. 1228const char kProfileIsManaged[] = "profile.is_managed"; 1229 1230// Indicates if we've already shown a notification that high contrast 1231// mode is on, recommending high-contrast extensions and themes. 1232const char kInvertNotificationShown[] = "invert_notification_version_2_shown"; 1233 1234// Boolean controlling whether printing is enabled. 1235const char kPrintingEnabled[] = "printing.enabled"; 1236 1237// Boolean controlling whether print preview is disabled. 1238const char kPrintPreviewDisabled[] = "printing.print_preview_disabled"; 1239 1240// An integer pref specifying the fallback behavior for sites outside of content 1241// packs. One of: 1242// 0: Allow (does nothing) 1243// 1: Warn. 1244// 2: Block. 1245const char kDefaultManagedModeFilteringBehavior[] = 1246 "profile.managed.default_filtering_behavior"; 1247 1248// List pref containing the extension ids which are not allowed to send 1249// notifications to the message center. 1250const char kMessageCenterDisabledExtensionIds[] = 1251 "message_center.disabled_extension_ids"; 1252 1253// List pref containing the system component ids which are not allowed to send 1254// notifications to the message center. 1255const char kMessageCenterDisabledSystemComponentIds[] = 1256 "message_center.disabled_system_component_ids"; 1257 1258// *************** LOCAL STATE *************** 1259// These are attached to the machine/installation 1260 1261// Directory of the last profile used. 1262const char kProfileLastUsed[] = "profile.last_used"; 1263 1264// List of directories of the profiles last active. 1265const char kProfilesLastActive[] = "profile.last_active_profiles"; 1266 1267// Total number of profiles created for this Chrome build. Used to tag profile 1268// directories. 1269const char kProfilesNumCreated[] = "profile.profiles_created"; 1270 1271// String containing the version of Chrome that the profile was created by. 1272// If profile was created before this feature was added, this pref will default 1273// to "1.0.0.0". 1274const char kProfileCreatedByVersion[] = "profile.created_by_version"; 1275 1276// A map of profile data directory to cached information. This cache can be 1277// used to display information about profiles without actually having to load 1278// them. 1279const char kProfileInfoCache[] = "profile.info_cache"; 1280 1281// Prefs for SSLConfigServicePref. 1282const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled"; 1283const char kSSLVersionMin[] = "ssl.version_min"; 1284const char kSSLVersionMax[] = "ssl.version_max"; 1285const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist"; 1286const char kEnableOriginBoundCerts[] = "ssl.origin_bound_certs.enabled"; 1287const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled"; 1288const char kEnableUnrestrictedSSL3Fallback[] = 1289 "ssl.unrestricted_ssl3_fallback.enabled"; 1290 1291// A boolean pref of the EULA accepted flag. 1292const char kEulaAccepted[] = "EulaAccepted"; 1293 1294// The metrics client GUID, entropy source and session ID. 1295const char kMetricsClientID[] = "user_experience_metrics.client_id"; 1296const char kMetricsSessionID[] = "user_experience_metrics.session_id"; 1297const char kMetricsLowEntropySource[] = 1298 "user_experience_metrics.low_entropy_source"; 1299 1300// Date/time when the current metrics profile ID was created 1301// (which hopefully corresponds to first run). 1302const char kMetricsClientIDTimestamp[] = 1303 "user_experience_metrics.client_id_timestamp"; 1304 1305// Boolean that specifies whether or not crash reporting and metrics reporting 1306// are sent over the network for analysis. 1307const char kMetricsReportingEnabled[] = 1308 "user_experience_metrics.reporting_enabled"; 1309 1310// Array of strings that are each UMA logs that were supposed to be sent in the 1311// first minute of a browser session. These logs include things like crash count 1312// info, etc. 1313const char kMetricsInitialLogs[] = 1314 "user_experience_metrics.initial_logs_as_protobufs"; 1315 1316// Array of strings that are each UMA logs that were not sent because the 1317// browser terminated before these accumulated metrics could be sent. These 1318// logs typically include histograms and memory reports, as well as ongoing 1319// user activities. 1320const char kMetricsOngoingLogs[] = 1321 "user_experience_metrics.ongoing_logs_as_protobufs"; 1322 1323// Boolean that is true when bookmark prompt is enabled. 1324const char kBookmarkPromptEnabled[] = "bookmark_prompt_enabled"; 1325 1326// Number of times bookmark prompt displayed. 1327const char kBookmarkPromptImpressionCount[] = 1328 "bookmark_prompt_impression_count"; 1329 1330// 64-bit integer serialization of the base::Time from the last successful seed 1331// fetch (i.e. when the Variations server responds with 200 or 304). 1332const char kVariationsLastFetchTime[] = "variations_last_fetch_time"; 1333 1334// String for the restrict parameter to be appended to the variations URL. 1335const char kVariationsRestrictParameter[] = "variations_restrict_parameter"; 1336 1337// String serialized form of variations seed protobuf. 1338const char kVariationsSeed[] = "variations_seed"; 1339 1340// 64-bit integer serialization of the base::Time from the last seed received. 1341const char kVariationsSeedDate[] = "variations_seed_date"; 1342 1343// Where profile specific metrics are placed. 1344const char kProfileMetrics[] = "user_experience_metrics.profiles"; 1345 1346// The metrics for a profile are stored as dictionary values under the 1347// path kProfileMetrics. The individual metrics are placed under the path 1348// kProfileMetrics.kProfilePrefix<hashed-profile-id>. 1349const char kProfilePrefix[] = "profile-"; 1350 1351// True if the previous run of the program exited cleanly. 1352const char kStabilityExitedCleanly[] = 1353 "user_experience_metrics.stability.exited_cleanly"; 1354 1355// Version string of previous run, which is used to assure that stability 1356// metrics reported under current version reflect stability of the same version. 1357const char kStabilityStatsVersion[] = 1358 "user_experience_metrics.stability.stats_version"; 1359 1360// Build time, in seconds since an epoch, which is used to assure that stability 1361// metrics reported reflect stability of the same build. 1362const char kStabilityStatsBuildTime[] = 1363 "user_experience_metrics.stability.stats_buildtime"; 1364 1365// False if we received a session end and either we crashed during processing 1366// the session end or ran out of time and windows terminated us. 1367const char kStabilitySessionEndCompleted[] = 1368 "user_experience_metrics.stability.session_end_completed"; 1369 1370// Number of times the application was launched since last report. 1371const char kStabilityLaunchCount[] = 1372 "user_experience_metrics.stability.launch_count"; 1373 1374// Number of times the application exited uncleanly since the last report. 1375const char kStabilityCrashCount[] = 1376 "user_experience_metrics.stability.crash_count"; 1377 1378// Number of times the session end did not complete. 1379const char kStabilityIncompleteSessionEndCount[] = 1380 "user_experience_metrics.stability.incomplete_session_end_count"; 1381 1382// Number of times a page load event occurred since the last report. 1383const char kStabilityPageLoadCount[] = 1384 "user_experience_metrics.stability.page_load_count"; 1385 1386// Number of times a renderer process crashed since the last report. 1387const char kStabilityRendererCrashCount[] = 1388 "user_experience_metrics.stability.renderer_crash_count"; 1389 1390// Number of times an extension renderer process crashed since the last report. 1391const char kStabilityExtensionRendererCrashCount[] = 1392 "user_experience_metrics.stability.extension_renderer_crash_count"; 1393 1394// Time when the app was last launched, in seconds since the epoch. 1395const char kStabilityLaunchTimeSec[] = 1396 "user_experience_metrics.stability.launch_time_sec"; 1397 1398// Time when the app was last known to be running, in seconds since 1399// the epoch. 1400const char kStabilityLastTimestampSec[] = 1401 "user_experience_metrics.stability.last_timestamp_sec"; 1402 1403// This is the location of a list of dictionaries of plugin stability stats. 1404const char kStabilityPluginStats[] = 1405 "user_experience_metrics.stability.plugin_stats2"; 1406 1407// Number of times the renderer has become non-responsive since the last 1408// report. 1409const char kStabilityRendererHangCount[] = 1410 "user_experience_metrics.stability.renderer_hang_count"; 1411 1412// Total number of child process crashes (other than renderer / extension 1413// renderer ones, and plugin children, which are counted separately) since the 1414// last report. 1415const char kStabilityChildProcessCrashCount[] = 1416 "user_experience_metrics.stability.child_process_crash_count"; 1417 1418// On Chrome OS, total number of non-Chrome user process crashes 1419// since the last report. 1420const char kStabilityOtherUserCrashCount[] = 1421 "user_experience_metrics.stability.other_user_crash_count"; 1422 1423// On Chrome OS, total number of kernel crashes since the last report. 1424const char kStabilityKernelCrashCount[] = 1425 "user_experience_metrics.stability.kernel_crash_count"; 1426 1427// On Chrome OS, total number of unclean system shutdowns since the 1428// last report. 1429const char kStabilitySystemUncleanShutdownCount[] = 1430 "user_experience_metrics.stability.system_unclean_shutdowns"; 1431 1432// Number of times the browser has been able to register crash reporting. 1433const char kStabilityBreakpadRegistrationSuccess[] = 1434 "user_experience_metrics.stability.breakpad_registration_ok"; 1435 1436// Number of times the browser has failed to register crash reporting. 1437const char kStabilityBreakpadRegistrationFail[] = 1438 "user_experience_metrics.stability.breakpad_registration_fail"; 1439 1440// Number of times the browser has been run under a debugger. 1441const char kStabilityDebuggerPresent[] = 1442 "user_experience_metrics.stability.debugger_present"; 1443 1444// Number of times the browser has not been run under a debugger. 1445const char kStabilityDebuggerNotPresent[] = 1446 "user_experience_metrics.stability.debugger_not_present"; 1447 1448// The keys below are used for the dictionaries in the 1449// kStabilityPluginStats list. 1450const char kStabilityPluginName[] = "name"; 1451const char kStabilityPluginLaunches[] = "launches"; 1452const char kStabilityPluginInstances[] = "instances"; 1453const char kStabilityPluginCrashes[] = "crashes"; 1454const char kStabilityPluginLoadingErrors[] = "loading_errors"; 1455 1456// The keys below are strictly increasing counters over the lifetime of 1457// a chrome installation. They are (optionally) sent up to the uninstall 1458// survey in the event of uninstallation. The installation date is also by some 1459// opt-in services (currently Wallet, and soon UMA). 1460const char kInstallDate[] = "uninstall_metrics.installation_date2"; 1461const char kUninstallMetricsPageLoadCount[] = 1462 "uninstall_metrics.page_load_count"; 1463const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; 1464const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; 1465const char kUninstallLastLaunchTimeSec[] = 1466 "uninstall_metrics.last_launch_time_sec"; 1467const char kUninstallLastObservedRunTimeSec[] = 1468 "uninstall_metrics.last_observed_running_time_sec"; 1469 1470// String containing the version of Chrome for which Chrome will not prompt the 1471// user about setting Chrome as the default browser. 1472const char kBrowserSuppressDefaultBrowserPrompt[] = 1473 "browser.suppress_default_browser_prompt_for_version"; 1474 1475// A collection of position, size, and other data relating to the browser 1476// window to restore on startup. 1477const char kBrowserWindowPlacement[] = "browser.window_placement"; 1478 1479// A collection of position, size, and other data relating to the task 1480// manager window to restore on startup. 1481const char kTaskManagerWindowPlacement[] = "task_manager.window_placement"; 1482 1483// A collection of position, size, and other data relating to the keyword 1484// editor window to restore on startup. 1485const char kKeywordEditorWindowPlacement[] = "keyword_editor.window_placement"; 1486 1487// A collection of position, size, and other data relating to the preferences 1488// window to restore on startup. 1489const char kPreferencesWindowPlacement[] = "preferences.window_placement"; 1490 1491// An integer specifying the total number of bytes to be used by the 1492// renderer's in-memory cache of objects. 1493const char kMemoryCacheSize[] = "renderer.memory_cache.size"; 1494 1495// String which specifies where to download files to by default. 1496const char kDownloadDefaultDirectory[] = "download.default_directory"; 1497 1498// Boolean that records if the download directory was changed by an 1499// upgrade a unsafe location to a safe location. 1500const char kDownloadDirUpgraded[] = "download.directory_upgrade"; 1501 1502// String which specifies where to save html files to by default. 1503const char kSaveFileDefaultDirectory[] = "savefile.default_directory"; 1504 1505// The type used to save the page. See the enum SavePackage::SavePackageType in 1506// the chrome/browser/download/save_package.h for the possible values. 1507const char kSaveFileType[] = "savefile.type"; 1508 1509// String which specifies the last directory that was chosen for uploading 1510// or opening a file. 1511const char kSelectFileLastDirectory[] = "selectfile.last_directory"; 1512 1513// Boolean that specifies if file selection dialogs are shown. 1514const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed"; 1515 1516// Map of default tasks, associated by MIME type. 1517const char kDefaultTasksByMimeType[] = 1518 "filebrowser.tasks.default_by_mime_type"; 1519 1520// Map of default tasks, associated by file suffix. 1521const char kDefaultTasksBySuffix[] = 1522 "filebrowser.tasks.default_by_suffix"; 1523 1524// Extensions which should be opened upon completion. 1525const char kDownloadExtensionsToOpen[] = "download.extensions_to_open"; 1526 1527// Integer which specifies the frequency in milliseconds for detecting whether 1528// plugin windows are hung. 1529const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq"; 1530 1531// Integer which specifies the timeout value to be used for SendMessageTimeout 1532// to detect a hung plugin window. 1533const char kPluginMessageResponseTimeout[] = 1534 "browser.plugin_message_response_timeout"; 1535 1536// String which represents the dictionary name for our spell-checker. 1537const char kSpellCheckDictionary[] = "spellcheck.dictionary"; 1538 1539// Boolean pref indicating whether the spelling confirm dialog has been shown. 1540const char kSpellCheckConfirmDialogShown[] = "spellcheck.confirm_dialog_shown"; 1541 1542// String which represents whether we use the spelling service. 1543const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service"; 1544 1545// Dictionary of schemes used by the external protocol handler. 1546// The value is true if the scheme must be ignored. 1547const char kExcludedSchemes[] = "protocol_handler.excluded_schemes"; 1548 1549// Keys used for MAC handling of SafeBrowsing requests. 1550const char kSafeBrowsingClientKey[] = "safe_browsing.client_key"; 1551const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key"; 1552 1553// Integer that specifies the index of the tab the user was on when they 1554// last visited the options window. 1555const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index"; 1556 1557// Integer that specifies the index of the tab the user was on when they 1558// last visited the content settings window. 1559const char kContentSettingsWindowLastTabIndex[] = 1560 "content_settings_window.last_tab_index"; 1561 1562// Integer that specifies the index of the tab the user was on when they 1563// last visited the Certificate Manager window. 1564const char kCertificateManagerWindowLastTabIndex[] = 1565 "certificate_manager_window.last_tab_index"; 1566 1567// Integer that specifies if the first run bubble should be shown. 1568// This preference is only registered by the first-run procedure. 1569const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option"; 1570 1571// String containing the last known Google URL. We re-detect this on startup in 1572// most cases, and use it to send traffic to the correct Google host or with the 1573// correct Google domain/country code for whatever location the user is in. 1574const char kLastKnownGoogleURL[] = "browser.last_known_google_url"; 1575 1576// String containing the last prompted Google URL to the user. 1577// If the user is using .x TLD for Google URL and gets prompted about .y TLD 1578// for Google URL, and says "no", we should leave the search engine set to .x 1579// but not prompt again until the domain changes away from .y. 1580const char kLastPromptedGoogleURL[] = "browser.last_prompted_google_url"; 1581 1582// String containing the last known intranet redirect URL, if any. See 1583// intranet_redirect_detector.h for more information. 1584const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin"; 1585 1586// Integer containing the system Country ID the first time we checked the 1587// template URL prepopulate data. This is used to avoid adding a whole bunch of 1588// new search engine choices if prepopulation runs when the user's Country ID 1589// differs from their previous Country ID. This pref does not exist until 1590// prepopulation has been run at least once. 1591const char kCountryIDAtInstall[] = "countryid_at_install"; 1592// OBSOLETE. Same as above, but uses the Windows-specific GeoID value instead. 1593// Updated if found to the above key. 1594const char kGeoIDAtInstall[] = "geoid_at_install"; 1595 1596// An enum value of how the browser was shut down (see browser_shutdown.h). 1597const char kShutdownType[] = "shutdown.type"; 1598// Number of processes that were open when the user shut down. 1599const char kShutdownNumProcesses[] = "shutdown.num_processes"; 1600// Number of processes that were shut down using the slow path. 1601const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow"; 1602 1603// Whether to restart the current Chrome session automatically as the last thing 1604// before shutting everything down. 1605const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown"; 1606 1607// Set before autorestarting Chrome, cleared on clean exit. 1608const char kWasRestarted[] = "was.restarted"; 1609 1610#if defined(OS_WIN) 1611// On Windows 8 chrome can restart in desktop or in metro mode. 1612const char kRestartSwitchMode[] = "restart.switch_mode"; 1613 1614// Whether to show the app list on a browser relaunch. Used when switching out 1615// of metro mode after a user gesture requests showing the app list. 1616const char kRestartWithAppList[] = "app_list.show_on_relaunch"; 1617#endif 1618 1619// Number of keywords. 1620const char kNumKeywords[] = "user_experience_metrics.num_keywords"; 1621 1622// Placeholder preference for disabling voice / video chat if it is ever added. 1623// Currently, this does not change any behavior. 1624const char kDisableVideoAndChat[] = "disable_video_chat"; 1625 1626// Whether Extensions are enabled. 1627const char kDisableExtensions[] = "extensions.disabled"; 1628 1629// Whether the plugin finder that lets you install missing plug-ins is enabled. 1630const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; 1631 1632// Integer boolean representing the width (in pixels) of the container for 1633// browser actions. 1634const char kBrowserActionContainerWidth[] = 1635 "extensions.browseractions.container.width"; 1636 1637// Time of the last, and next scheduled, extensions auto-update checks. 1638const char kLastExtensionsUpdateCheck[] = "extensions.autoupdate.last_check"; 1639const char kNextExtensionsUpdateCheck[] = "extensions.autoupdate.next_check"; 1640 1641// Whether we have run the extension-alert system (see ExtensionGlobalError) 1642// at least once for this profile. 1643const char kExtensionAlertsInitializedPref[] = "extensions.alerts.initialized"; 1644 1645// The sites that are allowed to install extensions. These sites should be 1646// allowed to install extensions without the scary dangerous downloads bar. 1647// Also, when off-store-extension installs are disabled, these sites are exempt. 1648const char kExtensionAllowedInstallSites[] = "extensions.allowed_install_sites"; 1649 1650// A list of allowed extension types. Extensions can only be installed if their 1651// type is on this whitelist or alternatively on kExtensionInstallAllowList or 1652// kExtensionInstallForceList. 1653const char kExtensionAllowedTypes[] = "extensions.allowed_types"; 1654 1655// Version number of last blacklist check. 1656const char kExtensionBlacklistUpdateVersion[] = 1657 "extensions.blacklistupdate.version"; 1658 1659// A whitelist of extension ids the user can install: exceptions from the 1660// following blacklist. 1661const char kExtensionInstallAllowList[] = "extensions.install.allowlist"; 1662 1663// A blacklist, containing extensions the user cannot install. This list can 1664// contain "*" meaning all extensions. This list should not be confused with the 1665// extension blacklist, which is Google controlled. 1666const char kExtensionInstallDenyList[] = "extensions.install.denylist"; 1667 1668// A list containing extensions that Chrome will silently install 1669// at startup time. It is a list of strings, each string contains 1670// an extension ID and an update URL, delimited by a semicolon. 1671// This preference is set by an admin policy, and meant to be only 1672// accessed through extensions::ExternalPolicyProvider. 1673const char kExtensionInstallForceList[] = "extensions.install.forcelist"; 1674 1675// Indicates on-disk data might have skeletal data that needs to be cleaned 1676// on the next start of the browser. 1677const char kExtensionStorageGarbageCollect[] = 1678 "extensions.storage.garbagecollect"; 1679 1680// Keeps track of which sessions are collapsed in the Other Devices menu. 1681const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; 1682 1683// New Tab Page URLs that should not be shown as most visited thumbnails. 1684const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist"; 1685 1686// Last time of update of promo_resource_cache. 1687const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update"; 1688 1689// Serves tips for the NTP. 1690const char kNtpTipsResourceServer[] = "ntp.tips_resource_server"; 1691 1692// Serves dates to determine display of elements on the NTP. 1693const char kNtpDateResourceServer[] = "ntp.date_resource_server"; 1694 1695// Which bookmarks folder should be visible on the new tab page v4. 1696const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder"; 1697 1698// Which page should be visible on the new tab page v4 1699const char kNtpShownPage[] = "ntp.shown_page"; 1700 1701// True if a desktop sync session was found for this user. 1702const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found"; 1703 1704// Boolean indicating whether the web store is active for the current locale. 1705const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled"; 1706 1707// The id of the last web store promo actually displayed on the NTP. 1708const char kNtpWebStorePromoLastId[] = "ntp.webstore_last_promo_id"; 1709 1710// The id of the current web store promo. 1711const char kNtpWebStorePromoId[] = "ntp.webstorepromo.id"; 1712 1713// The header line for the NTP web store promo. 1714const char kNtpWebStorePromoHeader[] = "ntp.webstorepromo.header"; 1715 1716// The button text for the NTP web store promo. 1717const char kNtpWebStorePromoButton[] = "ntp.webstorepromo.button"; 1718 1719// The button link for the NTP web store promo. 1720const char kNtpWebStorePromoLink[] = "ntp.webstorepromo.link"; 1721 1722// The image URL for the NTP web store promo logo. 1723const char kNtpWebStorePromoLogo[] = "ntp.webstorepromo.logo"; 1724 1725// The original URL for the NTP web store promo logo. 1726const char kNtpWebStorePromoLogoSource[] = "ntp.webstorepromo.logo_source"; 1727 1728// The "hide this" link text for the NTP web store promo. 1729const char kNtpWebStorePromoExpire[] = "ntp.webstorepromo.expire"; 1730 1731// Specifies what users should maximize the NTP web store promo. 1732const char kNtpWebStorePromoUserGroup[] = "ntp.webstorepromo.usergroup"; 1733 1734// Customized app page names that appear on the New Tab Page. 1735const char kNtpAppPageNames[] = "ntp.app_page_names"; 1736 1737const char kDevToolsDisabled[] = "devtools.disabled"; 1738 1739// A string specifying the dock location (either 'bottom' or 'right'). 1740const char kDevToolsDockSide[] = "devtools.dock_side"; 1741 1742// Maps of files edited locally using DevTools. 1743const char kDevToolsEditedFiles[] = "devtools.edited_files"; 1744 1745// List of file system paths added in DevTools. 1746const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths"; 1747 1748// Integer location of the horizontal split bar in the browser view. 1749const char kDevToolsHSplitLocation[] = "devtools.split_location"; 1750 1751// A boolean specifying whether dev tools window should be opened docked. 1752const char kDevToolsOpenDocked[] = "devtools.open_docked"; 1753 1754#if defined(OS_ANDROID) 1755// A boolean specifying whether remote dev tools debugging is enabled. 1756const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled"; 1757#endif 1758 1759// Integer location of the vertical split bar in the browser view. 1760const char kDevToolsVSplitLocation[] = "devtools.v_split_location"; 1761 1762#if defined(OS_ANDROID) || defined(OS_IOS) 1763// A boolean specifying whether a SPDY proxy is enabled. 1764const char kSpdyProxyAuthEnabled[] = "spdy_proxy.enabled"; 1765#endif // defined(OS_ANDROID) || defined(OS_IOS) 1766 1767// Boolean which stores if the user is allowed to signin to chrome. 1768const char kSigninAllowed[] = "signin.allowed"; 1769 1770// 64-bit integer serialization of the base::Time when the last sync occurred. 1771const char kSyncLastSyncedTime[] = "sync.last_synced_time"; 1772 1773// Boolean specifying whether the user finished setting up sync. 1774const char kSyncHasSetupCompleted[] = "sync.has_setup_completed"; 1775 1776// Boolean specifying whether to automatically sync all data types (including 1777// future ones, as they're added). If this is true, the following preferences 1778// (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored. 1779const char kSyncKeepEverythingSynced[] = "sync.keep_everything_synced"; 1780 1781// Booleans specifying whether the user has selected to sync the following 1782// datatypes. 1783const char kSyncAppNotifications[] = "sync.app_notifications"; 1784const char kSyncAppSettings[] = "sync.app_settings"; 1785const char kSyncApps[] = "sync.apps"; 1786const char kSyncAutofillProfile[] = "sync.autofill_profile"; 1787const char kSyncAutofill[] = "sync.autofill"; 1788const char kSyncBookmarks[] = "sync.bookmarks"; 1789const char kSyncDictionary[] = "sync.dictionary"; 1790const char kSyncExtensionSettings[] = "sync.extension_settings"; 1791const char kSyncExtensions[] = "sync.extensions"; 1792const char kSyncFaviconImages[] = "sync.favicon_images"; 1793const char kSyncFaviconTracking[] = "sync.favicon_tracking"; 1794const char kSyncHistoryDeleteDirectives[] = "sync.history_delete_directives"; 1795const char kSyncManagedUserSettings[] = "sync.managed_user_settings"; 1796const char kSyncPasswords[] = "sync.passwords"; 1797const char kSyncPreferences[] = "sync.preferences"; 1798const char kSyncPriorityPreferences[] = "sync.priority_preferences"; 1799const char kSyncSearchEngines[] = "sync.search_engines"; 1800const char kSyncSessions[] = "sync.sessions"; 1801const char kSyncSyncedNotifications[] = "sync.synced_notifications"; 1802const char kSyncTabs[] = "sync.tabs"; 1803const char kSyncThemes[] = "sync.themes"; 1804const char kSyncTypedUrls[] = "sync.typed_urls"; 1805 1806// Boolean used by enterprise configuration management in order to lock down 1807// sync. 1808const char kSyncManaged[] = "sync.managed"; 1809 1810// Boolean to prevent sync from automatically starting up. This is 1811// used when sync is disabled by the user via the privacy dashboard. 1812const char kSyncSuppressStart[] = "sync.suppress_start"; 1813 1814// List of the currently acknowledged set of sync types, used to figure out 1815// if a new sync type has rolled out so we can notify the user. 1816const char kSyncAcknowledgedSyncTypes[] = "sync.acknowledged_types"; 1817 1818// Dictionary from sync model type (as an int) to max invalidation 1819// version (int64 represented as a string). 1820const char kSyncMaxInvalidationVersions[] = "sync.max_invalidation_versions"; 1821 1822// The GUID session sync will use to identify this client, even across sync 1823// disable/enable events. 1824const char kSyncSessionsGUID[] = "sync.session_sync_guid"; 1825 1826// An ID to uniquely identify this client to the invalidator service. 1827const char kInvalidatorClientId[] = "invalidator.client_id"; 1828 1829// Opaque state from the invalidation subsystem that is persisted via prefs. 1830// The value is base 64 encoded. 1831const char kInvalidatorInvalidationState[] = "invalidator.invalidation_state"; 1832 1833// List of {source, name, max invalidation version} tuples. source is an int, 1834// while max invalidation version is an int64; both are stored as string 1835// representations though. 1836const char kInvalidatorMaxInvalidationVersions[] = 1837 "invalidator.max_invalidation_versions"; 1838 1839// A string that can be used to restore sync encryption infrastructure on 1840// startup so that the user doesn't need to provide credentials on each start. 1841const char kSyncEncryptionBootstrapToken[] = 1842 "sync.encryption_bootstrap_token"; 1843 1844// Same as kSyncEncryptionBootstrapToken, but derived from the keystore key, 1845// so we don't have to do a GetKey command at restart. 1846const char kSyncKeystoreEncryptionBootstrapToken[] = 1847 "sync.keystore_encryption_bootstrap_token"; 1848 1849// Boolean tracking whether the user chose to specify a secondary encryption 1850// passphrase. 1851const char kSyncUsingSecondaryPassphrase[] = "sync.using_secondary_passphrase"; 1852 1853// String the identifies the last user that logged into sync and other 1854// google services. As opposed to kGoogleServicesUsername, this value is not 1855// cleared on signout, but while the user is signed in the two values will 1856// be the same. 1857const char kGoogleServicesLastUsername[] = "google.services.last_username"; 1858 1859// String that identifies the current user logged into sync and other google 1860// services. 1861const char kGoogleServicesUsername[] = "google.services.username"; 1862 1863// Local state pref containing a string regex that restricts which accounts 1864// can be used to log in to chrome (e.g. "*@google.com"). If missing or blank, 1865// all accounts are allowed (no restrictions). 1866const char kGoogleServicesUsernamePattern[] = 1867 "google.services.username_pattern"; 1868 1869#if !defined(OS_ANDROID) 1870// Tracks the number of times that we have shown the sync promo at startup. 1871const char kSyncPromoStartupCount[] = "sync_promo.startup_count"; 1872 1873// A counter to remember the number of times we've been to the sync promo page 1874// (not at startup). 1875const char kSyncPromoViewCount[] = "sync_promo.view_count"; 1876 1877// Boolean tracking whether the user chose to skip the sync promo. 1878const char kSyncPromoUserSkipped[] = "sync_promo.user_skipped"; 1879 1880// Boolean that specifies if the sync promo is allowed to show on first run. 1881// This preference is specified in the master preference file to suppress the 1882// sync promo for some installations. 1883const char kSyncPromoShowOnFirstRunAllowed[] = 1884 "sync_promo.show_on_first_run_allowed"; 1885 1886// Boolean that specifies if we should show a bubble in the new tab page. 1887// The bubble is used to confirm that the user is signed into sync. 1888const char kSyncPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble"; 1889 1890// An error to show in the sync promo bubble, if needed. If the sign in was 1891// successful, this property holds an empty string. 1892const char kSyncPromoErrorMessage[] = "sync_promo.error_message"; 1893#endif 1894 1895// Time when the user's GAIA info was last updated (represented as an int64). 1896const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time"; 1897 1898// The URL from which the GAIA profile picture was downloaded. This is cached to 1899// prevent the same picture from being downloaded multiple times. 1900const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url"; 1901 1902// Create web application shortcut dialog preferences. 1903const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop"; 1904const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu"; 1905const char kWebAppCreateInQuickLaunchBar[] = 1906 "browser.web_app.create_in_quick_launch_bar"; 1907 1908// Dictionary that maps Geolocation network provider server URLs to 1909// corresponding access token. 1910const char kGeolocationAccessToken[] = "geolocation.access_token"; 1911 1912// Boolean that indicates whether to allow firewall traversal while trying to 1913// establish the initial connection from the client or host. 1914const char kRemoteAccessHostFirewallTraversal[] = 1915 "remote_access.host_firewall_traversal"; 1916 1917// Boolean controlling whether 2-factor auth should be required when connecting 1918// to a host (instead of a PIN). 1919const char kRemoteAccessHostRequireTwoFactor[] = 1920 "remote_access.host_require_two_factor"; 1921 1922// String containing the domain name that hosts must belong to. If blank, then 1923// hosts can belong to any domain. 1924const char kRemoteAccessHostDomain[] = "remote_access.host_domain"; 1925 1926// String containing the domain name of the Chromoting Directory. 1927// Used by Chromoting host and client. 1928const char kRemoteAccessHostTalkGadgetPrefix[] = 1929 "remote_access.host_talkgadget_prefix"; 1930 1931// Boolean controlling whether curtaining is required when connecting to a host. 1932const char kRemoteAccessHostRequireCurtain[] = 1933 "remote_access.host_require_curtain"; 1934 1935// The last used printer and its settings. 1936const char kPrintPreviewStickySettings[] = 1937 "printing.print_preview_sticky_settings"; 1938// The root URL of the cloud print service. 1939const char kCloudPrintServiceURL[] = "cloud_print.service_url"; 1940 1941// The URL to use to sign in to cloud print. 1942const char kCloudPrintSigninURL[] = "cloud_print.signin_url"; 1943 1944// The last requested size of the dialog as it was closed. 1945const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width"; 1946const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height"; 1947const char kCloudPrintSigninDialogWidth[] = 1948 "cloud_print.signin_dialog_size.width"; 1949const char kCloudPrintSigninDialogHeight[] = 1950 "cloud_print.signin_dialog_size.height"; 1951 1952#if !defined(OS_ANDROID) 1953// The Chrome To Mobile service mobile device list pref. 1954const char kChromeToMobileDeviceList[] = "chrome_to_mobile.device_list"; 1955#endif 1956 1957// The list of BackgroundContents that should be loaded when the browser 1958// launches. 1959const char kRegisteredBackgroundContents[] = "background_contents.registered"; 1960 1961#if !defined(OS_ANDROID) 1962// An int that stores how often we've shown the "Chrome is configured to 1963// auto-launch" infobar. 1964const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar"; 1965#endif 1966 1967// String that lists supported HTTP authentication schemes. 1968const char kAuthSchemes[] = "auth.schemes"; 1969 1970// Boolean that specifies whether to disable CNAME lookups when generating 1971// Kerberos SPN. 1972const char kDisableAuthNegotiateCnameLookup[] = 1973 "auth.disable_negotiate_cname_lookup"; 1974 1975// Boolean that specifies whether to include the port in a generated Kerberos 1976// SPN. 1977const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port"; 1978 1979// Whitelist containing servers for which Integrated Authentication is enabled. 1980const char kAuthServerWhitelist[] = "auth.server_whitelist"; 1981 1982// Whitelist containing servers Chrome is allowed to do Kerberos delegation 1983// with. 1984const char kAuthNegotiateDelegateWhitelist[] = 1985 "auth.negotiate_delegate_whitelist"; 1986 1987// String that specifies the name of a custom GSSAPI library to load. 1988const char kGSSAPILibraryName[] = "auth.gssapi_library_name"; 1989 1990// String that specifies the origin allowed to use SpdyProxy 1991// authentication, if any. 1992const char kSpdyProxyAuthOrigin[] = "auth.spdyproxy.origin"; 1993 1994// Boolean that specifies whether to allow basic auth prompting on cross- 1995// domain sub-content requests. 1996const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt"; 1997 1998// Boolean that specifies whether the built-in asynchronous DNS client is used. 1999const char kBuiltInDnsClientEnabled[] = "async_dns.enabled"; 2000 2001// An int64 pref that contains the total size of all HTTP content that has been 2002// received from the network. 2003const char kHttpReceivedContentLength[] = "http_received_content_length"; 2004 2005// An int64 pref that contains the total original size of all HTTP content that 2006// was received over the network. 2007const char kHttpOriginalContentLength[] = "http_original_content_length"; 2008 2009#if defined(OS_ANDROID) || defined(OS_IOS) 2010// A List pref that contains daily totals of the original size of all HTTP 2011// that was received over the network. 2012const char kDailyHttpOriginalContentLength[] = 2013 "data_reduction.daily_original_length"; 2014 2015// A List pref that contains daily totals of the size of all HTTP content that 2016// has been received from the network. 2017const char kDailyHttpReceivedContentLength[] = 2018 "data_reduction.daily_received_length"; 2019 2020// An int64 pref that contains an internal representation of midnight on the 2021// date of the last update to |kDailyHttp{Original,Received}ContentLength|. 2022const char kDailyHttpContentLengthLastUpdateDate[] = 2023 "data_reduction.last_update_date"; 2024#endif 2025 2026// A pref holding the value of the policy used to disable capturing audio on 2027// ChromeOS devices. 2028const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled"; 2029 2030// A pref holding the value of the policy used to disable capturing audio on 2031// ChromeOS devices. 2032const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled"; 2033 2034#if defined(OS_CHROMEOS) 2035// Dictionary for transient storage of settings that should go into device 2036// settings storage before owner has been assigned. 2037const char kDeviceSettingsCache[] = "signed_settings_cache"; 2038 2039// The hardware keyboard layout of the device. This should look like 2040// "xkb:us::eng". 2041const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard"; 2042 2043// An integer pref which shows number of times carrier deal promo 2044// notification has been shown to user. 2045const char kCarrierDealPromoShown[] = 2046 "settings.internet.mobile.carrier_deal_promo_shown"; 2047 2048// A boolean pref of the auto-enrollment decision. Its value is only valid if 2049// it's not the default value; otherwise, no auto-enrollment decision has been 2050// made yet. 2051const char kShouldAutoEnroll[] = "ShouldAutoEnroll"; 2052 2053// An integer pref with the maximum number of bits used by the client in a 2054// previous auto-enrollment request. If the client goes through an auto update 2055// during OOBE and reboots into a version of the OS with a larger maximum 2056// modulus, then it will retry auto-enrollment using the updated value. 2057const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit"; 2058 2059// The local state pref that stores device activity times before reporting 2060// them to the policy server. 2061const char kDeviceActivityTimes[] = "device_status.activity_times"; 2062 2063// A pref holding the last known location when device location reporting is 2064// enabled. 2065const char kDeviceLocation[] = "device_status.location"; 2066 2067// A string that is used to store first-time sync startup after once sync is 2068// disabled. This will be refreshed every sign-in. 2069const char kSyncSpareBootstrapToken[] = "sync.spare_bootstrap_token"; 2070 2071// A pref holding the value of the policy used to disable mounting of external 2072// storage for the user. 2073const char kExternalStorageDisabled[] = "hardware.external_storage_disabled"; 2074 2075// A pref holding the value of the policy used to disable playing audio on 2076// ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite 2077// it, therefore when the policy is lifted the original mute state is restored. 2078const char kAudioOutputAllowed[] = "hardware.audio_output_enabled"; 2079 2080// A dictionary that maps usernames to wallpaper properties. 2081const char kUsersWallpaperInfo[] = "user_wallpaper_info"; 2082 2083// Copy of owner swap mouse buttons option to use on login screen. 2084const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right"; 2085 2086// Copy of owner tap-to-click option to use on login screen. 2087const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click"; 2088 2089// The length of device uptime after which an automatic reboot is scheduled, 2090// expressed in seconds. 2091const char kUptimeLimit[] = "automatic_reboot.uptime_limit"; 2092 2093// Whether an automatic reboot should be scheduled when an update has been 2094// applied and a reboot is required to complete the update process. 2095const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update"; 2096 2097// An any-api scoped refresh token for enterprise-enrolled devices. Allows 2098// for connection to Google APIs when the user isn't logged in. Currently used 2099// for for getting a cloudprint scoped token to allow printing in Guest mode, 2100// Public Accounts and kiosks. 2101const char kDeviceRobotAnyApiRefreshToken[] = 2102 "device_robot_refresh_token.any-api"; 2103#endif 2104 2105// Whether there is a Flash version installed that supports clearing LSO data. 2106const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled"; 2107 2108// Whether we should show Pepper Flash-specific settings. 2109const char kPepperFlashSettingsEnabled[] = 2110 "browser.pepper_flash_settings_enabled"; 2111 2112// String which specifies where to store the disk cache. 2113const char kDiskCacheDir[] = "browser.disk_cache_dir"; 2114// Pref name for the policy specifying the maximal cache size. 2115const char kDiskCacheSize[] = "browser.disk_cache_size"; 2116// Pref name for the policy specifying the maximal media cache size. 2117const char kMediaCacheSize[] = "browser.media_cache_size"; 2118 2119// Specifies the release channel that the device should be locked to. 2120// Possible values: "stable-channel", "beta-channel", "dev-channel", or an 2121// empty string, in which case the value will be ignored. 2122// TODO(dubroy): This preference may not be necessary once 2123// http://crosbug.com/17015 is implemented and the update engine can just 2124// fetch the correct value from the policy. 2125const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel"; 2126 2127// Value of the enums in TabStrip::LayoutType as an int. 2128const char kTabStripLayoutType[] = "tab_strip_layout_type"; 2129 2130// If true, cloud policy for the user is not loaded when the user signs in. 2131const char kDisableCloudPolicyOnSignin[] = 2132 "policy.disable_cloud_policy_on_signin"; 2133 2134// Indicates that factory reset was requested from options page. 2135const char kFactoryResetRequested[] = "FactoryResetRequested"; 2136 2137// *************** SERVICE PREFS *************** 2138// These are attached to the service process. 2139 2140const char kCloudPrintRoot[] = "cloud_print"; 2141const char kCloudPrintProxyEnabled[] = "cloud_print.enabled"; 2142// The unique id for this instance of the cloud print proxy. 2143const char kCloudPrintProxyId[] = "cloud_print.proxy_id"; 2144// The GAIA auth token for Cloud Print 2145const char kCloudPrintAuthToken[] = "cloud_print.auth_token"; 2146// The GAIA auth token used by Cloud Print to authenticate with the XMPP server 2147// This should eventually go away because the above token should work for both. 2148const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token"; 2149// The email address of the account used to authenticate with the Cloud Print 2150// server. 2151const char kCloudPrintEmail[] = "cloud_print.email"; 2152// Settings specific to underlying print system. 2153const char kCloudPrintPrintSystemSettings[] = 2154 "cloud_print.print_system_settings"; 2155// A boolean indicating whether we should poll for print jobs when don't have 2156// an XMPP connection (false by default). 2157const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll"; 2158const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token"; 2159const char kCloudPrintRobotEmail[] = "cloud_print.robot_email"; 2160// A boolean indicating whether we should connect to cloud print new printers. 2161const char kCloudPrintConnectNewPrinters[] = 2162 "cloud_print.user_settings.connectNewPrinters"; 2163// A boolean indicating whether we should ping XMPP connection. 2164const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled"; 2165// An int value indicating the average timeout between xmpp pings. 2166const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec"; 2167// Dictionary with settings stored by connector setup page. 2168const char kCloudPrintUserSettings[] = "cloud_print.user_settings"; 2169// List of printers settings. 2170extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers"; 2171// A boolean indicating whether submitting jobs to Google Cloud Print is 2172// blocked by policy. 2173const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled"; 2174 2175// Preference to store proxy settings. 2176const char kProxy[] = "proxy"; 2177const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy"; 2178 2179// Preferences that are exclusively used to store managed values for default 2180// content settings. 2181const char kManagedDefaultCookiesSetting[] = 2182 "profile.managed_default_content_settings.cookies"; 2183const char kManagedDefaultImagesSetting[] = 2184 "profile.managed_default_content_settings.images"; 2185const char kManagedDefaultJavaScriptSetting[] = 2186 "profile.managed_default_content_settings.javascript"; 2187const char kManagedDefaultPluginsSetting[] = 2188 "profile.managed_default_content_settings.plugins"; 2189const char kManagedDefaultPopupsSetting[] = 2190 "profile.managed_default_content_settings.popups"; 2191const char kManagedDefaultGeolocationSetting[] = 2192 "profile.managed_default_content_settings.geolocation"; 2193const char kManagedDefaultNotificationsSetting[] = 2194 "profile.managed_default_content_settings.notifications"; 2195const char kManagedDefaultMediaStreamSetting[] = 2196 "profile.managed_default_content_settings.media_stream"; 2197 2198// Preferences that are exclusively used to store managed 2199// content settings patterns. 2200const char kManagedCookiesAllowedForUrls[] = 2201 "profile.managed_cookies_allowed_for_urls"; 2202const char kManagedCookiesBlockedForUrls[] = 2203 "profile.managed_cookies_blocked_for_urls"; 2204const char kManagedCookiesSessionOnlyForUrls[] = 2205 "profile.managed_cookies_sessiononly_for_urls"; 2206const char kManagedImagesAllowedForUrls[] = 2207 "profile.managed_images_allowed_for_urls"; 2208const char kManagedImagesBlockedForUrls[] = 2209 "profile.managed_images_blocked_for_urls"; 2210const char kManagedJavaScriptAllowedForUrls[] = 2211 "profile.managed_javascript_allowed_for_urls"; 2212const char kManagedJavaScriptBlockedForUrls[] = 2213 "profile.managed_javascript_blocked_for_urls"; 2214const char kManagedPluginsAllowedForUrls[] = 2215 "profile.managed_plugins_allowed_for_urls"; 2216const char kManagedPluginsBlockedForUrls[] = 2217 "profile.managed_plugins_blocked_for_urls"; 2218const char kManagedPopupsAllowedForUrls[] = 2219 "profile.managed_popups_allowed_for_urls"; 2220const char kManagedPopupsBlockedForUrls[] = 2221 "profile.managed_popups_blocked_for_urls"; 2222const char kManagedNotificationsAllowedForUrls[] = 2223 "profile.managed_notifications_allowed_for_urls"; 2224const char kManagedNotificationsBlockedForUrls[] = 2225 "profile.managed_notifications_blocked_for_urls"; 2226const char kManagedAutoSelectCertificateForUrls[] = 2227 "profile.managed_auto_select_certificate_for_urls"; 2228 2229#if defined(OS_MACOSX) 2230// Set to true if the user removed our login item so we should not create a new 2231// one when uninstalling background apps. 2232const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item"; 2233 2234// Set to true if Chrome already created a login item, so there's no need to 2235// create another one. 2236const char kChromeCreatedLoginItem[] = 2237 "background_mode.chrome_created_login_item"; 2238 2239// Set to true once we've initialized kChromeCreatedLoginItem for the first 2240// time. 2241const char kMigratedLoginItemPref[] = 2242 "background_mode.migrated_login_item_pref"; 2243#endif 2244 2245// Set to true if background mode is enabled on this browser. 2246const char kBackgroundModeEnabled[] = "background_mode.enabled"; 2247 2248// Set to true if hardware acceleration mode is enabled on this browser. 2249const char kHardwareAccelerationModeEnabled[] = 2250 "hardware_acceleration_mode.enabled"; 2251 2252// Hardware acceleration mode from previous browser launch. 2253const char kHardwareAccelerationModePrevious[] = 2254 "hardware_acceleration_mode_previous"; 2255 2256// List of protocol handlers. 2257const char kRegisteredProtocolHandlers[] = 2258 "custom_handlers.registered_protocol_handlers"; 2259 2260// List of protocol handlers the user has requested not to be asked about again. 2261const char kIgnoredProtocolHandlers[] = 2262 "custom_handlers.ignored_protocol_handlers"; 2263 2264// Whether user-specified handlers for protocols and content types can be 2265// specified. 2266const char kCustomHandlersEnabled[] = "custom_handlers.enabled"; 2267 2268// Integers that specify the policy refresh rate for device- and user-policy in 2269// milliseconds. Not all values are meaningful, so it is clamped to a sane range 2270// by the cloud policy subsystem. 2271const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate"; 2272const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate"; 2273 2274// String that represents the recovery component last downloaded version. This 2275// takes the usual 'a.b.c.d' notation. 2276const char kRecoveryComponentVersion[] = "recovery_component.version"; 2277 2278// String that stores the component updater last known state. This is used for 2279// troubleshooting. 2280const char kComponentUpdaterState[] = "component_updater.state"; 2281 2282// The next media gallery ID to assign. 2283const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id"; 2284 2285// A list of dictionaries, where each dictionary represents a known media 2286// gallery. 2287const char kMediaGalleriesRememberedGalleries[] = 2288 "media_galleries.remembered_galleries"; 2289 2290#if defined(USE_ASH) 2291// |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The 2292// local variant is not synced and is used if set. If the local variant is not 2293// set its value is set from the synced value (once prefs have been 2294// synced). This gives a per-machine setting that is initialized from the last 2295// set value. 2296// These values are default on the machine but can be overridden by per-display 2297// values in kShelfPreferences (unless overridden by managed policy). 2298// String value corresponding to ash::Shell::ShelfAlignment. 2299const char kShelfAlignment[] = "shelf_alignment"; 2300const char kShelfAlignmentLocal[] = "shelf_alignment_local"; 2301// String value corresponding to ash::Shell::ShelfAutoHideBehavior. 2302const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; 2303const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; 2304const char kPinnedLauncherApps[] = "pinned_launcher_apps"; 2305// Boolean value indicating whether to show a logout button in the ash tray. 2306const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray"; 2307// Dictionary value that holds per-display preference of shelf alignment and 2308// auto-hide behavior. Key of the dictionary is the id of the display, and 2309// its value is a dictionary whose keys are kShelfAlignment and 2310// kShelfAutoHideBehavior. 2311const char kShelfPreferences[] = "shelf_preferences"; 2312 2313// Tuning settings for the animations when a user is cycling through workspaces 2314// via a three finger vertical scroll. 2315const char kWorkspaceCyclerShallowerThanSelectedYOffsets[] = 2316 "workspace_cycler.shallower_than_selected_y_offsets"; 2317const char kWorkspaceCyclerDeeperThanSelectedYOffsets[] = 2318 "workspace_cycler.deeper_than_selected_y_offsets"; 2319const char kWorkspaceCyclerSelectedYOffset[] = 2320 "workspace_cycler.selected_y_offset"; 2321const char kWorkspaceCyclerSelectedScale[] = 2322 "workspace_cycler.selected_scale"; 2323const char kWorkspaceCyclerMinScale[] = 2324 "workspace_cycler.min_scale"; 2325const char kWorkspaceCyclerMaxScale[] = 2326 "workspace_cycler.max_scale"; 2327const char kWorkspaceCyclerMinBrightness[] = 2328 "workspace_cycler.min_brightness"; 2329const char kWorkspaceCyclerBackgroundOpacity[] = 2330 "workspace_cycler.background_opacity"; 2331const char kWorkspaceCyclerDesktopWorkspaceBrightness[] = 2332 "workspace_cycler.desktop_workspace_brightness"; 2333const char kWorkspaceCyclerDistanceToInitiateCycling[] = 2334 "workspace_cycler.distance_to_initiate_cycling"; 2335const char kWorkspaceCyclerScrollDistanceToCycleToNextWorkspace[] = 2336 "workspace_cycler.scroll_distance_to_cycle_to_next_workspace"; 2337const char kWorkspaceCyclerCyclerStepAnimationDurationRatio[] = 2338 "workspace_cycler.cycler_step_animation_duration_ratio"; 2339const char kWorkspaceCyclerStartCyclerAnimationDuration[] = 2340 "workspace_cycler.start_cycler_animation_duration"; 2341const char kWorkspaceCyclerStopCyclerAnimationDuration[] = 2342 "workspace_cycler.stop_cycler_animation_duration"; 2343#endif 2344 2345#if defined(USE_AURA) 2346// Tuning settings for gestures. 2347const char kFlingVelocityCap[] = "gesture.fling_velocity_cap"; 2348const char kLongPressTimeInSeconds[] = 2349 "gesture.long_press_time_in_seconds"; 2350const char kMaxDistanceBetweenTapsForDoubleTap[] = 2351 "gesture.max_distance_between_taps_for_double_tap"; 2352const char kMaxDistanceForTwoFingerTapInPixels[] = 2353 "gesture.max_distance_for_two_finger_tap_in_pixels"; 2354const char kMaxSecondsBetweenDoubleClick[] = 2355 "gesture.max_seconds_between_double_click"; 2356const char kMaxSeparationForGestureTouchesInPixels[] = 2357 "gesture.max_separation_for_gesture_touches_in_pixels"; 2358const char kMaxSwipeDeviationRatio[] = 2359 "gesture.max_swipe_deviation_ratio"; 2360const char kMaxTouchDownDurationInSecondsForClick[] = 2361 "gesture.max_touch_down_duration_in_seconds_for_click"; 2362const char kMaxTouchMoveInPixelsForClick[] = 2363 "gesture.max_touch_move_in_pixels_for_click"; 2364const char kMinDistanceForPinchScrollInPixels[] = 2365 "gesture.min_distance_for_pinch_scroll_in_pixels"; 2366const char kMinFlickSpeedSquared[] = 2367 "gesture.min_flick_speed_squared"; 2368const char kMinPinchUpdateDistanceInPixels[] = 2369 "gesture.min_pinch_update_distance_in_pixels"; 2370const char kMinRailBreakVelocity[] = 2371 "gesture.min_rail_break_velocity"; 2372const char kMinScrollDeltaSquared[] = 2373 "gesture.min_scroll_delta_squared"; 2374const char kMinSwipeSpeed[] = 2375 "gesture.min_swipe_speed"; 2376const char kMinTouchDownDurationInSecondsForClick[] = 2377 "gesture.min_touch_down_duration_in_seconds_for_click"; 2378const char kPointsBufferedForVelocity[] = 2379 "gesture.points_buffered_for_velocity"; 2380const char kRailBreakProportion[] = 2381 "gesture.rail_break_proportion"; 2382const char kRailStartProportion[] = 2383 "gesture.rail_start_proportion"; 2384const char kSemiLongPressTimeInSeconds[] = 2385 "gesture.semi_long_press_time_in_seconds"; 2386const char kTabScrubActivationDelayInMS[] = 2387 "gesture.tab_scrub_activation_delay_in_ms"; 2388const char kFlingAccelerationCurveCoefficient0[] = 2389 "gesture.fling_acceleration_curve_coefficient_0"; 2390const char kFlingAccelerationCurveCoefficient1[] = 2391 "gesture.fling_acceleration_curve_coefficient_1"; 2392const char kFlingAccelerationCurveCoefficient2[] = 2393 "gesture.fling_acceleration_curve_coefficient_2"; 2394const char kFlingAccelerationCurveCoefficient3[] = 2395 "gesture.fling_acceleration_curve_coefficient_3"; 2396const char kFlingCurveTouchpadAlpha[] = "flingcurve.touchpad_alpha"; 2397const char kFlingCurveTouchpadBeta[] = "flingcurve.touchpad_beta"; 2398const char kFlingCurveTouchpadGamma[] = "flingcurve.touchpad_gamma"; 2399const char kFlingCurveTouchscreenAlpha[] = "flingcurve.touchscreen_alpha"; 2400const char kFlingCurveTouchscreenBeta[] = "flingcurve.touchscreen_beta"; 2401const char kFlingCurveTouchscreenGamma[] = "flingcurve.touchscreen_gamma"; 2402const char kFlingMaxCancelToDownTimeInMs[] = 2403 "gesture.fling_max_cancel_to_down_time_in_ms"; 2404const char kFlingMaxTapGapTimeInMs[] = 2405 "gesture.fling_max_tap_gap_time_in_ms"; 2406const char kOverscrollHorizontalThresholdComplete[] = 2407 "overscroll.horizontal_threshold_complete"; 2408const char kOverscrollVerticalThresholdComplete[] = 2409 "overscroll.vertical_threshold_complete"; 2410const char kOverscrollMinimumThresholdStart[] = 2411 "overscroll.minimum_threshold_start"; 2412const char kOverscrollHorizontalResistThreshold[] = 2413 "overscroll.horizontal_resist_threshold"; 2414const char kOverscrollVerticalResistThreshold[] = 2415 "overscroll.vertical_resist_threshold"; 2416#endif 2417 2418// Indicates whether the browser is in managed mode. 2419const char kInManagedMode[] = "managed_mode"; 2420 2421// Counts how many more times the 'profile on a network share' warning should be 2422// shown to the user before the next silence period. 2423const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; 2424// Tracks the time of the last shown warning. Used to reset 2425// |network_profile.warnings_left| after a silence period. 2426const char kNetworkProfileLastWarningTime[] = 2427 "network_profile.last_warning_time"; 2428 2429// 64-bit serialization of the time last policy usage statistics were collected 2430// by UMA_HISTOGRAM_ENUMERATION. 2431const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update"; 2432 2433#if defined(OS_CHROMEOS) 2434// The RLZ brand code, if enabled. 2435const char kRLZBrand[] = "rlz.brand"; 2436// Whether RLZ pings are disabled. 2437const char kRLZDisabled[] = "rlz.disabled"; 2438#endif 2439 2440// The directory in user data dir that contains the profile to be used with the 2441// app launcher. 2442extern const char kAppListProfile[] = "app_list.profile"; 2443 2444// The number of times the app launcher was launched since last ping and 2445// the time of the last ping. 2446extern const char kAppListLaunchCount[] = "app_list.launch_count"; 2447extern const char kLastAppListLaunchPing[] = "app_list.last_launch_ping"; 2448 2449// The number of times the an app was launched from the app launcher since last 2450// ping and the time of the last ping. 2451extern const char kAppListAppLaunchCount[] = "app_list.app_launch_count"; 2452extern const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping"; 2453 2454// A string pref for storing the salt used to compute the pepper device ID. 2455const char kDRMSalt[] = "settings.privacy.drm_salt"; 2456// A boolean pref that enables the (private) pepper GetDeviceID() call. 2457const char kEnableDRM[] = "settings.privacy.drm_enabled"; 2458 2459} // namespace prefs 2460