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