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