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