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