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