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