Suppress tabs permission warning if there is already a browsingHistory warning.
[chromium-blink-merge.git] / chrome / common / pref_names.cc
blob655cf7f0140b9204e372e265529ac54f831860d9
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"
10 namespace prefs {
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
47 // starts a session.
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
52 // the format.
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
63 // compatability.
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
85 // higher.
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 -
127 // Sync B A -
128 // Accept (B) B B B
129 // -----------------------------------------------------------
130 // Initial login - A -
131 // No sync and second login A A -
132 // Change options B B -
133 // -----------------------------------------------------------
134 // Initial login - A -
135 // Sync A A -
136 // Locale changed on login screen A C -
137 // Accept (A) A A A
138 // -----------------------------------------------------------
139 // Initial login - A -
140 // Sync B A -
141 // Revert A A -
142 const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
143 #endif
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
150 // request.
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
172 // change.
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";
267 #endif
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)
320 // 0 - undecided
321 // 1 - opt-in (enabled)
322 const char kContextualSearchEnabled[] = "search.contextual_search_enabled";
323 #endif
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
350 // for searches.
351 const char kDefaultSearchProviderSearchURL[] =
352 "default_search_provider.search_url";
354 // The URL (as understood by TemplateURLRef) the default search provider uses
355 // for suggestions.
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
395 // provider.
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
427 // preferences file.
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)
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";
479 #endif
481 #if defined(OS_ANDROID) || defined(OS_IOS)
482 // A list of bookmarks to include in a Managed Bookmarks root node. Each
483 // list item is a dictionary containing a "name" and an "url" entry, detailing
484 // the bookmark name and target URL respectively.
485 const char kManagedBookmarks[] = "policy.managed_bookmarks";
486 #endif
488 // Prefix URL for the experimental Instant ZeroSuggest provider.
489 const char kInstantUIZeroSuggestUrlPrefix[] =
490 "instant_ui.zero_suggest_url_prefix";
492 // Used to migrate preferences from local state to user preferences to
493 // enable multiple profiles.
494 // BITMASK with possible values (see browser_prefs.cc for enum):
495 // 0: No preferences migrated.
496 // 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList
497 // 2: Browser window preferences migrated: kDevToolsSplitLocation and
498 // kBrowserWindowPlacement
499 const char kMultipleProfilePrefMigration[] =
500 "local_state.multiple_profile_prefs_version";
502 // A boolean pref set to true if prediction of network actions is allowed.
503 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
504 // of web pages, and resource prefetching.
505 // NOTE: The "dns_prefetching.enabled" value is used so that historical user
506 // preferences are not lost.
507 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
509 // An integer representing the state of the default apps installation process.
510 // This value is persisted in the profile's user preferences because the process
511 // is async, and the user may have stopped chrome in the middle. The next time
512 // the profile is opened, the process will continue from where it left off.
514 // See possible values in external_provider_impl.cc.
515 const char kDefaultAppsInstallState[] = "default_apps_install_state";
517 // A boolean pref set to true if the Chrome Web Store icons should be hidden
518 // from the New Tab Page and app launcher.
519 const char kHideWebStoreIcon[] = "hide_web_store_icon";
521 #if defined(OS_CHROMEOS)
522 // A dictionary pref to hold the mute setting for all the currently known
523 // audio devices.
524 const char kAudioDevicesMute[] = "settings.audio.devices.mute";
526 // A dictionary pref storing the volume settings for all the currently known
527 // audio devices.
528 const char kAudioDevicesVolumePercent[] =
529 "settings.audio.devices.volume_percent";
531 // An integer pref to initially mute volume if 1. This pref is ignored if
532 // |kAudioOutputAllowed| is set to false, but its value is preserved, therefore
533 // when the policy is lifted the original mute state is restored. This setting
534 // is here only for migration purposes now. It is being replaced by the
535 // |kAudioDevicesMute| setting.
536 const char kAudioMute[] = "settings.audio.mute";
538 // A double pref storing the user-requested volume. This setting is here only
539 // for migration purposes now. It is being replaced by the
540 // |kAudioDevicesVolumePercent| setting.
541 const char kAudioVolumePercent[] = "settings.audio.volume_percent";
543 // An integer pref to record user's spring charger check result.
544 // 0 - unknown charger, not checked yet.
545 // 1 - confirmed safe charger.
546 // 2 - confirmed original charger and declined to order new charger.
547 // 3 - confirmed original charger and ordered new charger online.
548 // 4 - confirmed original charger and ordered new charger by phone.
549 // 5 - confirmed original charger, ordered a new one online, but continue to use
550 // the old one.
551 // 6 - confirmed original charger, ordered a new one by phone, but continue to
552 // use the old one.
553 const char kSpringChargerCheck[] = "settings.spring_charger.check_result";
555 // A boolean pref set to true if touchpad tap-to-click is enabled.
556 const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click";
558 // A boolean pref set to true if touchpad tap-dragging is enabled.
559 const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging";
561 // A boolean pref set to true if touchpad three-finger-click is enabled.
562 const char kEnableTouchpadThreeFingerClick[] =
563 "settings.touchpad.enable_three_finger_click";
565 // A boolean pref set to true if touchpad natural scrolling is enabled.
566 const char kNaturalScroll[] = "settings.touchpad.natural_scroll";
568 // A boolean pref set to true if primary mouse button is the left button.
569 const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right";
571 // A integer pref for the touchpad sensitivity.
572 const char kMouseSensitivity[] = "settings.mouse.sensitivity2";
574 // A integer pref for the touchpad sensitivity.
575 const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
577 // A boolean pref set to true if time should be displayed in 24-hour clock.
578 const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
580 // A boolean pref to disable Google Drive integration.
581 // The pref prefix should remain as "gdata" for backward compatibility.
582 const char kDisableDrive[] = "gdata.disabled";
584 // A boolean pref to disable Drive over cellular connections.
585 // The pref prefix should remain as "gdata" for backward compatibility.
586 const char kDisableDriveOverCellular[] = "gdata.cellular.disabled";
588 // A boolean pref to disable hosted files on Drive.
589 // The pref prefix should remain as "gdata" for backward compatibility.
590 const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled";
592 // A string pref set to the current input method.
593 const char kLanguageCurrentInputMethod[] =
594 "settings.language.current_input_method";
596 // A string pref set to the previous input method.
597 const char kLanguagePreviousInputMethod[] =
598 "settings.language.previous_input_method";
600 // A string pref (comma-separated list) set to the "next engine in menu"
601 // hot-key lists.
602 const char kLanguageHotkeyNextEngineInMenu[] =
603 "settings.language.hotkey_next_engine_in_menu";
605 // A string pref (comma-separated list) set to the "previous engine"
606 // hot-key lists.
607 const char kLanguageHotkeyPreviousEngine[] =
608 "settings.language.hotkey_previous_engine";
610 // A string pref (comma-separated list) set to the preferred language IDs
611 // (ex. "en-US,fr,ko").
612 const char kLanguagePreferredLanguages[] =
613 "settings.language.preferred_languages";
615 // A string pref (comma-separated list) set to the preloaded (active) input
616 // method IDs (ex. "pinyin,mozc").
617 const char kLanguagePreloadEngines[] = "settings.language.preload_engines";
619 // A List pref (comma-separated list) set to the extension IMEs to be enabled.
620 const char kLanguageEnabledExtensionImes[] =
621 "settings.language.enabled_extension_imes";
623 // Integer prefs which determine how we remap modifier keys (e.g. swap Alt and
624 // Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
625 // src/chrome/browser/chromeos/input_method/xkeyboard.h
626 const char kLanguageRemapSearchKeyTo[] =
627 // Note: we no longer use XKB for remapping these keys, but we can't change
628 // the pref names since the names are already synced with the cloud.
629 "settings.language.xkb_remap_search_key_to";
630 const char kLanguageRemapControlKeyTo[] =
631 "settings.language.xkb_remap_control_key_to";
632 const char kLanguageRemapAltKeyTo[] =
633 "settings.language.xkb_remap_alt_key_to";
634 const char kLanguageRemapCapsLockKeyTo[] =
635 "settings.language.remap_caps_lock_key_to";
636 const char kLanguageRemapDiamondKeyTo[] =
637 "settings.language.remap_diamond_key_to";
639 // A boolean pref that causes top-row keys to be interpreted as function keys
640 // instead of as media keys.
641 const char kLanguageSendFunctionKeys[] =
642 "settings.language.send_function_keys";
644 // A boolean pref which determines whether key repeat is enabled.
645 const char kLanguageXkbAutoRepeatEnabled[] =
646 "settings.language.xkb_auto_repeat_enabled_r2";
647 // A integer pref which determines key repeat delay (in ms).
648 const char kLanguageXkbAutoRepeatDelay[] =
649 "settings.language.xkb_auto_repeat_delay_r2";
650 // A integer pref which determines key repeat interval (in ms).
651 const char kLanguageXkbAutoRepeatInterval[] =
652 "settings.language.xkb_auto_repeat_interval_r2";
653 // "_r2" suffixes are added to the three prefs above when we change the
654 // preferences not user-configurable, not to sync them with cloud.
656 // A boolean pref which determines whether the large cursor feature is enabled.
657 const char kLargeCursorEnabled[] = "settings.a11y.large_cursor_enabled";
659 // A boolean pref which determines whether the sticky keys feature is enabled.
660 const char kStickyKeysEnabled[] = "settings.a11y.sticky_keys_enabled";
661 // A boolean pref which determines whether spoken feedback is enabled.
662 const char kSpokenFeedbackEnabled[] = "settings.accessibility";
663 // A boolean pref which determines whether high conrast is enabled.
664 const char kHighContrastEnabled[] = "settings.a11y.high_contrast_enabled";
665 // A boolean pref which determines whether screen magnifier is enabled.
666 const char kScreenMagnifierEnabled[] = "settings.a11y.screen_magnifier";
667 // A integer pref which determines what type of screen magnifier is enabled.
668 // Note that: 'screen_magnifier_type' had been used as string pref. Hence,
669 // we are using another name pref here.
670 const char kScreenMagnifierType[] = "settings.a11y.screen_magnifier_type2";
671 // A double pref which determines a zooming scale of the screen magnifier.
672 const char kScreenMagnifierScale[] = "settings.a11y.screen_magnifier_scale";
673 // A boolean pref which determines whether the virtual keyboard is enabled for
674 // accessibility. This feature is separate from displaying an onscreen keyboard
675 // due to lack of a physical keyboard.
676 const char kVirtualKeyboardEnabled[] = "settings.a11y.virtual_keyboard";
677 // A boolean pref which determines whether autoclick is enabled.
678 const char kAutoclickEnabled[] = "settings.a11y.autoclick";
679 // An integer pref which determines time in ms between when the mouse cursor
680 // stops and when an autoclick is triggered.
681 const char kAutoclickDelayMs[] = "settings.a11y.autoclick_delay_ms";
682 // A boolean pref which determines whether the accessibility menu shows
683 // regardless of the state of a11y features.
684 const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu";
686 // A boolean pref which turns on Advanced Filesystem
687 // (USB support, SD card, etc).
688 const char kLabsAdvancedFilesystemEnabled[] =
689 "settings.labs.advanced_filesystem";
691 // A boolean pref which turns on the mediaplayer.
692 const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer";
694 // A boolean pref that turns on automatic screen locking.
695 const char kEnableAutoScreenLock[] = "settings.enable_screen_lock";
697 // A boolean pref of whether to show mobile plan notifications.
698 const char kShowPlanNotifications[] =
699 "settings.internet.mobile.show_plan_notifications";
701 // A boolean pref of whether to show 3G promo notification.
702 const char kShow3gPromoNotification[] =
703 "settings.internet.mobile.show_3g_promo_notification";
705 // A string pref that contains version where "What's new" promo was shown.
706 const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version";
708 // A boolean pref that controls whether proxy settings from shared network
709 // settings (accordingly from device policy) are applied or ignored.
710 const char kUseSharedProxies[] = "settings.use_shared_proxies";
712 // Power state of the current displays from the last run.
713 const char kDisplayPowerState[] = "settings.display.power_state";
714 // A dictionary pref that stores per display preferences.
715 const char kDisplayProperties[] = "settings.display.properties";
717 // A dictionary pref that specifies per-display layout/offset information.
718 // Its key is the ID of the display and its value is a dictionary for the
719 // layout/offset information.
720 const char kSecondaryDisplays[] = "settings.display.secondary_displays";
722 // A boolean pref indicating whether user activity has been observed in the
723 // current session already. The pref is used to restore information about user
724 // activity after browser crashes.
725 const char kSessionUserActivitySeen[] = "session.user_activity_seen";
727 // A preference to keep track of the session start time. If the session length
728 // limit is configured to start running after initial user activity has been
729 // observed, the pref is set after the first user activity in a session.
730 // Otherwise, it is set immediately after session start. The pref is used to
731 // restore the session start time after browser crashes. The time is expressed
732 // as the serialization obtained from base::TimeTicks::ToInternalValue().
733 const char kSessionStartTime[] = "session.start_time";
735 // Holds the maximum session time in milliseconds. If this pref is set, the
736 // user is logged out when the maximum session time is reached. The user is
737 // informed about the remaining time by a countdown timer shown in the ash
738 // system tray.
739 const char kSessionLengthLimit[] = "session.length_limit";
741 // Whether the session length limit should start running only after the first
742 // user activity has been observed in a session.
743 const char kSessionWaitForInitialUserActivity[] =
744 "session.wait_for_initial_user_activity";
746 // Inactivity time in milliseconds while the system is on AC power before
747 // the screen should be dimmed, turned off, or locked, before an
748 // IdleActionImminent D-Bus signal should be sent, or before
749 // kPowerAcIdleAction should be performed. 0 disables the delay (N/A for
750 // kPowerAcIdleDelayMs).
751 const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
752 const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
753 const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
754 const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms";
755 const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
757 // Similar delays while the system is on battery power.
758 const char kPowerBatteryScreenDimDelayMs[] =
759 "power.battery_screen_dim_delay_ms";
760 const char kPowerBatteryScreenOffDelayMs[] =
761 "power.battery_screen_off_delay_ms";
762 const char kPowerBatteryScreenLockDelayMs[] =
763 "power.battery_screen_lock_delay_ms";
764 const char kPowerBatteryIdleWarningDelayMs[] =
765 "power.battery_idle_warning_delay_ms";
766 const char kPowerBatteryIdleDelayMs[] =
767 "power.battery_idle_delay_ms";
769 // Action that should be performed when the idle delay is reached while the
770 // system is on AC power or battery power.
771 // Values are from the chromeos::PowerPolicyController::Action enum.
772 const char kPowerAcIdleAction[] = "power.ac_idle_action";
773 const char kPowerBatteryIdleAction[] = "power.battery_idle_action";
775 // Action that should be performed when the lid is closed.
776 // Values are from the chromeos::PowerPolicyController::Action enum.
777 const char kPowerLidClosedAction[] = "power.lid_closed_action";
779 // Should audio and video activity be used to disable the above delays?
780 const char kPowerUseAudioActivity[] = "power.use_audio_activity";
781 const char kPowerUseVideoActivity[] = "power.use_video_activity";
783 // Should extensions be able to use the chrome.power API to override
784 // screen-related power management (including locking)?
785 const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks";
787 // Amount by which the screen-dim delay should be scaled while the system
788 // is in presentation mode. Values are limited to a minimum of 1.0.
789 const char kPowerPresentationScreenDimDelayFactor[] =
790 "power.presentation_screen_dim_delay_factor";
792 // Amount by which the screen-dim delay should be scaled when user activity is
793 // observed while the screen is dimmed or soon after the screen has been turned
794 // off. Values are limited to a minimum of 1.0.
795 const char kPowerUserActivityScreenDimDelayFactor[] =
796 "power.user_activity_screen_dim_delay_factor";
798 // Whether the power management delays should start running only after the first
799 // user activity has been observed in a session.
800 const char kPowerWaitForInitialUserActivity[] =
801 "power.wait_for_initial_user_activity";
803 // The URL from which the Terms of Service can be downloaded. The value is only
804 // honored for public accounts.
805 const char kTermsOfServiceURL[] = "terms_of_service.url";
807 // Indicates that the Profile has made navigations that used a certificate
808 // installed by the system administrator. If that is true then the local cache
809 // of remote data is tainted (e.g. shared scripts), and future navigations
810 // show a warning indicating that the organization may track the browsing
811 // session.
812 const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once";
814 // Indicates whether the remote attestation is enabled for the user.
815 const char kAttestationEnabled[] = "attestation.enabled";
816 // The list of extensions allowed to use the platformKeysPrivate API for
817 // remote attestation.
818 const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist";
820 // A boolean pref indicating whether the projection touch HUD is enabled or not.
821 const char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled";
823 // A pref to configure networks. Its value must be a list of
824 // NetworkConfigurations according to the OpenNetworkConfiguration
825 // specification.
826 // Currently, this pref is only used to store the policy. The user's
827 // configuration is still stored in Shill.
828 const char kOpenNetworkConfiguration[] = "onc";
830 // A boolean pref that tracks whether the user has already given consent for
831 // enabling remote attestation for content protection.
832 const char kRAConsentFirstTime[] = "settings.privacy.ra_consent";
834 // A boolean pref recording whether user has dismissed the multiprofile
835 // itroduction dialog show.
836 const char kMultiProfileNeverShowIntro[] =
837 "settings.multi_profile_never_show_intro";
839 // A boolean pref recording whether user has dismissed the multiprofile
840 // teleport warning dialog show.
841 const char kMultiProfileWarningShowDismissed[] =
842 "settings.multi_profile_warning_show_dismissed";
844 // A boolean pref recording whether user has dismissed the multiprofile
845 // notification.
846 const char kMultiProfileNotificationDismissed[] =
847 "settings.multi_profile_notification_dismissed";
849 // A string pref that holds string enum values of how the user should behave
850 // in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy
851 // for more details of the valid values.
852 const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior";
854 // A boolean preference indicating whether user has seen first-run tutorial
855 // already.
856 const char kFirstRunTutorialShown[] = "settings.first_run_tutorial_shown";
858 // Indicates the amount of time for which a user authenticated via SAML can use
859 // offline authentication against a cached password before being forced to go
860 // through online authentication against GAIA again. The time is expressed in
861 // seconds. A value of -1 indicates no limit, allowing the user to use offline
862 // authentication indefinitely. The limit is in effect only if GAIA redirected
863 // the user to a SAML IdP during the last online authentication.
864 const char kSAMLOfflineSigninTimeLimit[] = "saml.offline_signin_time_limit";
866 // A preference to keep track of the last time the user authenticated against
867 // GAIA using SAML. The preference is updated whenever the user authenticates
868 // against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the
869 // current time. If GAIA performs the authentication itself, the preference is
870 // cleared. The time is expressed as the serialization obtained from
871 // base::Time::ToInternalValue().
872 const char kSAMLLastGAIASignInTime[] = "saml.last_gaia_sign_in_time";
874 // The total number of seconds that the machine has spent sitting on the
875 // OOBE screen.
876 const char kTimeOnOobe[] = "settings.time_on_oobe";
877 #endif // defined(OS_CHROMEOS)
879 // The disabled messages in IPC logging.
880 const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
882 // A boolean pref set to true if a Home button to open the Home pages should be
883 // visible on the toolbar.
884 const char kShowHomeButton[] = "browser.show_home_button";
886 // A string value which saves short list of recently user selected encodings
887 // separated with comma punctuation mark.
888 const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
890 // Clear Browsing Data dialog preferences.
891 const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
892 const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
893 const char kDeleteCache[] = "browser.clear_data.cache";
894 const char kDeleteCookies[] = "browser.clear_data.cookies";
895 const char kDeletePasswords[] = "browser.clear_data.passwords";
896 const char kDeleteFormData[] = "browser.clear_data.form_data";
897 const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
898 const char kDeauthorizeContentLicenses[] =
899 "browser.clear_data.content_licenses";
900 const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
901 const char kLastClearBrowsingDataTime[] =
902 "browser.last_clear_browsing_data_time";
904 // Boolean pref to define the default values for using spellchecker.
905 const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking";
907 // List of names of the enabled labs experiments (see chrome/browser/labs.cc).
908 const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
910 // Boolean pref to define the default values for using auto spell correct.
911 const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
913 // Boolean pref to define the default setting for "block offensive words".
914 // The old key value is kept to avoid unnecessary migration code.
915 const char kSpeechRecognitionFilterProfanities[] =
916 "browser.speechinput_censor_results";
918 // List of speech recognition context names (extensions or websites) for which
919 // the tray notification balloon has already been shown.
920 const char kSpeechRecognitionTrayNotificationShownContexts[] =
921 "browser.speechinput_tray_notification_shown_contexts";
923 // Boolean controlling whether history saving is disabled.
924 const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
926 // Boolean controlling whether deleting browsing and download history is
927 // permitted.
928 const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled";
930 // Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
931 const char kForceSafeSearch[] = "settings.force_safesearch";
933 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
934 // Linux specific preference on whether we should match the system theme.
935 const char kUsesSystemTheme[] = "extensions.theme.use_system";
936 #endif
937 const char kCurrentThemePackFilename[] = "extensions.theme.pack";
938 const char kCurrentThemeID[] = "extensions.theme.id";
939 const char kCurrentThemeImages[] = "extensions.theme.images";
940 const char kCurrentThemeColors[] = "extensions.theme.colors";
941 const char kCurrentThemeTints[] = "extensions.theme.tints";
942 const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
944 // Boolean pref which persists whether the extensions_ui is in developer mode
945 // (showing developer packing tools and extensions details)
946 const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
948 // Dictionary pref that tracks which command belongs to which
949 // extension + named command pair.
950 const char kExtensionCommands[] = "extensions.commands";
952 // Pref containing the directory for internal plugins as written to the plugins
953 // list (below).
954 const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
956 // List pref containing information (dictionaries) on plugins.
957 const char kPluginsPluginsList[] = "plugins.plugins_list";
959 // List pref containing names of plugins that are disabled by policy.
960 const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
962 // List pref containing exceptions to the list of plugins disabled by policy.
963 const char kPluginsDisabledPluginsExceptions[] =
964 "plugins.plugins_disabled_exceptions";
966 // List pref containing names of plugins that are enabled by policy.
967 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
969 // When bundled NPAPI Flash is removed, if at that point it is enabled while
970 // Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
971 // want to do so only once.
972 const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash";
974 // In the early stage of component-updated PPAPI Flash, we did field trials in
975 // which it was set to disabled by default. The corresponding settings item may
976 // remain in some users' profiles. Currently it affects both the bundled and
977 // component-updated PPAPI Flash (since the two share the same enable/disable
978 // state). We want to remove this item to get those users to use PPAPI Flash.
979 // We will want to do so only once.
980 const char kPluginsRemovedOldComponentPepperFlashSettings[] =
981 "plugins.removed_old_component_pepper_flash_settings";
983 #if !defined(OS_ANDROID)
984 // Whether about:plugins is shown in the details mode or not.
985 const char kPluginsShowDetails[] = "plugins.show_details";
986 #endif
988 // Boolean that indicates whether outdated plugins are allowed or not.
989 const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
991 // Boolean that indicates whether plugins that require authorization should
992 // be always allowed or not.
993 const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
995 #if defined(ENABLE_PLUGIN_INSTALLATION)
996 // Dictionary holding plug-ins metadata.
997 const char kPluginsMetadata[] = "plugins.metadata";
999 // Last update time of plug-ins resource cache.
1000 const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
1001 #endif
1003 // Boolean that indicates whether we should check if we are the default browser
1004 // on start-up.
1005 const char kCheckDefaultBrowser[] = "browser.check_default_browser";
1007 #if defined(OS_WIN)
1008 // By default, setting Chrome as default during first run on Windows 8 will
1009 // trigger shutting down the current instance and spawning a new (Metro)
1010 // Chrome. This boolean preference suppresses this behaviour.
1011 const char kSuppressSwitchToMetroModeOnSetDefault[] =
1012 "browser.suppress_switch_to_metro_mode_on_set_default";
1013 #endif
1015 // Policy setting whether default browser check should be disabled and default
1016 // browser registration should take place.
1017 const char kDefaultBrowserSettingEnabled[] =
1018 "browser.default_browser_setting_enabled";
1020 #if defined(OS_MACOSX)
1021 // Boolean that indicates whether the application should show the info bar
1022 // asking the user to set up automatic updates when Keystone promotion is
1023 // required.
1024 const char kShowUpdatePromotionInfoBar[] =
1025 "browser.show_update_promotion_info_bar";
1026 #endif
1028 // Boolean that is false if we should show window manager decorations. If
1029 // true, we draw a custom chrome frame (thicker title bar and blue border).
1030 const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
1032 // Dictionary of content settings applied to all hosts by default.
1033 const char kDefaultContentSettings[] = "profile.default_content_settings";
1035 // Boolean indicating whether the clear on exit pref was migrated to content
1036 // settings yet.
1037 const char kContentSettingsClearOnExitMigrated[] =
1038 "profile.content_settings.clear_on_exit_migrated";
1040 // Version of the pattern format used to define content settings.
1041 const char kContentSettingsVersion[] = "profile.content_settings.pref_version";
1043 // Patterns for mapping origins to origin related settings. Default settings
1044 // will be applied to origins that don't match any of the patterns. The pattern
1045 // format used is defined by kContentSettingsVersion.
1046 const char kContentSettingsPatternPairs[] =
1047 "profile.content_settings.pattern_pairs";
1049 // Version of the content settings whitelist.
1050 const char kContentSettingsDefaultWhitelistVersion[] =
1051 "profile.content_settings.whitelist_version";
1053 #if !defined(OS_ANDROID)
1054 // Which plugins have been whitelisted manually by the user.
1055 const char kContentSettingsPluginWhitelist[] =
1056 "profile.content_settings.plugin_whitelist";
1057 #endif
1059 // Boolean that is true if we should unconditionally block third-party cookies,
1060 // regardless of other content settings.
1061 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
1063 // Boolean that is true when all locally stored site data (e.g. cookies, local
1064 // storage, etc..) should be deleted on exit.
1065 const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit";
1067 // Double that indicates the default zoom level.
1068 const char kDefaultZoomLevel[] = "profile.default_zoom_level";
1070 // Dictionary that maps hostnames to zoom levels. Hosts not in this pref will
1071 // be displayed at the default zoom level.
1072 const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels";
1074 // A dictionary that tracks the default data model to use for each section of
1075 // the dialog.
1076 const char kAutofillDialogAutofillDefault[] = "autofill.data_model_default";
1078 // Whether a user opted out of making purchases with Google Wallet; changed via
1079 // the autofill dialog's account chooser and set explicitly on dialog submission
1080 // (but not cancel). If this isn't set, the dialog assumes it's the first run.
1081 const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet";
1083 // Which GAIA users have accepted that use of Google Wallet implies their
1084 // location will be shared with fraud protection services.
1085 const char kAutofillDialogWalletLocationAcceptance[] =
1086 "autofill.wallet_location_disclosure";
1088 // Whether a user wants to save data locally in Autofill.
1089 const char kAutofillDialogSaveData[] = "autofill.save_data";
1091 // Whether the user has selected "Same as billing" for the shipping address when
1092 // using Google Wallet.
1093 const char kAutofillDialogWalletShippingSameAsBilling[] =
1094 "autofill.wallet_shipping_same_as_billing";
1096 // The number of times the generated credit card bubble has been shown.
1097 const char kAutofillGeneratedCardBubbleTimesShown[] =
1098 "autofill.generated_card_bubble_times_shown";
1100 // A dictionary that tracks the defaults to be set on the next invocation
1101 // of the requestAutocomplete dialog.
1102 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults";
1104 #if !defined(OS_ANDROID)
1105 const char kPinnedTabs[] = "pinned_tabs";
1106 #endif
1108 #if defined(OS_ANDROID)
1109 // Boolean that controls the enabled-state of Geolocation in content.
1110 const char kGeolocationEnabled[] = "geolocation.enabled";
1111 #endif
1113 #if defined(ENABLE_GOOGLE_NOW)
1114 // Boolean that is true when Google services can use the user's location.
1115 const char kGoogleGeolocationAccessEnabled[] =
1116 "googlegeolocationaccess.enabled";
1117 #endif
1119 // The default audio capture device used by the Media content setting.
1120 const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device";
1122 // The default video capture device used by the Media content setting.
1123 const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device";
1125 // The salt used for creating random MediaSource IDs.
1126 const char kMediaDeviceIdSalt[] = "media.device_id_salt";
1128 // Preference to disable 3D APIs (WebGL, Pepper 3D).
1129 const char kDisable3DAPIs[] = "disable_3d_apis";
1131 // Whether to enable hyperlink auditing ("<a ping>").
1132 const char kEnableHyperlinkAuditing[] = "enable_a_ping";
1134 // Whether to enable sending referrers.
1135 const char kEnableReferrers[] = "enable_referrers";
1137 // Whether to send the DNT header.
1138 const char kEnableDoNotTrack[] = "enable_do_not_track";
1140 // GL_VENDOR string.
1141 const char kGLVendorString[] = "gl_vendor_string";
1143 // GL_RENDERER string.
1144 const char kGLRendererString[] = "gl_renderer_string";
1146 // GL_VERSION string.
1147 const char kGLVersionString[] = "gl_version_string";
1149 // Boolean that specifies whether to import bookmarks from the default browser
1150 // on first run.
1151 const char kImportBookmarks[] = "import_bookmarks";
1153 // Boolean that specifies whether to import the browsing history from the
1154 // default browser on first run.
1155 const char kImportHistory[] = "import_history";
1157 // Boolean that specifies whether to import the homepage from the default
1158 // browser on first run.
1159 const char kImportHomepage[] = "import_home_page";
1161 // Boolean that specifies whether to import the search engine from the default
1162 // browser on first run.
1163 const char kImportSearchEngine[] = "import_search_engine";
1165 // Boolean that specifies whether to import the saved passwords from the default
1166 // browser on first run.
1167 const char kImportSavedPasswords[] = "import_saved_passwords";
1169 // Profile avatar and name
1170 const char kProfileAvatarIndex[] = "profile.avatar_index";
1171 const char kProfileName[] = "profile.name";
1173 // Whether the profile is managed.
1174 const char kProfileIsManaged[] = "profile.is_managed";
1176 // The managed user ID.
1177 const char kManagedUserId[] = "profile.managed_user_id";
1179 // 64-bit integer serialization of the base::Time when the user's GAIA info
1180 // was last updated.
1181 const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
1183 // The URL from which the GAIA profile picture was downloaded. This is cached to
1184 // prevent the same picture from being downloaded multiple times.
1185 const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url";
1187 // Integer that specifies the number of times that we have shown the tutorial
1188 // card in the profile avatar bubble.
1189 const char kProfileAvatarTutorialShown[] =
1190 "profile.avatar_bubble_tutorial_shown";
1192 // Boolean that specifies whether we have shown the user manager tutorial.
1193 const char kProfileUserManagerTutorialShown[] =
1194 "profile.user_manager_tutorial_shown";
1196 // Indicates if we've already shown a notification that high contrast
1197 // mode is on, recommending high-contrast extensions and themes.
1198 const char kInvertNotificationShown[] = "invert_notification_version_2_shown";
1200 // Boolean controlling whether printing is enabled.
1201 const char kPrintingEnabled[] = "printing.enabled";
1203 // Boolean controlling whether print preview is disabled.
1204 const char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
1206 // An integer pref specifying the fallback behavior for sites outside of content
1207 // packs. One of:
1208 // 0: Allow (does nothing)
1209 // 1: Warn.
1210 // 2: Block.
1211 const char kDefaultManagedModeFilteringBehavior[] =
1212 "profile.managed.default_filtering_behavior";
1214 // Whether this user is permitted to create managed users.
1215 const char kManagedUserCreationAllowed[] =
1216 "profile.managed_user_creation_allowed";
1218 // List pref containing the users managed by this user.
1219 const char kManagedUsers[] = "profile.managed_users";
1221 // List pref containing the extension ids which are not allowed to send
1222 // notifications to the message center.
1223 const char kMessageCenterDisabledExtensionIds[] =
1224 "message_center.disabled_extension_ids";
1226 // List pref containing the system component ids which are not allowed to send
1227 // notifications to the message center.
1228 const char kMessageCenterDisabledSystemComponentIds[] =
1229 "message_center.disabled_system_component_ids";
1231 // List pref containing the system component ids which are allowed to send
1232 // notifications to the message center.
1233 extern const char kMessageCenterEnabledSyncNotifierIds[] =
1234 "message_center.enabled_sync_notifier_ids";
1236 // List pref containing synced notification sending services that are currently
1237 // enabled.
1238 extern const char kEnabledSyncedNotificationSendingServices[] =
1239 "synced_notification.enabled_remote_services";
1241 // List pref containing which synced notification sending services have already
1242 // been turned on once for the user (so we don't turn them on again).
1243 extern const char kInitializedSyncedNotificationSendingServices[] =
1244 "synced_notification.initialized_remote_services";
1246 // Boolean pref containing whether this is the first run of the Synced
1247 // Notification feature.
1248 extern const char kSyncedNotificationFirstRun[] =
1249 "synced_notification.first_run";
1251 // Boolean pref indicating the welcome notification was dismissed by the user.
1252 extern const char kWelcomeNotificationDismissed[] =
1253 "message_center.welcome_notification_dismissed";
1255 // Boolean pref indicating the welcome notification was previously popped up.
1256 extern const char kWelcomeNotificationPreviouslyPoppedUp[] =
1257 "message_center.welcome_notification_previously_popped_up";
1259 // Integer pref containing the expiration timestamp of the welcome notification.
1260 extern const char kWelcomeNotificationExpirationTimestamp[] =
1261 "message_center.welcome_notification_expiration_timestamp";
1263 // Boolean pref that determines whether the user can enter fullscreen mode.
1264 // Disabling fullscreen mode also makes kiosk mode unavailable on desktop
1265 // platforms.
1266 extern const char kFullscreenAllowed[] = "fullscreen.allowed";
1268 // Enable notifications for new devices on the local network that can be
1269 // registered to the user's account, e.g. Google Cloud Print printers.
1270 const char kLocalDiscoveryNotificationsEnabled[] =
1271 "local_discovery.notifications_enabled";
1273 // A timestamp (stored in base::Time::ToInternalValue format) of the last time
1274 // a preference was reset.
1275 const char kPreferenceResetTime[] = "prefs.preference_reset_time";
1277 // String that indicates if the Profile Reset prompt has already been shown to
1278 // the user. Used both in user preferences and local state, in the latter, it is
1279 // actually a dictionary that maps profile keys to before-mentioned strings.
1280 const char kProfileResetPromptMemento[] = "profile.reset_prompt_memento";
1282 // The GCM channel's enabled state.
1283 const char kGCMChannelEnabled[] = "gcm.channel_enabled";
1285 // Whether Easy Unlock is enabled.
1286 extern const char kEasyUnlockEnabled[] = "easy_unlock.enabled";
1288 // Whether to show the Easy Unlock first run tutorial.
1289 extern const char kEasyUnlockShowTutorial[] = "easy_unlock.show_tutorial";
1291 // Preference storing Easy Unlock pairing data.
1292 extern const char kEasyUnlockPairing[] = "easy_unlock.pairing";
1294 // *************** LOCAL STATE ***************
1295 // These are attached to the machine/installation
1297 // A pref to configure networks device-wide. Its value must be a list of
1298 // NetworkConfigurations according to the OpenNetworkConfiguration
1299 // specification.
1300 // Currently, this pref is only used to store the policy. The user's
1301 // configuration is still stored in Shill.
1302 const char kDeviceOpenNetworkConfiguration[] = "device_onc";
1304 // Directory of the last profile used.
1305 const char kProfileLastUsed[] = "profile.last_used";
1307 // List of directories of the profiles last active.
1308 const char kProfilesLastActive[] = "profile.last_active_profiles";
1310 // Total number of profiles created for this Chrome build. Used to tag profile
1311 // directories.
1312 const char kProfilesNumCreated[] = "profile.profiles_created";
1314 // String containing the version of Chrome that the profile was created by.
1315 // If profile was created before this feature was added, this pref will default
1316 // to "1.0.0.0".
1317 const char kProfileCreatedByVersion[] = "profile.created_by_version";
1319 // A map of profile data directory to cached information. This cache can be
1320 // used to display information about profiles without actually having to load
1321 // them.
1322 const char kProfileInfoCache[] = "profile.info_cache";
1324 // Prefs for SSLConfigServicePref.
1325 const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
1326 const char kCertRevocationCheckingRequiredLocalAnchors[] =
1327 "ssl.rev_checking.required_for_local_anchors";
1328 const char kSSLVersionMin[] = "ssl.version_min";
1329 const char kSSLVersionMax[] = "ssl.version_max";
1330 const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
1331 const char kEnableOriginBoundCerts[] = "ssl.origin_bound_certs.enabled";
1332 const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
1334 // A boolean pref of the EULA accepted flag.
1335 const char kEulaAccepted[] = "EulaAccepted";
1337 // The metrics client GUID, entropy source and session ID.
1338 // Note: The names client_id2 and low_entropy_source2 are a result of creating
1339 // new prefs to do a one-time reset of the previous values.
1340 const char kMetricsClientID[] = "user_experience_metrics.client_id2";
1341 const char kMetricsSessionID[] = "user_experience_metrics.session_id";
1342 const char kMetricsLowEntropySource[] =
1343 "user_experience_metrics.low_entropy_source2";
1344 const char kMetricsPermutedEntropyCache[] =
1345 "user_experience_metrics.permuted_entropy_cache";
1347 // Old client id and low entropy source values, cleared the first time this
1348 // version is launched.
1349 // TODO(asvitkine): Delete these after a few releases have gone by and old
1350 // values have been cleaned up. http://crbug.com/357704
1351 const char kMetricsOldClientID[] = "user_experience_metrics.client_id";
1352 const char kMetricsOldLowEntropySource[] =
1353 "user_experience_metrics.low_entropy_source";
1355 // Boolean that specifies whether or not crash reporting and metrics reporting
1356 // are sent over the network for analysis.
1357 const char kMetricsReportingEnabled[] =
1358 "user_experience_metrics.reporting_enabled";
1359 // Date/time when the user opted in to UMA and generated the client id for the
1360 // very first time (local machine time, stored as a 64-bit time_t value).
1361 const char kMetricsReportingEnabledTimestamp[] =
1362 "user_experience_metrics.client_id_timestamp";
1364 // A machine ID used to detect when underlying hardware changes. It is only
1365 // stored locally and never transmitted in metrics reports.
1366 const char kMetricsMachineId[] = "user_experience_metrics.machine_id";
1368 // Boolean that indicates a cloned install has been detected and the metrics
1369 // client id and low entropy source should be reset.
1370 const char kMetricsResetIds[] =
1371 "user_experience_metrics.reset_metrics_ids";
1373 // Boolean that specifies whether or not crash reports are sent
1374 // over the network for analysis.
1375 #if defined(OS_ANDROID)
1376 const char kCrashReportingEnabled[] =
1377 "user_experience_metrics_crash.reporting_enabled";
1378 #endif
1380 // Array of strings that are each UMA logs that were supposed to be sent in the
1381 // first minute of a browser session. These logs include things like crash count
1382 // info, etc.
1383 const char kMetricsInitialLogs[] =
1384 "user_experience_metrics.initial_logs_as_protobufs";
1386 // Array of strings that are each UMA logs that were not sent because the
1387 // browser terminated before these accumulated metrics could be sent. These
1388 // logs typically include histograms and memory reports, as well as ongoing
1389 // user activities.
1390 const char kMetricsOngoingLogs[] =
1391 "user_experience_metrics.ongoing_logs_as_protobufs";
1393 // 64-bit integer serialization of the base::Time from the last successful seed
1394 // fetch (i.e. when the Variations server responds with 200 or 304).
1395 const char kVariationsLastFetchTime[] = "variations_last_fetch_time";
1397 // String for the restrict parameter to be appended to the variations URL.
1398 const char kVariationsRestrictParameter[] = "variations_restrict_parameter";
1400 // String serialized form of variations seed protobuf.
1401 const char kVariationsSeed[] = "variations_seed";
1403 // 64-bit integer serialization of the base::Time from the last seed received.
1404 const char kVariationsSeedDate[] = "variations_seed_date";
1406 // SHA-1 hash of the serialized variations seed data (hex encoded).
1407 const char kVariationsSeedHash[] = "variations_seed_hash";
1409 // Digital signature of the binary variations seed data, base64-encoded.
1410 const char kVariationsSeedSignature[] = "variations_seed_signature";
1412 // An enum value to indicate the execution phase the browser was in.
1413 const char kStabilityExecutionPhase[] =
1414 "user_experience_metrics.stability.execution_phase";
1416 // True if the previous run of the program exited cleanly.
1417 const char kStabilityExitedCleanly[] =
1418 "user_experience_metrics.stability.exited_cleanly";
1420 // Version string of previous run, which is used to assure that stability
1421 // metrics reported under current version reflect stability of the same version.
1422 const char kStabilityStatsVersion[] =
1423 "user_experience_metrics.stability.stats_version";
1425 // Build time, in seconds since an epoch, which is used to assure that stability
1426 // metrics reported reflect stability of the same build.
1427 const char kStabilityStatsBuildTime[] =
1428 "user_experience_metrics.stability.stats_buildtime";
1430 // False if we received a session end and either we crashed during processing
1431 // the session end or ran out of time and windows terminated us.
1432 const char kStabilitySessionEndCompleted[] =
1433 "user_experience_metrics.stability.session_end_completed";
1435 // Number of times the application was launched since last report.
1436 const char kStabilityLaunchCount[] =
1437 "user_experience_metrics.stability.launch_count";
1439 // Number of times the application exited uncleanly since the last report.
1440 const char kStabilityCrashCount[] =
1441 "user_experience_metrics.stability.crash_count";
1443 // Number of times the session end did not complete.
1444 const char kStabilityIncompleteSessionEndCount[] =
1445 "user_experience_metrics.stability.incomplete_session_end_count";
1447 // Number of times a page load event occurred since the last report.
1448 const char kStabilityPageLoadCount[] =
1449 "user_experience_metrics.stability.page_load_count";
1451 // Base64 encoded serialized UMA system profile proto from the previous session.
1452 const char kStabilitySavedSystemProfile[] =
1453 "user_experience_metrics.stability.saved_system_profile";
1455 // SHA-1 hash of the serialized UMA system profile proto (hex encoded).
1456 const char kStabilitySavedSystemProfileHash[] =
1457 "user_experience_metrics.stability.saved_system_profile_hash";
1459 // Number of times a renderer process crashed since the last report.
1460 const char kStabilityRendererCrashCount[] =
1461 "user_experience_metrics.stability.renderer_crash_count";
1463 // Number of times an extension renderer process crashed since the last report.
1464 const char kStabilityExtensionRendererCrashCount[] =
1465 "user_experience_metrics.stability.extension_renderer_crash_count";
1467 // Time when the app was last launched, in seconds since the epoch.
1468 const char kStabilityLaunchTimeSec[] =
1469 "user_experience_metrics.stability.launch_time_sec";
1471 // Time when the app was last known to be running, in seconds since
1472 // the epoch.
1473 const char kStabilityLastTimestampSec[] =
1474 "user_experience_metrics.stability.last_timestamp_sec";
1476 // This is the location of a list of dictionaries of plugin stability stats.
1477 const char kStabilityPluginStats[] =
1478 "user_experience_metrics.stability.plugin_stats2";
1480 // Number of times the renderer has become non-responsive since the last
1481 // report.
1482 const char kStabilityRendererHangCount[] =
1483 "user_experience_metrics.stability.renderer_hang_count";
1485 // Total number of child process crashes (other than renderer / extension
1486 // renderer ones, and plugin children, which are counted separately) since the
1487 // last report.
1488 const char kStabilityChildProcessCrashCount[] =
1489 "user_experience_metrics.stability.child_process_crash_count";
1491 // On Chrome OS, total number of non-Chrome user process crashes
1492 // since the last report.
1493 const char kStabilityOtherUserCrashCount[] =
1494 "user_experience_metrics.stability.other_user_crash_count";
1496 // On Chrome OS, total number of kernel crashes since the last report.
1497 const char kStabilityKernelCrashCount[] =
1498 "user_experience_metrics.stability.kernel_crash_count";
1500 // On Chrome OS, total number of unclean system shutdowns since the
1501 // last report.
1502 const char kStabilitySystemUncleanShutdownCount[] =
1503 "user_experience_metrics.stability.system_unclean_shutdowns";
1505 #if defined(OS_ANDROID)
1506 // Activity type that is currently in the foreground for the UMA session.
1507 // Uses the ActivityTypeIds::Type enum.
1508 const char kStabilityForegroundActivityType[] =
1509 "user_experience_metrics.stability.current_foreground_activity_type";
1511 // Tracks which Activities were launched during the last session.
1512 // See |metrics_service_android.cc| for its usage.
1513 const char kStabilityLaunchedActivityFlags[] =
1514 "user_experience_metrics.stability.launched_activity_flags";
1516 // List pref: Counts how many times each Activity was launched.
1517 // Indexed into by ActivityTypeIds::Type.
1518 const char kStabilityLaunchedActivityCounts[] =
1519 "user_experience_metrics.stability.launched_activity_counts";
1521 // List pref: Counts how many times each Activity type was in the foreground
1522 // when a UMA session failed to be shut down properly.
1523 // Indexed into by ActivityTypeIds::Type.
1524 const char kStabilityCrashedActivityCounts[] =
1525 "user_experience_metrics.stability.crashed_activity_counts";
1526 #endif
1528 // Number of times the browser has been able to register crash reporting.
1529 const char kStabilityBreakpadRegistrationSuccess[] =
1530 "user_experience_metrics.stability.breakpad_registration_ok";
1532 // Number of times the browser has failed to register crash reporting.
1533 const char kStabilityBreakpadRegistrationFail[] =
1534 "user_experience_metrics.stability.breakpad_registration_fail";
1536 // Number of times the browser has been run under a debugger.
1537 const char kStabilityDebuggerPresent[] =
1538 "user_experience_metrics.stability.debugger_present";
1540 // Number of times the browser has not been run under a debugger.
1541 const char kStabilityDebuggerNotPresent[] =
1542 "user_experience_metrics.stability.debugger_not_present";
1544 // The keys below are used for the dictionaries in the
1545 // kStabilityPluginStats list.
1546 const char kStabilityPluginName[] = "name";
1547 const char kStabilityPluginLaunches[] = "launches";
1548 const char kStabilityPluginInstances[] = "instances";
1549 const char kStabilityPluginCrashes[] = "crashes";
1550 const char kStabilityPluginLoadingErrors[] = "loading_errors";
1552 // The keys below are strictly increasing counters over the lifetime of
1553 // a chrome installation. They are (optionally) sent up to the uninstall
1554 // survey in the event of uninstallation. The installation date is used by some
1555 // opt-in services such as Wallet and UMA.
1556 const char kInstallDate[] = "uninstall_metrics.installation_date2";
1557 const char kUninstallMetricsPageLoadCount[] =
1558 "uninstall_metrics.page_load_count";
1559 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count";
1560 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec";
1561 const char kUninstallLastLaunchTimeSec[] =
1562 "uninstall_metrics.last_launch_time_sec";
1563 const char kUninstallLastObservedRunTimeSec[] =
1564 "uninstall_metrics.last_observed_running_time_sec";
1566 // String containing the version of Chrome for which Chrome will not prompt the
1567 // user about setting Chrome as the default browser.
1568 const char kBrowserSuppressDefaultBrowserPrompt[] =
1569 "browser.suppress_default_browser_prompt_for_version";
1571 // A collection of position, size, and other data relating to the browser
1572 // window to restore on startup.
1573 const char kBrowserWindowPlacement[] = "browser.window_placement";
1575 // Browser window placement for popup windows.
1576 const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup";
1578 // A collection of position, size, and other data relating to the task
1579 // manager window to restore on startup.
1580 const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
1582 // A collection of position, size, and other data relating to the keyword
1583 // editor window to restore on startup.
1584 const char kKeywordEditorWindowPlacement[] = "keyword_editor.window_placement";
1586 // A collection of position, size, and other data relating to the preferences
1587 // window to restore on startup.
1588 const char kPreferencesWindowPlacement[] = "preferences.window_placement";
1590 // An integer specifying the total number of bytes to be used by the
1591 // renderer's in-memory cache of objects.
1592 const char kMemoryCacheSize[] = "renderer.memory_cache.size";
1594 // String which specifies where to download files to by default.
1595 const char kDownloadDefaultDirectory[] = "download.default_directory";
1597 // Boolean that records if the download directory was changed by an
1598 // upgrade a unsafe location to a safe location.
1599 const char kDownloadDirUpgraded[] = "download.directory_upgrade";
1601 // String which specifies where to save html files to by default.
1602 const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
1604 // The type used to save the page. See the enum SavePackage::SavePackageType in
1605 // the chrome/browser/download/save_package.h for the possible values.
1606 const char kSaveFileType[] = "savefile.type";
1608 // String which specifies the last directory that was chosen for uploading
1609 // or opening a file.
1610 const char kSelectFileLastDirectory[] = "selectfile.last_directory";
1612 // Boolean that specifies if file selection dialogs are shown.
1613 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
1615 // Map of default tasks, associated by MIME type.
1616 const char kDefaultTasksByMimeType[] =
1617 "filebrowser.tasks.default_by_mime_type";
1619 // Map of default tasks, associated by file suffix.
1620 const char kDefaultTasksBySuffix[] =
1621 "filebrowser.tasks.default_by_suffix";
1623 // Extensions which should be opened upon completion.
1624 const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
1626 // Integer which specifies the frequency in milliseconds for detecting whether
1627 // plugin windows are hung.
1628 const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
1630 // Integer which specifies the timeout value to be used for SendMessageTimeout
1631 // to detect a hung plugin window.
1632 const char kPluginMessageResponseTimeout[] =
1633 "browser.plugin_message_response_timeout";
1635 // String which represents the dictionary name for our spell-checker.
1636 const char kSpellCheckDictionary[] = "spellcheck.dictionary";
1638 // String which represents whether we use the spelling service.
1639 const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
1641 // Dictionary of schemes used by the external protocol handler.
1642 // The value is true if the scheme must be ignored.
1643 const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
1645 // Keys used for MAC handling of SafeBrowsing requests.
1646 const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
1647 const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
1649 // Integer that specifies the index of the tab the user was on when they
1650 // last visited the options window.
1651 const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
1653 // Integer that specifies the index of the tab the user was on when they
1654 // last visited the content settings window.
1655 const char kContentSettingsWindowLastTabIndex[] =
1656 "content_settings_window.last_tab_index";
1658 // Integer that specifies the index of the tab the user was on when they
1659 // last visited the Certificate Manager window.
1660 const char kCertificateManagerWindowLastTabIndex[] =
1661 "certificate_manager_window.last_tab_index";
1663 // Integer that specifies if the first run bubble should be shown.
1664 // This preference is only registered by the first-run procedure.
1665 const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
1667 // String containing the last known Google URL. We re-detect this on startup in
1668 // most cases, and use it to send traffic to the correct Google host or with the
1669 // correct Google domain/country code for whatever location the user is in.
1670 const char kLastKnownGoogleURL[] = "browser.last_known_google_url";
1672 // String containing the last prompted Google URL to the user.
1673 // If the user is using .x TLD for Google URL and gets prompted about .y TLD
1674 // for Google URL, and says "no", we should leave the search engine set to .x
1675 // but not prompt again until the domain changes away from .y.
1676 const char kLastPromptedGoogleURL[] = "browser.last_prompted_google_url";
1678 // String containing the last known intranet redirect URL, if any. See
1679 // intranet_redirect_detector.h for more information.
1680 const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
1682 // Integer containing the system Country ID the first time we checked the
1683 // template URL prepopulate data. This is used to avoid adding a whole bunch of
1684 // new search engine choices if prepopulation runs when the user's Country ID
1685 // differs from their previous Country ID. This pref does not exist until
1686 // prepopulation has been run at least once.
1687 const char kCountryIDAtInstall[] = "countryid_at_install";
1688 // OBSOLETE. Same as above, but uses the Windows-specific GeoID value instead.
1689 // Updated if found to the above key.
1690 const char kGeoIDAtInstall[] = "geoid_at_install";
1692 // An enum value of how the browser was shut down (see browser_shutdown.h).
1693 const char kShutdownType[] = "shutdown.type";
1694 // Number of processes that were open when the user shut down.
1695 const char kShutdownNumProcesses[] = "shutdown.num_processes";
1696 // Number of processes that were shut down using the slow path.
1697 const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
1699 // Whether to restart the current Chrome session automatically as the last thing
1700 // before shutting everything down.
1701 const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
1703 // Set before autorestarting Chrome, cleared on clean exit.
1704 const char kWasRestarted[] = "was.restarted";
1706 #if defined(OS_WIN)
1707 // Preference to be used while relaunching Chrome. This preference dictates if
1708 // Chrome should be launched in Metro or Desktop mode.
1709 // For more info take a look at ChromeRelaunchMode enum.
1710 const char kRelaunchMode[] = "relaunch.mode";
1711 #endif
1713 // Placeholder preference for disabling voice / video chat if it is ever added.
1714 // Currently, this does not change any behavior.
1715 const char kDisableVideoAndChat[] = "disable_video_chat";
1717 // Whether Extensions are enabled.
1718 const char kDisableExtensions[] = "extensions.disabled";
1720 // Whether the plugin finder that lets you install missing plug-ins is enabled.
1721 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
1723 // Customized app page names that appear on the New Tab Page.
1724 const char kNtpAppPageNames[] = "ntp.app_page_names";
1726 // Keeps track of which sessions are collapsed in the Other Devices menu.
1727 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
1729 // Keeps track of recently closed tabs collapsed state in the Other Devices
1730 // menu.
1731 const char kNtpCollapsedRecentlyClosedTabs[] =
1732 "ntp.collapsed_recently_closed_tabs";
1734 // Keeps track of snapshot documents collapsed state in the Other Devices menu.
1735 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document";
1737 // Keeps track of sync promo collapsed state in the Other Devices menu.
1738 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo";
1740 // Serves dates to determine display of elements on the NTP.
1741 const char kNtpDateResourceServer[] = "ntp.date_resource_server";
1743 // New Tab Page URLs that should not be shown as most visited thumbnails.
1744 const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
1746 // True if a desktop sync session was found for this user.
1747 const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found";
1749 // Last time of update of promo_resource_cache.
1750 const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update";
1752 // Which bookmarks folder should be visible on the new tab page v4.
1753 const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
1755 // Which page should be visible on the new tab page v4
1756 const char kNtpShownPage[] = "ntp.shown_page";
1758 // Serves tips for the NTP.
1759 const char kNtpTipsResourceServer[] = "ntp.tips_resource_server";
1761 // Boolean indicating whether the web store is active for the current locale.
1762 const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled";
1764 // A private RSA key for ADB handshake.
1765 const char kDevToolsAdbKey[] = "devtools.adb_key";
1767 const char kDevToolsDisabled[] = "devtools.disabled";
1769 // Determines whether devtools should be discovering usb devices for
1770 // remote debugging at chrome://inspect.
1771 const char kDevToolsDiscoverUsbDevicesEnabled[] =
1772 "devtools.discover_usb_devices";
1774 // Maps of files edited locally using DevTools.
1775 const char kDevToolsEditedFiles[] = "devtools.edited_files";
1777 // List of file system paths added in DevTools.
1778 const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths";
1780 // A boolean specifying whether dev tools window should be opened docked.
1781 const char kDevToolsOpenDocked[] = "devtools.open_docked";
1783 // A boolean specifying whether port forwarding should be enabled.
1784 const char kDevToolsPortForwardingEnabled[] =
1785 "devtools.port_forwarding_enabled";
1787 // A boolean specifying whether default port forwarding configuration has been
1788 // set.
1789 const char kDevToolsPortForwardingDefaultSet[] =
1790 "devtools.port_forwarding_default_set";
1792 // A dictionary of port->location pairs for port forwarding.
1793 const char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config";
1795 #if defined(OS_ANDROID)
1796 // A boolean specifying whether remote dev tools debugging is enabled.
1797 const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
1798 #endif
1800 // An ID to uniquely identify this client to the invalidator service.
1801 const char kInvalidatorClientId[] = "invalidator.client_id";
1803 // Opaque state from the invalidation subsystem that is persisted via prefs.
1804 // The value is base 64 encoded.
1805 const char kInvalidatorInvalidationState[] = "invalidator.invalidation_state";
1807 // List of received invalidations that have not been acted on by any clients
1808 // yet. Used to keep invalidation clients in sync in case of a restart.
1809 const char kInvalidatorSavedInvalidations[] = "invalidator.saved_invalidations";
1811 // Boolean indicating that TiclInvalidationService should use GCM channel.
1812 // False or lack of settings means XMPPPushClient channel.
1813 const char kInvalidationServiceUseGCMChannel[] =
1814 "invalidation_service.use_gcm_channel";
1816 // Local hash of authentication password, used for off-line authentication
1817 // when on-line authentication is not available.
1818 const char kGoogleServicesPasswordHash[] = "google.services.password_hash";
1820 #if !defined(OS_ANDROID)
1821 // Tracks the number of times that we have shown the sign in promo at startup.
1822 const char kSignInPromoStartupCount[] = "sync_promo.startup_count";
1824 // Boolean tracking whether the user chose to skip the sign in promo.
1825 const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped";
1827 // Boolean that specifies if the sign in promo is allowed to show on first run.
1828 // This preference is specified in the master preference file to suppress the
1829 // sign in promo for some installations.
1830 const char kSignInPromoShowOnFirstRunAllowed[] =
1831 "sync_promo.show_on_first_run_allowed";
1833 // Boolean that specifies if we should show a bubble in the new tab page.
1834 // The bubble is used to confirm that the user is signed into sync.
1835 const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
1836 #endif
1838 // Create web application shortcut dialog preferences.
1839 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
1840 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
1841 const char kWebAppCreateInQuickLaunchBar[] =
1842 "browser.web_app.create_in_quick_launch_bar";
1844 // Dictionary that maps Geolocation network provider server URLs to
1845 // corresponding access token.
1846 const char kGeolocationAccessToken[] = "geolocation.access_token";
1848 // Boolean that indicates whether to allow firewall traversal while trying to
1849 // establish the initial connection from the client or host.
1850 const char kRemoteAccessHostFirewallTraversal[] =
1851 "remote_access.host_firewall_traversal";
1853 // Boolean controlling whether 2-factor auth should be required when connecting
1854 // to a host (instead of a PIN).
1855 const char kRemoteAccessHostRequireTwoFactor[] =
1856 "remote_access.host_require_two_factor";
1858 // String containing the domain name that hosts must belong to. If blank, then
1859 // hosts can belong to any domain.
1860 const char kRemoteAccessHostDomain[] = "remote_access.host_domain";
1862 // String containing the domain name of the Chromoting Directory.
1863 // Used by Chromoting host and client.
1864 const char kRemoteAccessHostTalkGadgetPrefix[] =
1865 "remote_access.host_talkgadget_prefix";
1867 // Boolean controlling whether curtaining is required when connecting to a host.
1868 const char kRemoteAccessHostRequireCurtain[] =
1869 "remote_access.host_require_curtain";
1871 // Boolean controlling whether curtaining is required when connecting to a host.
1872 const char kRemoteAccessHostAllowClientPairing[] =
1873 "remote_access.host_allow_client_pairing";
1875 // Whether Chrome Remote Desktop can proxy gnubby authentication traffic.
1876 const char kRemoteAccessHostAllowGnubbyAuth[] =
1877 "remote_access.host_allow_gnubby_auth";
1879 // The last used printer and its settings.
1880 const char kPrintPreviewStickySettings[] =
1881 "printing.print_preview_sticky_settings";
1882 // The root URL of the cloud print service.
1883 const char kCloudPrintServiceURL[] = "cloud_print.service_url";
1885 // The URL to use to sign in to cloud print.
1886 const char kCloudPrintSigninURL[] = "cloud_print.signin_url";
1888 // The last requested size of the dialog as it was closed.
1889 const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
1890 const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
1891 const char kCloudPrintSigninDialogWidth[] =
1892 "cloud_print.signin_dialog_size.width";
1893 const char kCloudPrintSigninDialogHeight[] =
1894 "cloud_print.signin_dialog_size.height";
1896 // The list of BackgroundContents that should be loaded when the browser
1897 // launches.
1898 const char kRegisteredBackgroundContents[] = "background_contents.registered";
1900 #if !defined(OS_ANDROID)
1901 // An int that stores how often we've shown the "Chrome is configured to
1902 // auto-launch" infobar.
1903 const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
1904 #endif
1906 // String that lists supported HTTP authentication schemes.
1907 const char kAuthSchemes[] = "auth.schemes";
1909 // Boolean that specifies whether to disable CNAME lookups when generating
1910 // Kerberos SPN.
1911 const char kDisableAuthNegotiateCnameLookup[] =
1912 "auth.disable_negotiate_cname_lookup";
1914 // Boolean that specifies whether to include the port in a generated Kerberos
1915 // SPN.
1916 const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
1918 // Whitelist containing servers for which Integrated Authentication is enabled.
1919 const char kAuthServerWhitelist[] = "auth.server_whitelist";
1921 // Whitelist containing servers Chrome is allowed to do Kerberos delegation
1922 // with.
1923 const char kAuthNegotiateDelegateWhitelist[] =
1924 "auth.negotiate_delegate_whitelist";
1926 // String that specifies the name of a custom GSSAPI library to load.
1927 const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
1929 // Boolean that specifies whether to allow basic auth prompting on cross-
1930 // domain sub-content requests.
1931 const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
1933 // Boolean that specifies whether the built-in asynchronous DNS client is used.
1934 const char kBuiltInDnsClientEnabled[] = "async_dns.enabled";
1936 // A pref holding the value of the policy used to explicitly allow or deny
1937 // access to audio capture devices. When enabled or not set, the user is
1938 // prompted for device access. When disabled, access to audio capture devices
1939 // is not allowed and no prompt will be shown.
1940 // See also kAudioCaptureAllowedUrls.
1941 const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
1942 // Holds URL patterns that specify URLs that will be granted access to audio
1943 // capture devices without prompt. NOTE: This whitelist is currently only
1944 // supported when running in kiosk mode.
1945 // TODO(tommi): Update comment when this is supported for all modes.
1946 const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
1948 // A pref holding the value of the policy used to explicitly allow or deny
1949 // access to video capture devices. When enabled or not set, the user is
1950 // prompted for device access. When disabled, access to video capture devices
1951 // is not allowed and no prompt will be shown.
1952 const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
1953 // Holds URL patterns that specify URLs that will be granted access to video
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 kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
1959 // A boolean pref that controls the enabled-state of hotword search voice
1960 // trigger.
1961 const char kHotwordSearchEnabled[] = "hotword.search_enabled_2";
1963 // An integer pref that keeps track of how many times the opt in popup for
1964 // hotword void search has been shown to the user. After this pref has reached
1965 // the maximum number of times as defined by the HotwordService, the popup is no
1966 // longer shown.
1967 const char kHotwordOptInPopupTimesShown[] = "hotword.opt_in_popup_times_shown";
1969 // A boolean pref that controls whether the sound of "Ok, Google" plus a few
1970 // seconds of audio data before is sent back to improve voice search.
1971 const char kHotwordAudioLoggingEnabled[] = "hotword.audio_logging_enabled";
1973 #if defined(OS_ANDROID)
1974 // Boolean that controls the global enabled-state of protected media identifier.
1975 const char kProtectedMediaIdentifierEnabled[] =
1976 "protected_media_identifier.enabled";
1977 #endif
1979 #if defined(OS_CHROMEOS)
1980 // Dictionary for transient storage of settings that should go into device
1981 // settings storage before owner has been assigned.
1982 const char kDeviceSettingsCache[] = "signed_settings_cache";
1984 // The hardware keyboard layout of the device. This should look like
1985 // "xkb:us::eng".
1986 const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
1988 // An integer pref which shows number of times carrier deal promo
1989 // notification has been shown to user.
1990 const char kCarrierDealPromoShown[] =
1991 "settings.internet.mobile.carrier_deal_promo_shown";
1993 // A boolean pref of the auto-enrollment decision. Its value is only valid if
1994 // it's not the default value; otherwise, no auto-enrollment decision has been
1995 // made yet.
1996 const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
1998 // An integer pref with the maximum number of bits used by the client in a
1999 // previous auto-enrollment request. If the client goes through an auto update
2000 // during OOBE and reboots into a version of the OS with a larger maximum
2001 // modulus, then it will retry auto-enrollment using the updated value.
2002 const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
2004 // The local state pref that stores device activity times before reporting
2005 // them to the policy server.
2006 const char kDeviceActivityTimes[] = "device_status.activity_times";
2008 // A pref holding the last known location when device location reporting is
2009 // enabled.
2010 const char kDeviceLocation[] = "device_status.location";
2012 // A pref holding the value of the policy used to disable mounting of external
2013 // storage for the user.
2014 const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
2016 // A pref holding the value of the policy used to disable playing audio on
2017 // ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite
2018 // it, therefore when the policy is lifted the original mute state is restored.
2019 const char kAudioOutputAllowed[] = "hardware.audio_output_enabled";
2021 // A dictionary that maps usernames to wallpaper properties.
2022 const char kUsersWallpaperInfo[] = "user_wallpaper_info";
2024 // Copy of owner swap mouse buttons option to use on login screen.
2025 const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
2027 // Copy of owner tap-to-click option to use on login screen.
2028 const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
2030 // The length of device uptime after which an automatic reboot is scheduled,
2031 // expressed in seconds.
2032 const char kUptimeLimit[] = "automatic_reboot.uptime_limit";
2034 // Whether an automatic reboot should be scheduled when an update has been
2035 // applied and a reboot is required to complete the update process.
2036 const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update";
2038 // An any-api scoped refresh token for enterprise-enrolled devices. Allows
2039 // for connection to Google APIs when the user isn't logged in. Currently used
2040 // for for getting a cloudprint scoped token to allow printing in Guest mode,
2041 // Public Accounts and kiosks.
2042 const char kDeviceRobotAnyApiRefreshToken[] =
2043 "device_robot_refresh_token.any-api";
2045 // Device requisition for enterprise enrollment.
2046 const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition";
2048 // Whether to automatically start the enterprise enrollment step during OOBE.
2049 const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start";
2051 // Whether the user may exit enrollment.
2052 const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit";
2054 // Dictionary of per-user Least Recently Used input method (used at login
2055 // screen).
2056 extern const char kUsersLRUInputMethod[] = "UsersLRUInputMethod";
2058 // A dictionary pref of the echo offer check flag. It sets offer info when
2059 // an offer is checked.
2060 extern const char kEchoCheckedOffers[] = "EchoCheckedOffers";
2062 // Key name of a dictionary in local state to store cached multiprofle user
2063 // behavior policy value.
2064 const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior";
2066 // A string pref with initial locale set in VPD or manifest.
2067 const char kInitialLocale[] = "intl.initial_locale";
2069 // A boolean pref of the OOBE complete flag (first OOBE part before login).
2070 const char kOobeComplete[] = "OobeComplete";
2072 // A boolean pref of the device registered flag (second part after first login).
2073 const char kDeviceRegistered[] = "DeviceRegistered";
2075 // List of usernames that used certificates pushed by policy before.
2076 // This is used to prevent these users from joining multiprofile sessions.
2077 const char kUsedPolicyCertificates[] = "policy.used_policy_certificates";
2079 // A dictionary containing server-provided device state pulled form the cloud
2080 // after recovery.
2081 const char kServerBackedDeviceState[] = "server_backed_device_state";
2083 #endif
2085 // Whether there is a Flash version installed that supports clearing LSO data.
2086 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
2088 // Whether we should show Pepper Flash-specific settings.
2089 const char kPepperFlashSettingsEnabled[] =
2090 "browser.pepper_flash_settings_enabled";
2092 // String which specifies where to store the disk cache.
2093 const char kDiskCacheDir[] = "browser.disk_cache_dir";
2094 // Pref name for the policy specifying the maximal cache size.
2095 const char kDiskCacheSize[] = "browser.disk_cache_size";
2096 // Pref name for the policy specifying the maximal media cache size.
2097 const char kMediaCacheSize[] = "browser.media_cache_size";
2099 // Specifies the release channel that the device should be locked to.
2100 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an
2101 // empty string, in which case the value will be ignored.
2102 // TODO(dubroy): This preference may not be necessary once
2103 // http://crosbug.com/17015 is implemented and the update engine can just
2104 // fetch the correct value from the policy.
2105 const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
2107 const char kPerformanceTracingEnabled[] =
2108 "feedback.performance_tracing_enabled";
2110 // Value of the enums in TabStrip::LayoutType as an int.
2111 const char kTabStripLayoutType[] = "tab_strip_layout_type";
2113 // Indicates that factory reset was requested from options page or reset screen.
2114 const char kFactoryResetRequested[] = "FactoryResetRequested";
2116 // Indicates that rollback was requested alongside with factory reset.
2117 // Makes sense only if kFactoryResetRequested is true.
2118 const char kRollbackRequested[] = "RollbackRequested";
2120 // Boolean recording whether we have showed a balloon that calls out the message
2121 // center for desktop notifications.
2122 const char kMessageCenterShowedFirstRunBalloon[] =
2123 "message_center.showed_first_run_balloon";
2125 // *************** SERVICE PREFS ***************
2126 // These are attached to the service process.
2128 const char kCloudPrintRoot[] = "cloud_print";
2129 const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
2130 // The unique id for this instance of the cloud print proxy.
2131 const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
2132 // The GAIA auth token for Cloud Print
2133 const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
2134 // The GAIA auth token used by Cloud Print to authenticate with the XMPP server
2135 // This should eventually go away because the above token should work for both.
2136 const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token";
2137 // The email address of the account used to authenticate with the Cloud Print
2138 // server.
2139 const char kCloudPrintEmail[] = "cloud_print.email";
2140 // Settings specific to underlying print system.
2141 const char kCloudPrintPrintSystemSettings[] =
2142 "cloud_print.print_system_settings";
2143 // A boolean indicating whether we should poll for print jobs when don't have
2144 // an XMPP connection (false by default).
2145 const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
2146 const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
2147 const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
2148 // A boolean indicating whether we should connect to cloud print new printers.
2149 const char kCloudPrintConnectNewPrinters[] =
2150 "cloud_print.user_settings.connectNewPrinters";
2151 // A boolean indicating whether we should ping XMPP connection.
2152 const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
2153 // An int value indicating the average timeout between xmpp pings.
2154 const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
2155 // Dictionary with settings stored by connector setup page.
2156 const char kCloudPrintUserSettings[] = "cloud_print.user_settings";
2157 // List of printers settings.
2158 extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
2159 // A boolean indicating whether submitting jobs to Google Cloud Print is
2160 // blocked by policy.
2161 const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
2163 // Preference to store proxy settings.
2164 const char kProxy[] = "proxy";
2165 const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
2167 // Preferences that are exclusively used to store managed values for default
2168 // content settings.
2169 const char kManagedDefaultCookiesSetting[] =
2170 "profile.managed_default_content_settings.cookies";
2171 const char kManagedDefaultImagesSetting[] =
2172 "profile.managed_default_content_settings.images";
2173 const char kManagedDefaultJavaScriptSetting[] =
2174 "profile.managed_default_content_settings.javascript";
2175 const char kManagedDefaultPluginsSetting[] =
2176 "profile.managed_default_content_settings.plugins";
2177 const char kManagedDefaultPopupsSetting[] =
2178 "profile.managed_default_content_settings.popups";
2179 const char kManagedDefaultGeolocationSetting[] =
2180 "profile.managed_default_content_settings.geolocation";
2181 const char kManagedDefaultNotificationsSetting[] =
2182 "profile.managed_default_content_settings.notifications";
2183 const char kManagedDefaultMediaStreamSetting[] =
2184 "profile.managed_default_content_settings.media_stream";
2186 // Preferences that are exclusively used to store managed
2187 // content settings patterns.
2188 const char kManagedCookiesAllowedForUrls[] =
2189 "profile.managed_cookies_allowed_for_urls";
2190 const char kManagedCookiesBlockedForUrls[] =
2191 "profile.managed_cookies_blocked_for_urls";
2192 const char kManagedCookiesSessionOnlyForUrls[] =
2193 "profile.managed_cookies_sessiononly_for_urls";
2194 const char kManagedImagesAllowedForUrls[] =
2195 "profile.managed_images_allowed_for_urls";
2196 const char kManagedImagesBlockedForUrls[] =
2197 "profile.managed_images_blocked_for_urls";
2198 const char kManagedJavaScriptAllowedForUrls[] =
2199 "profile.managed_javascript_allowed_for_urls";
2200 const char kManagedJavaScriptBlockedForUrls[] =
2201 "profile.managed_javascript_blocked_for_urls";
2202 const char kManagedPluginsAllowedForUrls[] =
2203 "profile.managed_plugins_allowed_for_urls";
2204 const char kManagedPluginsBlockedForUrls[] =
2205 "profile.managed_plugins_blocked_for_urls";
2206 const char kManagedPopupsAllowedForUrls[] =
2207 "profile.managed_popups_allowed_for_urls";
2208 const char kManagedPopupsBlockedForUrls[] =
2209 "profile.managed_popups_blocked_for_urls";
2210 const char kManagedNotificationsAllowedForUrls[] =
2211 "profile.managed_notifications_allowed_for_urls";
2212 const char kManagedNotificationsBlockedForUrls[] =
2213 "profile.managed_notifications_blocked_for_urls";
2214 const char kManagedAutoSelectCertificateForUrls[] =
2215 "profile.managed_auto_select_certificate_for_urls";
2217 #if defined(OS_MACOSX)
2218 // Set to true if the user removed our login item so we should not create a new
2219 // one when uninstalling background apps.
2220 const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
2222 // Set to true if Chrome already created a login item, so there's no need to
2223 // create another one.
2224 const char kChromeCreatedLoginItem[] =
2225 "background_mode.chrome_created_login_item";
2227 // Set to true once we've initialized kChromeCreatedLoginItem for the first
2228 // time.
2229 const char kMigratedLoginItemPref[] =
2230 "background_mode.migrated_login_item_pref";
2231 #endif
2233 // Set to true if background mode is enabled on this browser.
2234 const char kBackgroundModeEnabled[] = "background_mode.enabled";
2236 // Set to true if hardware acceleration mode is enabled on this browser.
2237 const char kHardwareAccelerationModeEnabled[] =
2238 "hardware_acceleration_mode.enabled";
2240 // Hardware acceleration mode from previous browser launch.
2241 const char kHardwareAccelerationModePrevious[] =
2242 "hardware_acceleration_mode_previous";
2244 // List of protocol handlers.
2245 const char kRegisteredProtocolHandlers[] =
2246 "custom_handlers.registered_protocol_handlers";
2248 // List of protocol handlers the user has requested not to be asked about again.
2249 const char kIgnoredProtocolHandlers[] =
2250 "custom_handlers.ignored_protocol_handlers";
2252 // Whether user-specified handlers for protocols and content types can be
2253 // specified.
2254 const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
2256 // Integer that specifies the policy refresh rate for device-policy in
2257 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
2258 // by the cloud policy subsystem.
2259 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
2261 // String that represents the recovery component last downloaded version. This
2262 // takes the usual 'a.b.c.d' notation.
2263 const char kRecoveryComponentVersion[] = "recovery_component.version";
2265 // String that stores the component updater last known state. This is used for
2266 // troubleshooting.
2267 const char kComponentUpdaterState[] = "component_updater.state";
2269 // A boolean where true means that the browser has previously attempted to
2270 // enable autoupdate and failed, so the next out-of-date browser start should
2271 // not prompt the user to enable autoupdate, it should offer to reinstall Chrome
2272 // instead.
2273 const char kAttemptedToEnableAutoupdate[] =
2274 "browser.attempted_to_enable_autoupdate";
2276 // The next media gallery ID to assign.
2277 const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
2279 // A list of dictionaries, where each dictionary represents a known media
2280 // gallery.
2281 const char kMediaGalleriesRememberedGalleries[] =
2282 "media_galleries.remembered_galleries";
2284 // The last time a media scan completed.
2285 const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time";
2287 #if defined(USE_ASH)
2288 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
2289 // local variant is not synced and is used if set. If the local variant is not
2290 // set its value is set from the synced value (once prefs have been
2291 // synced). This gives a per-machine setting that is initialized from the last
2292 // set value.
2293 // These values are default on the machine but can be overridden by per-display
2294 // values in kShelfPreferences (unless overridden by managed policy).
2295 // String value corresponding to ash::Shell::ShelfAlignment.
2296 const char kShelfAlignment[] = "shelf_alignment";
2297 const char kShelfAlignmentLocal[] = "shelf_alignment_local";
2298 // String value corresponding to ash::Shell::ShelfAutoHideBehavior.
2299 const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
2300 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
2301 // This value stores chrome icon's index in the launcher. This should be handled
2302 // separately with app shortcut's index because of ShelfModel's backward
2303 // compatability. If we add chrome icon index to |kPinnedLauncherApps|, its
2304 // index is also stored in the |kPinnedLauncherApp| pref. It may causes
2305 // creating two chrome icons.
2306 const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index";
2307 // Dictionary value that holds per-display preference of shelf alignment and
2308 // auto-hide behavior. Key of the dictionary is the id of the display, and
2309 // its value is a dictionary whose keys are kShelfAlignment and
2310 // kShelfAutoHideBehavior.
2311 const char kShelfPreferences[] = "shelf_preferences";
2313 // Integer value in milliseconds indicating the length of time for which a
2314 // confirmation dialog should be shown when the user presses the logout button.
2315 // A value of 0 indicates that logout should happen immediately, without showing
2316 // a confirmation dialog.
2317 const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms";
2318 const char kPinnedLauncherApps[] = "pinned_launcher_apps";
2319 // Boolean value indicating whether to show a logout button in the ash tray.
2320 const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
2321 #endif
2323 #if defined(USE_AURA)
2324 // Tuning settings for gestures.
2325 const char kFlingVelocityCap[] = "gesture.fling_velocity_cap";
2326 const char kLongPressTimeInSeconds[] =
2327 "gesture.long_press_time_in_seconds";
2328 const char kMaxDistanceBetweenTapsForDoubleTap[] =
2329 "gesture.max_distance_between_taps_for_double_tap";
2330 const char kMaxDistanceForTwoFingerTapInPixels[] =
2331 "gesture.max_distance_for_two_finger_tap_in_pixels";
2332 const char kMaxSecondsBetweenDoubleClick[] =
2333 "gesture.max_seconds_between_double_click";
2334 const char kMaxSeparationForGestureTouchesInPixels[] =
2335 "gesture.max_separation_for_gesture_touches_in_pixels";
2336 const char kMaxSwipeDeviationRatio[] =
2337 "gesture.max_swipe_deviation_ratio";
2338 const char kMaxTouchDownDurationInSecondsForClick[] =
2339 "gesture.max_touch_down_duration_in_seconds_for_click";
2340 const char kMaxTouchMoveInPixelsForClick[] =
2341 "gesture.max_touch_move_in_pixels_for_click";
2342 const char kMinDistanceForPinchScrollInPixels[] =
2343 "gesture.min_distance_for_pinch_scroll_in_pixels";
2344 const char kMinFlickSpeedSquared[] =
2345 "gesture.min_flick_speed_squared";
2346 const char kMinPinchUpdateDistanceInPixels[] =
2347 "gesture.min_pinch_update_distance_in_pixels";
2348 const char kMinRailBreakVelocity[] =
2349 "gesture.min_rail_break_velocity";
2350 const char kMinScrollDeltaSquared[] =
2351 "gesture.min_scroll_delta_squared";
2352 const char kMinSwipeSpeed[] =
2353 "gesture.min_swipe_speed";
2354 const char kMinTouchDownDurationInSecondsForClick[] =
2355 "gesture.min_touch_down_duration_in_seconds_for_click";
2356 const char kPointsBufferedForVelocity[] =
2357 "gesture.points_buffered_for_velocity";
2358 const char kRailBreakProportion[] =
2359 "gesture.rail_break_proportion";
2360 const char kRailStartProportion[] =
2361 "gesture.rail_start_proportion";
2362 const char kScrollPredictionSeconds[] =
2363 "gesture.scroll_prediction_seconds";
2364 const char kSemiLongPressTimeInSeconds[] =
2365 "gesture.semi_long_press_time_in_seconds";
2366 const char kShowPressDelayInMS[] =
2367 "gesture.show_press_delay_in_ms";
2368 const char kTabScrubActivationDelayInMS[] =
2369 "gesture.tab_scrub_activation_delay_in_ms";
2370 const char kFlingAccelerationCurveCoefficient0[] =
2371 "gesture.fling_acceleration_curve_coefficient_0";
2372 const char kFlingAccelerationCurveCoefficient1[] =
2373 "gesture.fling_acceleration_curve_coefficient_1";
2374 const char kFlingAccelerationCurveCoefficient2[] =
2375 "gesture.fling_acceleration_curve_coefficient_2";
2376 const char kFlingAccelerationCurveCoefficient3[] =
2377 "gesture.fling_acceleration_curve_coefficient_3";
2378 const char kFlingCurveTouchpadAlpha[] = "flingcurve.touchpad_alpha";
2379 const char kFlingCurveTouchpadBeta[] = "flingcurve.touchpad_beta";
2380 const char kFlingCurveTouchpadGamma[] = "flingcurve.touchpad_gamma";
2381 const char kFlingCurveTouchscreenAlpha[] = "flingcurve.touchscreen_alpha";
2382 const char kFlingCurveTouchscreenBeta[] = "flingcurve.touchscreen_beta";
2383 const char kFlingCurveTouchscreenGamma[] = "flingcurve.touchscreen_gamma";
2384 const char kFlingMaxCancelToDownTimeInMs[] =
2385 "gesture.fling_max_cancel_to_down_time_in_ms";
2386 const char kFlingMaxTapGapTimeInMs[] =
2387 "gesture.fling_max_tap_gap_time_in_ms";
2388 const char kOverscrollHorizontalThresholdComplete[] =
2389 "overscroll.horizontal_threshold_complete";
2390 const char kOverscrollVerticalThresholdComplete[] =
2391 "overscroll.vertical_threshold_complete";
2392 const char kOverscrollMinimumThresholdStart[] =
2393 "overscroll.minimum_threshold_start";
2394 const char kOverscrollMinimumThresholdStartTouchpad[] =
2395 "overscroll.minimum_threshold_start_touchpad";
2396 const char kOverscrollVerticalThresholdStart[] =
2397 "overscroll.vertical_threshold_start";
2398 const char kOverscrollHorizontalResistThreshold[] =
2399 "overscroll.horizontal_resist_threshold";
2400 const char kOverscrollVerticalResistThreshold[] =
2401 "overscroll.vertical_resist_threshold";
2402 #endif
2404 // Counts how many more times the 'profile on a network share' warning should be
2405 // shown to the user before the next silence period.
2406 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
2407 // Tracks the time of the last shown warning. Used to reset
2408 // |network_profile.warnings_left| after a silence period.
2409 const char kNetworkProfileLastWarningTime[] =
2410 "network_profile.last_warning_time";
2412 #if defined(OS_CHROMEOS)
2413 // The RLZ brand code, if enabled.
2414 const char kRLZBrand[] = "rlz.brand";
2415 // Whether RLZ pings are disabled.
2416 const char kRLZDisabled[] = "rlz.disabled";
2417 #endif
2419 #if defined(ENABLE_APP_LIST)
2420 // The directory in user data dir that contains the profile to be used with the
2421 // app launcher.
2422 const char kAppListProfile[] = "app_list.profile";
2424 // The number of times the app launcher was launched since last ping and
2425 // the time of the last ping.
2426 const char kAppListLaunchCount[] = "app_list.launch_count";
2427 const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
2429 // The number of times the an app was launched from the app launcher since last
2430 // ping and the time of the last ping.
2431 const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
2432 const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
2434 // A boolean that tracks whether the user has ever enabled the app launcher.
2435 const char kAppLauncherHasBeenEnabled[] =
2436 "apps.app_launcher.has_been_enabled";
2438 // An enum indicating how the app launcher was enabled. E.g., via webstore, app
2439 // install, command line, etc. For UMA.
2440 const char kAppListEnableMethod[] = "app_list.how_enabled";
2442 // The time that the app launcher was enabled. Cleared when UMA is recorded.
2443 const char kAppListEnableTime[] = "app_list.when_enabled";
2445 // TODO(calamity): remove this pref since app launcher will always be
2446 // installed.
2447 // Local state caching knowledge of whether the app launcher is installed.
2448 const char kAppLauncherIsEnabled[] =
2449 "apps.app_launcher.should_show_apps_page";
2451 // Integer representing the version of the app launcher shortcut installed on
2452 // the system. Incremented, e.g., when embedded icons change.
2453 const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version";
2455 // A boolean identifying if we should show the app launcher promo or not.
2456 const char kShowAppLauncherPromo[] = "app_launcher.show_promo";
2457 #endif
2459 // If set, the user requested to launch the app with this extension id while
2460 // in Metro mode, and then relaunched to Desktop mode to start it.
2461 const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart";
2463 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
2464 // launch of the specified app when restarting Chrome in desktop mode.
2465 const char kAppLaunchForMetroRestartProfile[] =
2466 "apps.app_launch_for_metro_restart_profile";
2468 // A boolean that indicates whether app shortcuts have been created.
2469 // On a transition from false to true, shortcuts are created for all apps.
2470 const char kAppShortcutsHaveBeenCreated[] = "apps.shortcuts_have_been_created";
2472 // How often the bubble has been shown.
2473 extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2475 // A string pref for storing the salt used to compute the pepper device ID.
2476 const char kDRMSalt[] = "settings.privacy.drm_salt";
2477 // A boolean pref that enables the (private) pepper GetDeviceID() call and
2478 // enables the use of remote attestation for content protection.
2479 const char kEnableDRM[] = "settings.privacy.drm_enabled";
2481 // An integer per-profile pref that signals if the watchdog extension is
2482 // installed and active. We need to know if the watchdog extension active for
2483 // ActivityLog initialization before the extension system is initialized.
2484 const char kWatchdogExtensionActive[] =
2485 "profile.extensions.activity_log.num_consumers_active";
2486 // The old version was a bool.
2487 const char kWatchdogExtensionActiveOld[] =
2488 "profile.extensions.activity_log.watchdog_extension_active";
2490 // A dictionary pref which maps profile names to dictionary values which hold
2491 // hashes of profile prefs that we track to detect changes that happen outside
2492 // of Chrome.
2493 const char kProfilePreferenceHashes[] = "profile.preference_hashes";
2495 // Stores a pair of local time and corresponding network time to bootstrap
2496 // network time tracker when browser starts.
2497 const char kNetworkTimeMapping[] = "profile.network_time_mapping";
2499 #if defined(OS_ANDROID)
2500 // A list of partner bookmark rename/remove mappings.
2501 // Each list item is a dictionary containing a "url", a "provider_title" and
2502 // "mapped_title" entries, detailing the bookmark target URL (if any), the title
2503 // given by the PartnerBookmarksProvider and either the user-visible renamed
2504 // title or an empty string if the bookmark node was removed.
2505 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
2506 #endif
2508 // Whether DNS Quick Check is disabled in proxy resolution.
2509 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
2511 } // namespace prefs