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