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