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