Adding two local state prefs for component updater
[chromium-blink-merge.git] / chrome / common / pref_names.cc
blobae07301a368034db1e3aae733f41671aa1de66e9
1 // Copyright (c) 2011 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.
5 #include "chrome/common/pref_names.h"
7 #include "base/basictypes.h"
9 namespace prefs {
11 // *************** PROFILE PREFS ***************
12 // These are attached to the user profile
14 // A counter that controls whether the apps promo is shown in the app launcher
15 // or not.
16 const char kAppsPromoCounter[] = "apps_promo_counter";
18 // A string property indicating whether default apps should be installed
19 // in this profile. Use the value "install" to enable defaults apps, or
20 // "noinstall" to disable them. This property is usually set in the
21 // master_preferences and copied into the profile preferences on first run.
22 // Defaults apps are installed only when creating a new profile.
23 const char kDefaultApps[] = "default_apps";
25 // Whether we have installed default apps yet in this profile.
26 const char kDefaultAppsInstalled[] = "default_apps_installed";
28 // A boolean specifying whether the New Tab page is the home page or not.
29 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
31 // This is the URL of the page to load when opening new tabs.
32 const char kHomePage[] = "homepage";
34 // Did the user change the home page after install?
35 const char kHomePageChanged[] = "homepage_changed";
37 // Used to determine if the last session exited cleanly. Set to false when
38 // first opened, and to true when closing. On startup if the value is false,
39 // it means the profile didn't exit cleanly.
40 const char kSessionExitedCleanly[] = "profile.exited_cleanly";
42 // An integer pref. Holds one of several values:
43 // 0: (or empty) don't do anything special on startup.
44 // 1: restore the last session.
45 // 2: this was used to indicate a specific session should be restored. It is
46 // no longer used, but saved to avoid conflict with old preferences.
47 // 3: unused, previously indicated the user wants to restore a saved session.
48 // 4: restore the URLs defined in kURLsToRestoreOnStartup.
49 const char kRestoreOnStartup[] = "session.restore_on_startup";
51 // The URLs to restore on startup or when the home button is pressed. The URLs
52 // are only restored on startup if kRestoreOnStartup is 4.
53 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup";
55 // The application locale.
56 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
57 // and user's profile. Global property determines locale of login screen,
58 // while user's profile determines his personal locale preference.
59 const char kApplicationLocale[] = "intl.app_locale";
60 #if defined(OS_CHROMEOS)
61 // Locale preference of device' owner. ChromeOS device appears in this locale
62 // after startup/wakeup/signout.
63 const char kOwnerLocale[] = "intl.owner_locale";
64 // Locale accepted by user. Non-syncable.
65 // Used to determine whether we need to show Locale Change notification.
66 const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted";
67 // Non-syncable item.
68 // It is used in two distinct ways.
69 // (1) Used for two-step initialization of locale in ChromeOS
70 // because synchronization of kApplicationLocale is not instant.
71 // (2) Used to detect locale change. Locale change is detected by
72 // LocaleChangeGuard in case values of kApplicationLocaleBackup and
73 // kApplicationLocale are both non-empty and differ.
74 // Following is a table showing how state of those prefs may change upon
75 // common real-life use cases:
76 // AppLocale Backup Accepted
77 // Initial login - A -
78 // Sync B A -
79 // Accept (B) B B B
80 // -----------------------------------------------------------
81 // Initial login - A -
82 // No sync and second login A A -
83 // Change options B B -
84 // -----------------------------------------------------------
85 // Initial login - A -
86 // Sync A A -
87 // Locale changed on login screen A C -
88 // Accept (A) A A A
89 // -----------------------------------------------------------
90 // Initial login - A -
91 // Sync B A -
92 // Revert A A -
93 const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
94 #endif
96 // The default character encoding to assume for a web page in the
97 // absence of MIME charset specification
98 const char kDefaultCharset[] = "intl.charset_default";
100 // The value to use for Accept-Languages HTTP header when making an HTTP
101 // request.
102 const char kAcceptLanguages[] = "intl.accept_languages";
104 // The value to use for showing locale-dependent encoding list for different
105 // locale, it's initialized from the corresponding string resource that is
106 // stored in non-translatable part of the resource bundle.
107 const char kStaticEncodings[] = "intl.static_encodings";
109 // OBSOLETE. The list of hostnames for which we whitelist popups (rather than
110 // blocking).
111 const char kPopupWhitelistedHosts[] = "profile.popup_whitelisted_sites";
113 // WebKit preferences.
114 const char kWebKitStandardFontFamily[] = "webkit.webprefs.standard_font_family";
115 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fixed_font_family";
116 const char kWebKitSerifFontFamily[] = "webkit.webprefs.serif_font_family";
117 const char kWebKitSansSerifFontFamily[] =
118 "webkit.webprefs.sansserif_font_family";
119 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.cursive_font_family";
120 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fantasy_font_family";
121 const char kWebKitStandardFontFamilyMap[] =
122 "webkit.webprefs.fonts.standard";
123 const char kWebKitFixedFontFamilyMap[] =
124 "webkit.webprefs.fonts.fixed";
125 const char kWebKitSerifFontFamilyMap[] =
126 "webkit.webprefs.fonts.serif";
127 const char kWebKitSansSerifFontFamilyMap[] =
128 "webkit.webprefs.fonts.sansserif";
129 const char kWebKitCursiveFontFamilyMap[] =
130 "webkit.webprefs.fonts.cursive";
131 const char kWebKitFantasyFontFamilyMap[] =
132 "webkit.webprefs.fonts.fantasy";
134 // TODO(falken): Add all the scripts we should support.
135 const char* kWebKitScriptsForFontFamilyMaps[] =
136 { "Arab", "Hang", "Hans", "Hant", "Hrkt" };
137 const size_t kWebKitScriptsForFontFamilyMapsLength =
138 arraysize(kWebKitScriptsForFontFamilyMaps);
140 const char kWebKitStandardFontFamilyArabic[] =
141 "webkit.webprefs.fonts.standard.Arab";
142 const char kWebKitFixedFontFamilyArabic[] =
143 "webkit.webprefs.fonts.fixed.Arab";
144 const char kWebKitSerifFontFamilyArabic[] =
145 "webkit.webprefs.fonts.serif.Arab";
146 const char kWebKitSansSerifFontFamilyArabic[] =
147 "webkit.webprefs.fonts.sansserif.Arab";
148 const char kWebKitStandardFontFamilyJapanese[] =
149 "webkit.webprefs.fonts.standard.Hrkt";
150 const char kWebKitFixedFontFamilyJapanese[] =
151 "webkit.webprefs.fonts.fixed.Hrkt";
152 const char kWebKitSerifFontFamilyJapanese[] =
153 "webkit.webprefs.fonts.serif.Hrkt";
154 const char kWebKitSansSerifFontFamilyJapanese[] =
155 "webkit.webprefs.fonts.sansserif.Hrkt";
156 const char kWebKitStandardFontFamilyKorean[] =
157 "webkit.webprefs.fonts.standard.Hang";
158 const char kWebKitFixedFontFamilyKorean[] =
159 "webkit.webprefs.fonts.fixed.Hang";
160 const char kWebKitSerifFontFamilyKorean[] =
161 "webkit.webprefs.fonts.serif.Hang";
162 const char kWebKitSansSerifFontFamilyKorean[] =
163 "webkit.webprefs.fonts.sansserif.Hang";
164 const char kWebKitCursiveFontFamilyKorean[] =
165 "webkit.webprefs.fonts.cursive.Hang";
166 const char kWebKitStandardFontFamilySimplifiedHan[] =
167 "webkit.webprefs.fonts.standard.Hans";
168 const char kWebKitFixedFontFamilySimplifiedHan[] =
169 "webkit.webprefs.fonts.fixed.Hans";
170 const char kWebKitSerifFontFamilySimplifiedHan[] =
171 "webkit.webprefs.fonts.serif.Hans";
172 const char kWebKitSansSerifFontFamilySimplifiedHan[] =
173 "webkit.webprefs.fonts.sansserif.Hans";
174 const char kWebKitStandardFontFamilyTraditionalHan[] =
175 "webkit.webprefs.fonts.standard.Hant";
176 const char kWebKitFixedFontFamilyTraditionalHan[] =
177 "webkit.webprefs.fonts.fixed.Hant";
178 const char kWebKitSerifFontFamilyTraditionalHan[] =
179 "webkit.webprefs.fonts.serif.Hant";
180 const char kWebKitSansSerifFontFamilyTraditionalHan[] =
181 "webkit.webprefs.fonts.sansserif.Hant";
183 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size";
184 const char kWebKitDefaultFixedFontSize[] =
185 "webkit.webprefs.default_fixed_font_size";
186 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
187 const char kWebKitMinimumLogicalFontSize[] =
188 "webkit.webprefs.minimum_logical_font_size";
189 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
190 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
191 const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
192 "webkit.webprefs.javascript_can_open_windows_automatically";
193 const char kWebKitLoadsImagesAutomatically[] =
194 "webkit.webprefs.loads_images_automatically";
195 const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled";
196 const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled";
197 const char kWebKitShrinksStandaloneImagesToFit[] =
198 "webkit.webprefs.shrinks_standalone_images_to_fit";
199 const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings";
200 const char kWebKitUsesUniversalDetector[] =
201 "webkit.webprefs.uses_universal_detector";
202 const char kWebKitTextAreasAreResizable[] =
203 "webkit.webprefs.text_areas_are_resizable";
204 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled";
205 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links";
206 const char kWebKitAllowDisplayingInsecureContent[] =
207 "webkit.webprefs.allow_displaying_insecure_content";
208 const char kWebKitAllowRunningInsecureContent[] =
209 "webkit.webprefs.allow_running_insecure_content";
211 // Boolean which specifies whether the bookmark bar is visible on all tabs.
212 const char kShowBookmarkBar[] = "bookmark_bar.show_on_all_tabs";
214 // Boolean which specifies the ids of the bookmark nodes that are expanded in
215 // the bookmark editor.
216 const char kBookmarkEditorExpandedNodes[] = "bookmark_editor.expanded_nodes";
218 // Boolean that is true if the password manager is on (will record new
219 // passwords and fill in known passwords).
220 const char kPasswordManagerEnabled[] = "profile.password_manager_enabled";
222 // Boolean controlling whether the password manager allows to retrieve passwords
223 // in clear text.
224 const char kPasswordManagerAllowShowPasswords[] =
225 "profile.password_manager_allow_show_passwords";
227 // Boolean that identifies if the auto-login feature is enabled or not.
228 const char kAutologinEnabled[] = "autologin.enabled";
230 // Boolean that is true when SafeBrowsing is enabled.
231 const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
233 // Boolean that is true when SafeBrowsing Malware Report is enabled.
234 const char kSafeBrowsingReportingEnabled[] =
235 "safebrowsing.reporting_enabled";
237 // Enum that specifies whether Incognito mode is:
238 // 0 - Enabled. Default behaviour. Default mode is available on demand.
239 // 1 - Disabled. Used cannot browse pages in Incognito mode.
240 // 2 - Forced. All pages/sessions are forced into Incognito.
241 const char kIncognitoModeAvailability[] = "incognito.mode_availability";
243 // Boolean that is true when Suggest support is enabled.
244 const char kSearchSuggestEnabled[] = "search.suggest_enabled";
246 // Boolean that indicates whether the browser should put up a confirmation
247 // window when the user is attempting to quit. Mac only.
248 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
250 // OBSOLETE. Enum that specifies whether to enforce a third-party cookie
251 // blocking policy. This has been superseded by kDefaultContentSettings +
252 // kBlockThirdPartyCookies.
253 // 0 - allow all cookies.
254 // 1 - block third-party cookies
255 // 2 - block all cookies
256 const char kCookieBehavior[] = "security.cookie_behavior";
258 // Whether having a default search provider is enabled.
259 const char kDefaultSearchProviderEnabled[] =
260 "default_search_provider.enabled";
262 // The URL (as understood by TemplateURLRef) the default search provider uses
263 // for searches.
264 const char kDefaultSearchProviderSearchURL[] =
265 "default_search_provider.search_url";
267 // The URL (as understood by TemplateURLRef) the default search provider uses
268 // for suggestions.
269 const char kDefaultSearchProviderSuggestURL[] =
270 "default_search_provider.suggest_url";
272 // The URL (as understood by TemplateURLRef) the default search provider uses
273 // for instant results.
274 const char kDefaultSearchProviderInstantURL[] =
275 "default_search_provider.instant_url";
277 // The Favicon URL (as understood by TemplateURLRef) of the default search
278 // provider.
279 const char kDefaultSearchProviderIconURL[] =
280 "default_search_provider.icon_url";
282 // The input encoding (as understood by TemplateURLRef) supported by the default
283 // search provider. The various encodings are separated by ';'
284 const char kDefaultSearchProviderEncodings[] =
285 "default_search_provider.encodings";
287 // The name of the default search provider.
288 const char kDefaultSearchProviderName[] = "default_search_provider.name";
290 // The keyword of the default search provider.
291 const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword";
293 // The id of the default search provider.
294 const char kDefaultSearchProviderID[] = "default_search_provider.id";
296 // The prepopulate id of the default search provider.
297 const char kDefaultSearchProviderPrepopulateID[] =
298 "default_search_provider.prepopulate_id";
300 // The dictionary key used when the default search providers are given
301 // in the preferences file. Normally they are copied from the master
302 // preferences file.
303 const char kSearchProviderOverrides[] = "search_provider_overrides";
304 // The format version for the dictionary above.
305 const char kSearchProviderOverridesVersion[] =
306 "search_provider_overrides_version";
308 // Boolean which specifies whether we should ask the user if we should download
309 // a file (true) or just download it automatically.
310 const char kPromptForDownload[] = "download.prompt_for_download";
312 // A boolean pref set to true if we're using Link Doctor error pages.
313 const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled";
315 // OBSOLETE: new pref now stored with user prefs instead of profile, as
316 // kDnsPrefetchingStartupList.
317 const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList";
319 // An adaptively identified list of domain names to be pre-fetched during the
320 // next startup, based on what was actually needed during this startup.
321 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list";
323 // OBSOLETE: new pref now stored with user prefs instead of profile, as
324 // kDnsPrefetchingHostReferralList.
325 const char kDnsHostReferralList[] = "HostReferralList";
327 // A list of host names used to fetch web pages, and their commonly used
328 // sub-resource hostnames (and expected latency benefits from pre-resolving, or
329 // preconnecting to, such sub-resource hostnames).
330 // This list is adaptively grown and pruned.
331 const char kDnsPrefetchingHostReferralList[] =
332 "dns_prefetching.host_referral_list";
334 // Disables the SPDY protocol.
335 const char kDisableSpdy[] = "spdy.disabled";
337 // Prefs for server names that support SPDY protocol.
338 const char kSpdyServers[] = "spdy.servers";
340 // Prefs for servers that support Alternate-Protocol.
341 const char kAlternateProtocolServers[] = "spdy.alternate_protocol";
343 // Disables the listed protocol schemes.
344 const char kDisabledSchemes[] = "protocol.disabled_schemes";
346 // Blocks access to the listed host patterns.
347 const char kUrlBlacklist[] = "policy.url_blacklist";
349 // Allows access to the listed host patterns, as exceptions to the blacklist.
350 const char kUrlWhitelist[] = "policy.url_whitelist";
352 // Boolean pref indicating whether the instant confirm dialog has been shown.
353 const char kInstantConfirmDialogShown[] = "instant.confirm_dialog_shown";
355 // Boolean pref indicating if instant is enabled.
356 const char kInstantEnabled[] = "instant.enabled";
358 // Boolean pref indicating if instant was ever enabled.
359 const char kInstantEnabledOnce[] = "instant.enabled_once";
361 // Time when instant was last enabled.
362 const char kInstantEnabledTime[] = "instant.enabled_time";
364 // Used to maintain instant promo keys. See PromoCounter for details of subkeys
365 // that are used.
366 const char kInstantPromo[] = "instant.promo";
368 // Used to migrate preferences from local state to user preferences to
369 // enable multiple profiles.
370 // BITMASK with possible values (see browser_prefs.cc for enum):
371 // 0: No preferences migrated.
372 // 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList
373 // 2: Browser window preferences migrated: kDevToolsSplitLocation and
374 // kBrowserWindowPlacement
375 const char kMultipleProfilePrefMigration[] =
376 "local_state.multiple_profile_prefs_version";
378 // A boolean pref set to true if prediction of network actions is allowed.
379 // Actions include DNS prefetching, TCP and SSL preconnection, and prerendering
380 // of web pages.
381 // NOTE: The "dns_prefetching.enabled" value is used so that historical user
382 // preferences are not lost.
383 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
385 #if defined(OS_CHROMEOS)
386 // An integer pref to initially mute volume if 1.
387 const char kAudioMute[] = "settings.audio.mute";
389 // A double pref to set initial volume.
390 const char kAudioVolume[] = "settings.audio.volume";
392 // A boolean pref set to true if TapToClick is being done in browser.
393 const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click";
395 // A integer pref for the touchpad sensitivity.
396 const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
398 // A boolean pref set to true if time should be displayed in 24-hour clock.
399 const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
401 // A string pref set to the current input method.
402 const char kLanguageCurrentInputMethod[] =
403 "settings.language.current_input_method";
405 // A string pref set to the previous input method.
406 const char kLanguagePreviousInputMethod[] =
407 "settings.language.previous_input_method";
409 // A string pref (comma-separated list) set to the "next engine in menu"
410 // hot-key lists.
411 const char kLanguageHotkeyNextEngineInMenu[] =
412 "settings.language.hotkey_next_engine_in_menu";
414 // A string pref (comma-separated list) set to the "previous engine"
415 // hot-key lists.
416 const char kLanguageHotkeyPreviousEngine[] =
417 "settings.language.hotkey_previous_engine";
419 // A string pref (comma-separated list) set to the preferred language IDs
420 // (ex. "en-US,fr,ko").
421 const char kLanguagePreferredLanguages[] =
422 "settings.language.preferred_languages";
424 // A string pref (comma-separated list) set to the preloaded (active) input
425 // method IDs (ex. "pinyin,mozc").
426 const char kLanguagePreloadEngines[] = "settings.language.preload_engines";
428 // Boolean prefs for ibus-chewing Chinese input method.
429 const char kLanguageChewingAutoShiftCur[] =
430 "settings.language.chewing_auto_shift_cur";
431 const char kLanguageChewingAddPhraseDirection[] =
432 "settings.language.chewing_add_phrase_direction";
433 const char kLanguageChewingEasySymbolInput[] =
434 "settings.language.chewing_easy_symbol_input";
435 const char kLanguageChewingEscCleanAllBuf[] =
436 "settings.language.chewing_esc_clean_all_buf";
437 const char kLanguageChewingForceLowercaseEnglish[] =
438 "settings.language.chewing_force_lowercase_english";
439 const char kLanguageChewingPlainZhuyin[] =
440 "settings.language.chewing_plain_zhuyin";
441 const char kLanguageChewingPhraseChoiceRearward[] =
442 "settings.language.chewing_phrase_choice_rearward";
443 const char kLanguageChewingSpaceAsSelection[] =
444 "settings.language.chewing_space_as_selection";
446 // Integer prefs for ibus-chewing Chinese input method.
447 const char kLanguageChewingMaxChiSymbolLen[] =
448 "settings.language.chewing_max_chi_symbol_len";
449 const char kLanguageChewingCandPerPage[] =
450 "settings.language.chewing_cand_per_page";
452 // String prefs for ibus-chewing Chinese input method.
453 const char kLanguageChewingKeyboardType[] =
454 "settings.language.chewing_keyboard_type";
455 const char kLanguageChewingSelKeys[] =
456 "settings.language.chewing_sel_keys";
458 const char kLanguageChewingHsuSelKeyType[] =
459 "settings.language.chewing_hsu_sel_key_type";
461 // A string pref which determines the keyboard layout for Hangul input method.
462 const char kLanguageHangulKeyboard[] = "settings.language.hangul_keyboard";
463 const char kLanguageHangulHanjaBindingKeys[] =
464 "settings.language.hangul_hanja_binding_keys";
466 // A boolean prefs for ibus-pinyin Chinese input method.
467 const char kLanguagePinyinCorrectPinyin[] =
468 "settings.language.pinyin_correct_pinyin";
469 const char kLanguagePinyinFuzzyPinyin[] =
470 "settings.language.pinyin_fuzzy_pinyin";
471 const char kLanguagePinyinShiftSelectCandidate[] =
472 "settings.language.pinyin_shift_select_candidate";
473 const char kLanguagePinyinMinusEqualPage[] =
474 "settings.language.pinyin_minus_equal_page";
475 const char kLanguagePinyinCommaPeriodPage[] =
476 "settings.language.pinyin_comma_period_page";
477 const char kLanguagePinyinAutoCommit[] =
478 "settings.language.pinyin_auto_commit";
479 const char kLanguagePinyinDoublePinyin[] =
480 "settings.language.pinyin_double_pinyin";
481 const char kLanguagePinyinInitChinese[] =
482 "settings.language.pinyin_init_chinese";
483 const char kLanguagePinyinInitFull[] =
484 "settings.language.pinyin_init_full";
485 const char kLanguagePinyinInitFullPunct[] =
486 "settings.language.pinyin_init_full_punct";
487 const char kLanguagePinyinInitSimplifiedChinese[] =
488 "settings.language.pinyin_init_simplified_chinese";
489 const char kLanguagePinyinTradCandidate[] =
490 "settings.language.pinyin_trad_candidate";
492 // A integer prefs for ibus-pinyin Chinese input method.
493 const char kLanguagePinyinDoublePinyinSchema[] =
494 "settings.language.pinyin_double_pinyin_schema";
495 const char kLanguagePinyinLookupTablePageSize[] =
496 "settings.language.pinyin_lookup_table_page_size";
498 // A string prefs for ibus-mozc Japanese input method.
499 // ibus-mozc converts the string values to protobuf enum values defined in
500 // third_party/ibus-mozc/files/src/session/config.proto.
501 const char kLanguageMozcPreeditMethod[] =
502 "settings.language.mozc_preedit_method";
503 const char kLanguageMozcSessionKeymap[] =
504 "settings.language.mozc_session_keymap";
505 const char kLanguageMozcPunctuationMethod[] =
506 "settings.language.mozc_punctuation_method";
507 const char kLanguageMozcSymbolMethod[] =
508 "settings.language.mozc_symbol_method";
509 const char kLanguageMozcSpaceCharacterForm[] =
510 "settings.language.mozc_space_character_form";
511 const char kLanguageMozcHistoryLearningLevel[] =
512 "settings.language.mozc_history_learning_level";
513 const char kLanguageMozcSelectionShortcut[] =
514 "settings.language.mozc_selection_shortcut";
515 const char kLanguageMozcShiftKeyModeSwitch[] =
516 "settings.language.mozc_shift_key_mode_switch";
517 const char kLanguageMozcNumpadCharacterForm[] =
518 "settings.language.mozc_numpad_character_form";
519 const char kLanguageMozcIncognitoMode[] =
520 "settings.language.mozc_incognito_mode";
521 const char kLanguageMozcUseAutoImeTurnOff[] =
522 "settings.language.mozc_use_auto_ime_turn_off";
523 const char kLanguageMozcUseHistorySuggest[] =
524 "settings.language.mozc_use_history_suggest";
525 const char kLanguageMozcUseDictionarySuggest[] =
526 "settings.language.mozc_use_dictionary_suggest";
527 const char kLanguageMozcSuggestionsSize[] =
528 "settings.language.mozc_suggestions_size";
530 // A integer prefs which determine how we remap modifier keys (e.g. swap Alt-L
531 // and Control-L.) Possible values for these prefs are 0-4. See ModifierKey enum
532 // in src/third_party/cros/chrome_keyboard.h for details.
533 const char kLanguageXkbRemapSearchKeyTo[] =
534 "settings.language.xkb_remap_search_key_to";
535 const char kLanguageXkbRemapControlKeyTo[] =
536 "settings.language.xkb_remap_control_key_to";
537 const char kLanguageXkbRemapAltKeyTo[] =
538 "settings.language.xkb_remap_alt_key_to";
540 // A boolean pref which determines whether key repeat is enabled.
541 const char kLanguageXkbAutoRepeatEnabled[] =
542 "settings.language.xkb_auto_repeat_enabled_r2";
543 // A integer pref which determines key repeat delay (in ms).
544 const char kLanguageXkbAutoRepeatDelay[] =
545 "settings.language.xkb_auto_repeat_delay_r2";
546 // A integer pref which determines key repeat interval (in ms).
547 const char kLanguageXkbAutoRepeatInterval[] =
548 "settings.language.xkb_auto_repeat_interval_r2";
549 // "_r2" suffixes are added to the three prefs above when we change the
550 // preferences not user-configurable, not to sync them with cloud.
552 // A dictionary pref which determines a preferred virtual keyboard per layout.
553 // e.g. { "us(dvorak)": "http://asdfg..yuiop/" }
554 const char kLanguagePreferredVirtualKeyboard[] =
555 "settings.language.preferred_virtual_keyboard";
557 // A boolean pref which determines whether accessibility is enabled.
558 const char kAccessibilityEnabled[] = "settings.accessibility";
560 // A boolean pref which turns on Advanced Filesystem
561 // (USB support, SD card, etc).
562 const char kLabsAdvancedFilesystemEnabled[] =
563 "settings.labs.advanced_filesystem";
565 // A boolean pref which turns on the mediaplayer.
566 const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer";
568 // A boolean pref that turns on screen locker.
569 const char kEnableScreenLock[] = "settings.enable_screen_lock";
571 // A boolean pref of whether to show mobile plan notifications.
572 const char kShowPlanNotifications[] =
573 "settings.internet.mobile.show_plan_notifications";
575 // A boolean pref of whether to show 3G promo notification.
576 const char kShow3gPromoNotification[] =
577 "settings.internet.mobile.show_3g_promo_notification";
579 // A boolean pref that uses shared proxies.
580 const char kUseSharedProxies[] = "settings.use_shared_proxies";
582 // A string prefs for OAuth1 token.
583 const char kOAuth1Token[] = "settings.account.oauth1_token";
585 // A string prefs for OAuth1 secret.
586 const char kOAuth1Secret[] = "settings.account.oauth1_secret";
587 #endif // defined(OS_CHROMEOS)
589 // The disabled messages in IPC logging.
590 const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
592 // A boolean pref set to true if a Home button to open the Home pages should be
593 // visible on the toolbar.
594 const char kShowHomeButton[] = "browser.show_home_button";
596 // A string value which saves short list of recently user selected encodings
597 // separated with comma punctuation mark.
598 const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
600 // Clear Browsing Data dialog preferences.
601 const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
602 const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
603 const char kDeleteCache[] = "browser.clear_data.cache";
604 const char kDeleteCookies[] = "browser.clear_data.cookies";
605 const char kDeletePasswords[] = "browser.clear_data.passwords";
606 const char kDeleteFormData[] = "browser.clear_data.form_data";
607 const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
609 // Boolean pref to define the default values for using spellchecker.
610 const char kEnableSpellCheck[] = "browser.enable_spellchecking";
612 // List of names of the enabled labs experiments (see chrome/browser/labs.cc).
613 const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
615 // Boolean pref to define the default values for using auto spell correct.
616 const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
618 // Boolean pref to define the default setting for "block offensive words".
619 // The old key value is kept to avoid unnecessary migration code.
620 const char kSpeechInputFilterProfanities[] =
621 "browser.speechinput_censor_results";
623 // Boolean controlling whether history saving is disabled.
624 const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
626 // Boolean controlling whether printing is enabled.
627 const char kPrintingEnabled[] = "printing.enabled";
629 // Enable print preview once for supported platforms.
630 #if defined(GOOGLE_CHROME_BUILD)
631 const char kPrintingPrintPreviewEnabledOnce[] =
632 "printing.print_preview_enabled_once";
633 #endif
635 #if defined(TOOLKIT_USES_GTK)
636 // GTK specific preference on whether we should match the system GTK theme.
637 const char kUsesSystemTheme[] = "extensions.theme.use_system";
638 #endif
639 const char kCurrentThemePackFilename[] = "extensions.theme.pack";
640 const char kCurrentThemeID[] = "extensions.theme.id";
641 const char kCurrentThemeImages[] = "extensions.theme.images";
642 const char kCurrentThemeColors[] = "extensions.theme.colors";
643 const char kCurrentThemeTints[] = "extensions.theme.tints";
644 const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
646 // Boolean pref which persists whether the extensions_ui is in developer mode
647 // (showing developer packing tools and extensions details)
648 const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
650 // Integer pref that tracks the number of browser actions visible in the browser
651 // actions toolbar.
652 const char kExtensionToolbarSize[] = "extensions.toolbarsize";
654 // Pref containing the directory for internal plugins as written to the plugins
655 // list (below).
656 const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
658 // List pref containing information (dictionaries) on plugins.
659 const char kPluginsPluginsList[] = "plugins.plugins_list";
661 // List pref containing names of plugins that are disabled by policy.
662 const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
664 // List pref containing exceptions to the list of plugins disabled by policy.
665 const char kPluginsDisabledPluginsExceptions[] =
666 "plugins.plugins_disabled_exceptions";
668 // List pref containing names of plugins that are enabled by policy.
669 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
671 // When first shipped, the pdf plugin will be disabled by default. When we
672 // enable it by default, we'll want to do so only once.
673 const char kPluginsEnabledInternalPDF[] = "plugins.enabled_internal_pdf3";
675 // When first shipped, the nacl plugin will be disabled by default. When we
676 // enable it by default, we'll want to do so only once.
677 const char kPluginsEnabledNaCl[] = "plugins.enabled_nacl";
679 const char kPluginsShowSetReaderDefaultInfobar[] =
680 "plugins.show_set_reader_default";
682 // Whether about:plugins is shown in the details mode or not.
683 const char kPluginsShowDetails[] = "plugins.show_details";
685 // Boolean that indicates whether outdated plugins are allowed or not.
686 const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
688 // Boolean that indicates whether plugins that require authorization should
689 // be always allowed or not.
690 const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
692 // Boolean that indicates whether we should check if we are the default browser
693 // on start-up.
694 const char kCheckDefaultBrowser[] = "browser.check_default_browser";
696 // Policy setting whether default browser check should be disabled and default
697 // browser registration should take place.
698 const char kDefaultBrowserSettingEnabled[] =
699 "browser.default_browser_setting_enabled";
701 #if defined(OS_MACOSX)
702 // Boolean that indicates whether the application should show the info bar
703 // asking the user to set up automatic updates when Keystone promotion is
704 // required.
705 const char kShowUpdatePromotionInfoBar[] =
706 "browser.show_update_promotion_info_bar";
707 #endif
709 // Boolean that is false if we should show window manager decorations. If
710 // true, we draw a custom chrome frame (thicker title bar and blue border).
711 const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
713 // Boolean that indicates whether the infobar explaining that search can be
714 // done directly from the omnibox should be shown.
715 const char kShowOmniboxSearchHint[] = "browser.show_omnibox_search_hint";
717 // The list of origins which are allowed|denied to show desktop notifications.
718 const char kDesktopNotificationDefaultContentSetting[] =
719 "profile.notifications_default_content_setting";
720 const char kDesktopNotificationAllowedOrigins[] =
721 "profile.notification_allowed_sites";
722 const char kDesktopNotificationDeniedOrigins[] =
723 "profile.notification_denied_sites";
725 // The preferred position (which corner of screen) for desktop notifications.
726 const char kDesktopNotificationPosition[] =
727 "browser.desktop_notification_position";
729 // Dictionary of content settings applied to all hosts by default.
730 const char kDefaultContentSettings[] = "profile.default_content_settings";
732 // OBSOLETE. Dictionary that maps hostnames to content related settings.
733 // Default settings will be applied to hosts not in this pref.
734 const char kPerHostContentSettings[] = "profile.per_host_content_settings";
736 // Version of the pattern format used to define content settings.
737 const char kContentSettingsVersion[] = "profile.content_settings.pref_version";
739 // Patterns for mapping hostnames to content related settings. Default settings
740 // will be applied to hosts that don't match any of the patterns. Replaces
741 // kPerHostContentSettings. The pattern format used is defined by
742 // kContentSettingsVersion.
743 const char kContentSettingsPatterns[] = "profile.content_settings.patterns";
745 const char kContentSettingsPatternPairs[] =
746 "profile.content_settings.pattern_pairs";
748 // Boolean that is true if we should unconditionally block third-party cookies,
749 // regardless of other content settings.
750 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
752 // Boolean that is true when all locally stored site data (e.g. cookies, local
753 // storage, etc..) should be deleted on exit.
754 const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit";
756 // Double that indicates the default zoom level.
757 const char kDefaultZoomLevel[] = "profile.default_zoom_level";
759 // Dictionary that maps hostnames to zoom levels. Hosts not in this pref will
760 // be displayed at the default zoom level.
761 const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels";
763 // Boolean that is true if Autofill is enabled and allowed to save profile data.
764 const char kAutofillEnabled[] = "autofill.enabled";
766 // Boolean that is true when auxiliary Autofill profiles are enabled.
767 // Currently applies to Address Book "me" card on Mac. False on Win and Linux.
768 const char kAutofillAuxiliaryProfilesEnabled[] =
769 "autofill.auxiliary_profiles_enabled";
771 // Double that indicates positive (for matched forms) upload rate.
772 const char kAutofillPositiveUploadRate[] = "autofill.positive_upload_rate";
774 // Double that indicates negative (for not matched forms) upload rate.
775 const char kAutofillNegativeUploadRate[] = "autofill.negative_upload_rate";
777 // Boolean option set to true on the first run. Non-persistent.
778 const char kAutofillPersonalDataManagerFirstRun[] = "autofill.pdm.first_run";
780 // Modifying bookmarks is completely disabled when this is set to false.
781 const char kEditBookmarksEnabled[] = "bookmarks.editing_enabled";
783 // Boolean that is true when the translate feature is enabled.
784 const char kEnableTranslate[] = "translate.enabled";
786 const char kPinnedTabs[] = "pinned_tabs";
788 // Boolean that is true when HTTP throttling is enabled.
789 const char kHttpThrottlingEnabled[] = "http_throttling.enabled";
791 // Boolean that is true until the user changes the setting of the check-box
792 // that controls whether HTTP throttling is enabled. When this is false,
793 // we do not allow FieldTrial experiments to modify whether the feature
794 // is enabled or not.
795 const char kHttpThrottlingMayExperiment[] = "http_throttling.may_experiment";
797 // Integer containing the default Geolocation content setting.
798 const char kGeolocationDefaultContentSetting[] =
799 "geolocation.default_content_setting";
801 // Dictionary that maps [frame, toplevel] to their Geolocation content setting.
802 const char kGeolocationContentSettings[] = "geolocation.content_settings";
804 // Preference to disable 3D APIs (WebGL, Pepper 3D).
805 const char kDisable3DAPIs[] = "disable_3d_apis";
807 // Whether to enable hyperlink auditing ("<a ping>").
808 const char kEnableHyperlinkAuditing[] = "enable_a_ping";
810 // Whether to enable sending referrers.
811 const char kEnableReferrers[] = "enable_referrers";
813 #if defined(OS_MACOSX)
814 // Whether presentation mode is enabled for fullscreen (used on Lion only).
815 const char kPresentationModeEnabled[] = "presentation_mode_enabled";
816 #endif
818 // Boolean that specifies whether to import bookmarks from the default browser
819 // on first run.
820 const char kImportBookmarks[] = "import_bookmarks";
822 // Boolean that specifies whether to import the browsing history from the
823 // default browser on first run.
824 const char kImportHistory[] = "import_history";
826 // Boolean that specifies whether to import the homepage from the default
827 // browser on first run.
828 const char kImportHomepage[] = "import_home_page";
830 // Boolean that specifies whether to import the search engine from the default
831 // browser on first run.
832 const char kImportSearchEngine[] = "import_search_engine";
834 // Boolean that specifies whether to import the saved passwords from the default
835 // browser on first run.
836 const char kImportSavedPasswords[] = "import_saved_passwords";
838 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX)
839 // The local profile id for this profile.
840 const char kLocalProfileId[] = "profile.local_profile_id";
842 // Whether passwords in external services (e.g. GNOME Keyring) have been tagged
843 // with the local profile id yet. (Used for migrating to tagged passwords.)
844 const char kPasswordsUseLocalProfileId[] =
845 "profile.passwords_use_local_profile_id";
846 #endif
848 // *************** LOCAL STATE ***************
849 // These are attached to the machine/installation
851 // Directory of the last profile used.
852 const char kProfileLastUsed[] = "profile.last_used";
854 // Total number of profiles created for this Chrome build. Used to tag profile
855 // directories.
856 const char kProfilesNumCreated[] = "profile.profiles_created";
858 // A map of profile data directory to cached information. This cache can be
859 // used to display information about profiles without actually having to load
860 // them.
861 const char kProfileInfoCache[] = "profile.info_cache";
863 // Prefs for SSLConfigServicePref.
864 const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
865 const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
867 // The metrics client GUID and session ID.
868 const char kMetricsClientID[] = "user_experience_metrics.client_id";
869 const char kMetricsSessionID[] = "user_experience_metrics.session_id";
871 // Date/time when the current metrics profile ID was created
872 // (which hopefully corresponds to first run).
873 const char kMetricsClientIDTimestamp[] =
874 "user_experience_metrics.client_id_timestamp";
876 // Boolean that specifies whether or not crash reporting and metrics reporting
877 // are sent over the network for analysis.
878 const char kMetricsReportingEnabled[] =
879 "user_experience_metrics.reporting_enabled";
881 // Array of strings that are each UMA logs that were supposed to be sent in the
882 // first minute of a browser session. These logs include things like crash count
883 // info, etc.
884 const char kMetricsInitialLogs[] =
885 "user_experience_metrics.initial_logs";
887 // Array of strings that are each UMA logs that were not sent because the
888 // browser terminated before these accumulated metrics could be sent. These
889 // logs typically include histograms and memory reports, as well as ongoing
890 // user activities.
891 const char kMetricsOngoingLogs[] =
892 "user_experience_metrics.ongoing_logs";
894 // Where profile specific metrics are placed.
895 const char kProfileMetrics[] = "user_experience_metrics.profiles";
897 // The metrics for a profile are stored as dictionary values under the
898 // path kProfileMetrics. The individual metrics are placed under the path
899 // kProfileMetrics.kProfilePrefix<hashed-profile-id>.
900 const char kProfilePrefix[] = "profile-";
902 // True if the previous run of the program exited cleanly.
903 const char kStabilityExitedCleanly[] =
904 "user_experience_metrics.stability.exited_cleanly";
906 // Version string of previous run, which is used to assure that stability
907 // metrics reported under current version reflect stability of the same version.
908 const char kStabilityStatsVersion[] =
909 "user_experience_metrics.stability.stats_version";
911 // Build time, in seconds since an epoch, which is used to assure that stability
912 // metrics reported reflect stability of the same build.
913 const char kStabilityStatsBuildTime[] =
914 "user_experience_metrics.stability.stats_buildtime";
916 // False if we received a session end and either we crashed during processing
917 // the session end or ran out of time and windows terminated us.
918 const char kStabilitySessionEndCompleted[] =
919 "user_experience_metrics.stability.session_end_completed";
921 // Number of times the application was launched since last report.
922 const char kStabilityLaunchCount[] =
923 "user_experience_metrics.stability.launch_count";
925 // Number of times the application exited uncleanly since the last report.
926 const char kStabilityCrashCount[] =
927 "user_experience_metrics.stability.crash_count";
929 // Number of times the session end did not complete.
930 const char kStabilityIncompleteSessionEndCount[] =
931 "user_experience_metrics.stability.incomplete_session_end_count";
933 // Number of times a page load event occurred since the last report.
934 const char kStabilityPageLoadCount[] =
935 "user_experience_metrics.stability.page_load_count";
937 // Number of times a renderer process crashed since the last report.
938 const char kStabilityRendererCrashCount[] =
939 "user_experience_metrics.stability.renderer_crash_count";
941 // Number of times an extension renderer process crashed since the last report.
942 const char kStabilityExtensionRendererCrashCount[] =
943 "user_experience_metrics.stability.extension_renderer_crash_count";
945 // Time when the app was last launched, in seconds since the epoch.
946 const char kStabilityLaunchTimeSec[] =
947 "user_experience_metrics.stability.launch_time_sec";
949 // Time when the app was last known to be running, in seconds since
950 // the epoch.
951 const char kStabilityLastTimestampSec[] =
952 "user_experience_metrics.stability.last_timestamp_sec";
954 // This is the location of a list of dictionaries of plugin stability stats.
955 const char kStabilityPluginStats[] =
956 "user_experience_metrics.stability.plugin_stats2";
958 // Number of times the renderer has become non-responsive since the last
959 // report.
960 const char kStabilityRendererHangCount[] =
961 "user_experience_metrics.stability.renderer_hang_count";
963 // Total number of child process crashes (other than renderer / extension
964 // renderer ones, and plugin children, which are counted separately) since the
965 // last report.
966 const char kStabilityChildProcessCrashCount[] =
967 "user_experience_metrics.stability.child_process_crash_count";
969 // On Chrome OS, total number of non-Chrome user process crashes
970 // since the last report.
971 const char kStabilityOtherUserCrashCount[] =
972 "user_experience_metrics.stability.other_user_crash_count";
974 // On Chrome OS, total number of kernel crashes since the last report.
975 const char kStabilityKernelCrashCount[] =
976 "user_experience_metrics.stability.kernel_crash_count";
978 // On Chrome OS, total number of unclean system shutdowns since the
979 // last report.
980 const char kStabilitySystemUncleanShutdownCount[] =
981 "user_experience_metrics.stability.system_unclean_shutdowns";
983 // Number of times the browser has been able to register crash reporting.
984 const char kStabilityBreakpadRegistrationSuccess[] =
985 "user_experience_metrics.stability.breakpad_registration_ok";
987 // Number of times the browser has failed to register crash reporting.
988 const char kStabilityBreakpadRegistrationFail[] =
989 "user_experience_metrics.stability.breakpad_registration_fail";
991 // Number of times the browser has been run under a debugger.
992 const char kStabilityDebuggerPresent[] =
993 "user_experience_metrics.stability.debugger_present";
995 // Number of times the browser has not been run under a debugger.
996 const char kStabilityDebuggerNotPresent[] =
997 "user_experience_metrics.stability.debugger_not_present";
999 // The keys below are used for the dictionaries in the
1000 // kStabilityPluginStats list.
1001 const char kStabilityPluginName[] = "name";
1002 const char kStabilityPluginLaunches[] = "launches";
1003 const char kStabilityPluginInstances[] = "instances";
1004 const char kStabilityPluginCrashes[] = "crashes";
1006 // The keys below are strictly increasing counters over the lifetime of
1007 // a chrome installation. They are (optionally) sent up to the uninstall
1008 // survey in the event of uninstallation.
1009 const char kUninstallMetricsPageLoadCount[] =
1010 "uninstall_metrics.page_load_count";
1011 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count";
1012 const char kUninstallMetricsInstallDate[] =
1013 "uninstall_metrics.installation_date2";
1014 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec";
1015 const char kUninstallLastLaunchTimeSec[] =
1016 "uninstall_metrics.last_launch_time_sec";
1017 const char kUninstallLastObservedRunTimeSec[] =
1018 "uninstall_metrics.last_observed_running_time_sec";
1020 // A collection of position, size, and other data relating to the browser
1021 // window to restore on startup.
1022 const char kBrowserWindowPlacement[] = "browser.window_placement";
1024 // A collection of position, size, and other data relating to the task
1025 // manager window to restore on startup.
1026 const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
1028 // A collection of position, size, and other data relating to the keyword
1029 // editor window to restore on startup.
1030 const char kKeywordEditorWindowPlacement[] = "keyword_editor.window_placement";
1032 // A collection of position, size, and other data relating to the preferences
1033 // window to restore on startup.
1034 const char kPreferencesWindowPlacement[] = "preferences.window_placement";
1036 // An integer specifying the total number of bytes to be used by the
1037 // renderer's in-memory cache of objects.
1038 const char kMemoryCacheSize[] = "renderer.memory_cache.size";
1040 // String which specifies where to download files to by default.
1041 const char kDownloadDefaultDirectory[] = "download.default_directory";
1043 // Boolean that records if the download directory was changed by an
1044 // upgrade a unsafe location to a safe location.
1045 const char kDownloadDirUpgraded[] = "download.directory_upgrade";
1047 // String which specifies where to save html files to by default.
1048 const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
1050 // The type used to save the page. See the enum SavePackage::SavePackageType in
1051 // the chrome/browser/download/save_package.h for the possible values.
1052 const char kSaveFileType[] = "savefile.type";
1054 // String which specifies the last directory that was chosen for uploading
1055 // or opening a file.
1056 const char kSelectFileLastDirectory[] = "selectfile.last_directory";
1058 // Boolean that specifies if file selection dialogs are shown.
1059 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
1061 // Map of timestamps of the last used file browser tasks.
1062 const char kLastUsedFileBrowserHandlers[] =
1063 "filebrowser.handler.lastused";
1065 // Extensions which should be opened upon completion.
1066 const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
1068 // Integer which specifies the frequency in milliseconds for detecting whether
1069 // plugin windows are hung.
1070 const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
1072 // Integer which specifies the timeout value to be used for SendMessageTimeout
1073 // to detect a hung plugin window.
1074 const char kPluginMessageResponseTimeout[] =
1075 "browser.plugin_message_response_timeout";
1077 // String which represents the dictionary name for our spell-checker.
1078 const char kSpellCheckDictionary[] = "spellcheck.dictionary";
1080 // String which represents whether we use the spelling service.
1081 const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
1083 // Dictionary of schemes used by the external protocol handler.
1084 // The value is true if the scheme must be ignored.
1085 const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
1087 // Keys used for MAC handling of SafeBrowsing requests.
1088 const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
1089 const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
1091 // Integer that specifies the index of the tab the user was on when they
1092 // last visited the options window.
1093 const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
1095 // Integer that specifies the index of the tab the user was on when they
1096 // last visited the content settings window.
1097 const char kContentSettingsWindowLastTabIndex[] =
1098 "content_settings_window.last_tab_index";
1100 // Integer that specifies the index of the tab the user was on when they
1101 // last visited the Certificate Manager window.
1102 const char kCertificateManagerWindowLastTabIndex[] =
1103 "certificate_manager_window.last_tab_index";
1105 // The mere fact that this pref is registered signals that we should show the
1106 // First Run Search Information bubble when the first browser window appears.
1107 // This preference is only registered by the first-run procedure.
1108 const char kShouldShowFirstRunBubble[] = "show-first-run-bubble";
1110 // The mere fact that this pref is registered signals that we should show the
1111 // smaller OEM First Run Search Information bubble when the first
1112 // browser window appears.
1113 // This preference is only registered by the first-run procedure.
1114 const char kShouldUseOEMFirstRunBubble[] = "show-OEM-first-run-bubble";
1116 // The mere fact that this pref is registered signals that we should show the
1117 // minimal First Run omnibox information bubble when the first
1118 // browser window appears.
1119 // This preference is only registered by the first-run procedure.
1120 const char kShouldUseMinimalFirstRunBubble[] = "show-minimal-first-run-bubble";
1122 // Signal that we should show the welcome page when we launch Chrome.
1123 const char kShouldShowWelcomePage[] = "show-welcome-page";
1125 // String containing the last known Google URL. We re-detect this on startup in
1126 // most cases, and use it to send traffic to the correct Google host or with the
1127 // correct Google domain/country code for whatever location the user is in.
1128 const char kLastKnownGoogleURL[] = "browser.last_known_google_url";
1130 // String containing the last prompted Google URL to the user.
1131 // If the user is using .x TLD for Google URL and gets prompted about .y TLD
1132 // for Google URL, and says "no", we should leave the search engine set to .x
1133 // but not prompt again until the domain changes away from .y.
1134 const char kLastPromptedGoogleURL[] = "browser.last_prompted_google_url";
1136 // String containing the last known intranet redirect URL, if any. See
1137 // intranet_redirect_detector.h for more information.
1138 const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
1140 // Integer containing the system Country ID the first time we checked the
1141 // template URL prepopulate data. This is used to avoid adding a whole bunch of
1142 // new search engine choices if prepopulation runs when the user's Country ID
1143 // differs from their previous Country ID. This pref does not exist until
1144 // prepopulation has been run at least once.
1145 const char kCountryIDAtInstall[] = "countryid_at_install";
1146 // OBSOLETE. Same as above, but uses the Windows-specific GeoID value instead.
1147 // Updated if found to the above key.
1148 const char kGeoIDAtInstall[] = "geoid_at_install";
1150 // An enum value of how the browser was shut down (see browser_shutdown.h).
1151 const char kShutdownType[] = "shutdown.type";
1152 // Number of processes that were open when the user shut down.
1153 const char kShutdownNumProcesses[] = "shutdown.num_processes";
1154 // Number of processes that were shut down using the slow path.
1155 const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
1157 // Whether to restart the current Chrome session automatically as the last thing
1158 // before shutting everything down.
1159 const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
1161 // Number of bookmarks/folders on the bookmark bar/other bookmark folder.
1162 const char kNumBookmarksOnBookmarkBar[] =
1163 "user_experience_metrics.num_bookmarks_on_bookmark_bar";
1164 const char kNumFoldersOnBookmarkBar[] =
1165 "user_experience_metrics.num_folders_on_bookmark_bar";
1166 const char kNumBookmarksInOtherBookmarkFolder[] =
1167 "user_experience_metrics.num_bookmarks_in_other_bookmark_folder";
1168 const char kNumFoldersInOtherBookmarkFolder[] =
1169 "user_experience_metrics.num_folders_in_other_bookmark_folder";
1171 // Number of keywords.
1172 const char kNumKeywords[] = "user_experience_metrics.num_keywords";
1174 // Placeholder preference for disabling voice / video chat if it is ever added.
1175 // Currently, this does not change any behavior.
1176 const char kDisableVideoAndChat[] = "disable_video_chat";
1178 // Whether Extensions are enabled.
1179 const char kDisableExtensions[] = "extensions.disabled";
1181 // Whether the plugin finder in the default plugin is enabled.
1182 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
1184 // Integer boolean representing the width (in pixels) of the container for
1185 // browser actions.
1186 const char kBrowserActionContainerWidth[] =
1187 "extensions.browseractions.container.width";
1189 // A whitelist of extension ids the user can install: exceptions from the
1190 // following blacklist. This is controlled by the administrator.
1191 const char kExtensionInstallAllowList[] = "extensions.install.allowlist";
1192 // A blacklist, containing extensions the user cannot install. This list can
1193 // conatin "*" meaning all extensions. This is controlled by the administrator.
1194 // This list should not be confused with the extension blacklist, which is
1195 // Google controlled.
1196 const char kExtensionInstallDenyList[] = "extensions.install.denylist";
1198 // Whether we have run the extension-alert system (see ExtensionGlobalError)
1199 // at least once for this profile.
1200 const char kExtensionAlertsInitializedPref[] = "extensions.alerts.initialized";
1202 // A list containing extensions that Chrome will silently install
1203 // at startup time. It is a list of strings, each string contains
1204 // an extension ID and an update URL, delimited by a semicolon.
1205 // This preference is set by an admin policy, and meant to be only
1206 // accessed through ExternalPolicyExtensionProvider.
1207 const char kExtensionInstallForceList[] = "extensions.install.forcelist";
1209 // Time of the last, and next scheduled, extensions auto-update checks.
1210 const char kLastExtensionsUpdateCheck[] = "extensions.autoupdate.last_check";
1211 const char kNextExtensionsUpdateCheck[] = "extensions.autoupdate.next_check";
1212 // Version number of last blacklist check
1213 const char kExtensionBlacklistUpdateVersion[] =
1214 "extensions.blacklistupdate.version";
1216 const char kExtensionSidebarWidth[] = "extensions.sidebar.width";
1218 // Number of times the NTP4 informational bubble has been shown.
1219 const char kNTP4IntroDisplayCount[] = "ntp.intro_display_count";
1221 // New Tab Page URLs that should not be shown as most visited thumbnails.
1222 const char kNTPMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
1224 // The URLs that have been pinned to the Most Visited section of the New Tab
1225 // Page.
1226 const char kNTPMostVisitedPinnedURLs[] = "ntp.pinned_urls";
1228 // Data downloaded from promo resource pages (JSON, RSS) to be used to
1229 // dynamically deliver data for the new tab page.
1230 const char kNTPPromoResourceCache[] = "ntp.promo_resource_cache";
1232 // Last time of update of promo_resource_cache.
1233 const char kNTPPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update";
1235 // Serves promo resources for the NTP.
1236 const char kNTPPromoResourceServer[] = "ntp.web_resource_server";
1238 // Serves tips for the NTP.
1239 const char kNTPTipsResourceServer[] = "ntp.tips_resource_server";
1241 // Serves dates to determine display of elements on the NTP.
1242 const char kNTPDateResourceServer[] = "ntp.date_resource_server";
1244 // Which bookmarks folder should be visible on the new tab page v4.
1245 const char kNTPShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
1247 // Which page should be visible on the new tab page v4
1248 const char kNTPShownPage[] = "ntp.shown_page";
1250 // Which sections should be visible on the new tab page
1251 // 1 - Show the most visited sites in a grid
1252 // 2 - Show the most visited sites as a list
1253 // 4 - Show the recent section
1254 // 8 - (Show tips -- DEPRECATED)
1255 // 16 - Show sync status
1256 const char kNTPShownSections[] = "ntp.shown_sections";
1258 // This pref is used for migrating the prefs for the NTP
1259 const char kNTPPrefVersion[] = "ntp.pref_version";
1261 // Dates between which the NTP should show a custom logo rather than the
1262 // standard one.
1263 const char kNTPCustomLogoStart[] = "ntp.alt_logo_start";
1264 const char kNTPCustomLogoEnd[] = "ntp.alt_logo_end";
1266 // The promo resource service version number.
1267 const char kNTPPromoVersion[] = "ntp.promo_version";
1269 // The last locale the promo was fetched for.
1270 const char kNTPPromoLocale[] = "ntp.promo_locale";
1272 // Whether promo should be shown to Dev builds, Beta and Dev, or all builds.
1273 const char kNTPPromoBuild[] = "ntp.promo_build";
1275 // True if user has explicitly closed the promo line.
1276 const char kNTPPromoClosed[] = "ntp.promo_closed";
1278 // Users are randomly divided into 100 groups in order to slowly roll out
1279 // special promos.
1280 const char kNTPPromoGroup[] = "ntp.promo_group";
1282 // Amount of time each promo group should be shown a promo that is being slowly
1283 // rolled out, in hours.
1284 const char kNTPPromoGroupTimeSlice[] = "ntp.promo_group_timeslice";
1286 // Number of groups to roll out this promo to.
1287 const char kNTPPromoGroupMax[] = "ntp.promo_group_max";
1289 // Number of views of this promo.
1290 const char kNTPPromoViews[] = "ntp.promo_views";
1292 // Max number of views of this promo.
1293 const char kNTPPromoViewsMax[] = "ntp.promo_views_max";
1295 // Promo line from server.
1296 const char kNTPPromoLine[] = "ntp.promo_line";
1298 // Dates between which the NTP should show a promotional line downloaded
1299 // from the promo server.
1300 const char kNTPPromoStart[] = "ntp.promo_start";
1301 const char kNTPPromoEnd[] = "ntp.promo_end";
1303 // A randomly generated group created to control the number of users we show the
1304 // sync promo to on the NTP.
1305 const char kNTPSyncPromoGroup[] = "ntp.sync_promo.group";
1307 // The maximum allowable group that can be shown the sync promotion on the NTP.
1308 const char kNTPSyncPromoGroupMax[] = "ntp.sync_promo.group_max";
1310 // Boolean indicating whether the web store is active for the current locale.
1311 const char kNTPWebStoreEnabled[] = "ntp.webstore_enabled";
1313 // The id of the last web store promo actually displayed on the NTP.
1314 const char kNTPWebStorePromoLastId[] = "ntp.webstore_last_promo_id";
1316 // The id of the current web store promo.
1317 const char kNTPWebStorePromoId[] = "ntp.webstorepromo.id";
1319 // The header line for the NTP web store promo.
1320 const char kNTPWebStorePromoHeader[] = "ntp.webstorepromo.header";
1322 // The button text for the NTP web store promo.
1323 const char kNTPWebStorePromoButton[] = "ntp.webstorepromo.button";
1325 // The button link for the NTP web store promo.
1326 const char kNTPWebStorePromoLink[] = "ntp.webstorepromo.link";
1328 // The image URL for the NTP web store promo logo.
1329 const char kNTPWebStorePromoLogo[] = "ntp.webstorepromo.logo";
1331 // The original URL for the NTP web store promo logo.
1332 const char kNTPWebStorePromoLogoSource[] = "ntp.webstorepromo.logo_source";
1334 // The "hide this" link text for the NTP web store promo.
1335 const char kNTPWebStorePromoExpire[] = "ntp.webstorepromo.expire";
1337 // Specifies what users should maximize the NTP web store promo.
1338 const char kNTPWebStorePromoUserGroup[] = "ntp.webstorepromo.usergroup";
1340 // Customized app page names that appear on the New Tab Page.
1341 const char kNTPAppPageNames[] = "ntp.app_page_names";
1343 // When true, web store promos will never be shown.
1344 const char kNTPHideWebStorePromo[] = "ntp.hide_webstore_promo";
1346 // The most up-to-date GPU blacklist downloaded from the web, which replaces
1347 // the one that's installed with chrome.
1348 const char kGpuBlacklist[] = "gpu_blacklist";
1350 // Last time of update of gpu_blacklist.
1351 const char kGpuBlacklistUpdate[] = "gpu_blacklist_update";
1353 const char kDevToolsDisabled[] = "devtools.disabled";
1355 // A boolean specifying whether dev tools window should be opened docked.
1356 const char kDevToolsOpenDocked[] = "devtools.open_docked";
1358 // Integer location of the split bar in the browser view.
1359 const char kDevToolsSplitLocation[] = "devtools.split_location";
1361 // 64-bit integer serialization of the base::Time when the last sync occurred.
1362 const char kSyncLastSyncedTime[] = "sync.last_synced_time";
1364 // Boolean specifying whether the user finished setting up sync.
1365 const char kSyncHasSetupCompleted[] = "sync.has_setup_completed";
1367 // Boolean specifying whether to automatically sync all data types (including
1368 // future ones, as they're added). If this is true, the following preferences
1369 // (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored.
1370 const char kSyncKeepEverythingSynced[] = "sync.keep_everything_synced";
1372 // Booleans specifying whether the user has selected to sync the following
1373 // datatypes.
1374 const char kSyncBookmarks[] = "sync.bookmarks";
1375 const char kSyncPasswords[] = "sync.passwords";
1376 const char kSyncPreferences[] = "sync.preferences";
1377 const char kSyncApps[] = "sync.apps";
1378 const char kSyncAutofill[] = "sync.autofill";
1379 const char kSyncAutofillProfile[] = "sync.autofill_profile";
1380 const char kSyncThemes[] = "sync.themes";
1381 const char kSyncTypedUrls[] = "sync.typed_urls";
1382 const char kSyncExtensions[] = "sync.extensions";
1383 const char kSyncExtensionSettings[] = "sync.extension_settings";
1384 const char kSyncSearchEngines[] = "sync.search_engines";
1385 const char kSyncSessions[] = "sync.sessions";
1386 const char kSyncAppNotifications[] = "sync.app_notifications";
1388 // Boolean used by enterprise configuration management in order to lock down
1389 // sync.
1390 const char kSyncManaged[] = "sync.managed";
1392 // Boolean to prevent sync from automatically starting up. This is
1393 // used when sync is disabled by the user via the privacy dashboard.
1394 const char kSyncSuppressStart[] = "sync.suppress_start";
1396 // List of the currently acknowledged set of sync types, used to figure out
1397 // if a new sync type has rolled out so we can notify the user.
1398 const char kSyncAcknowledgedSyncTypes[] = "sync.acknowledged_types";
1400 // Dictionary from sync model type (as an int) to max invalidation
1401 // version (int64 represented as a string).
1402 const char kSyncMaxInvalidationVersions[] = "sync.max_invalidation_versions";
1404 // A string that can be used to restore sync encryption infrastructure on
1405 // startup so that the user doesn't need to provide credentials on each start.
1406 const char kSyncEncryptionBootstrapToken[] =
1407 "sync.encryption_bootstrap_token";
1409 // Boolean tracking whether the user authenticated with OAuth.
1410 const char kSyncUsingOAuth[] = "sync.using_oauth";
1412 // Boolean tracking whether the user chose to specify a secondary encryption
1413 // passphrase.
1414 const char kSyncUsingSecondaryPassphrase[] = "sync.using_secondary_passphrase";
1416 // String that identifies the user logged into sync and other google services.
1417 const char kGoogleServicesUsername[] = "google.services.username";
1419 // Tracks the number of times that we have shown the sync promo at startup.
1420 const char kSyncPromoStartupCount[] = "sync_promo.startup_count";
1422 // A counter to remember the number of times we've been to the sync promo page
1423 // (not at startup).
1424 const char kSyncPromoViewCount[] = "sync_promo.view_count";
1426 // Boolean tracking whether the user chose to skip the sync promo.
1427 const char kSyncPromoUserSkipped[] = "sync_promo.user_skipped";
1429 // Boolean that specifies if the sync promo is allowed to show on first run.
1430 // This preference is specified in the master preference file to suppress the
1431 // sync promo for some installations.
1432 const char kSyncPromoShowOnFirstRunAllowed[] =
1433 "sync_promo.show_on_first_run_allowed";
1435 // Create web application shortcut dialog preferences.
1436 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
1437 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
1438 const char kWebAppCreateInQuickLaunchBar[] =
1439 "browser.web_app.create_in_quick_launch_bar";
1441 // Dictionary that maps Geolocation network provider server URLs to
1442 // corresponding access token.
1443 const char kGeolocationAccessToken[] = "geolocation.access_token";
1445 // Whether PasswordForms have been migrated from the WedDataService to the
1446 // LoginDatabase.
1447 const char kLoginDatabaseMigrated[] = "login_database.migrated";
1449 // Boolean that indicates whether to allow firewall traversal while trying to
1450 // establish the initial connection from the client or host.
1451 const char kRemoteAccessClientFirewallTraversal[] =
1452 "remote_access.client_firewall_traversal";
1453 const char kRemoteAccessHostFirewallTraversal[] =
1454 "remote_access.host_firewall_traversal";
1456 // The root URL of the cloud print service.
1457 const char kCloudPrintServiceURL[] = "cloud_print.service_url";
1459 // The URL to use to sign in to cloud print.
1460 const char kCloudPrintSigninURL[] = "cloud_print.signin_url";
1462 // The last requested size of the dialog as it was closed.
1463 const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
1464 const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
1465 const char kCloudPrintSigninDialogWidth[] =
1466 "cloud_print.signin_dialog_size.width";
1467 const char kCloudPrintSigninDialogHeight[] =
1468 "cloud_print.signin_dialog_size.height";
1470 // The list of BackgroundContents that should be loaded when the browser
1471 // launches.
1472 const char kRegisteredBackgroundContents[] = "background_contents.registered";
1474 // String that lists supported HTTP authentication schemes.
1475 const char kAuthSchemes[] = "auth.schemes";
1477 // Boolean that specifies whether to disable CNAME lookups when generating
1478 // Kerberos SPN.
1479 const char kDisableAuthNegotiateCnameLookup[] =
1480 "auth.disable_negotiate_cname_lookup";
1481 // Boolean that specifies whether to include the port in a generated Kerberos
1482 // SPN.
1483 const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
1484 // Whitelist containing servers for which Integrated Authentication is enabled.
1485 const char kAuthServerWhitelist[] = "auth.server_whitelist";
1486 // Whitelist containing servers Chrome is allowed to do Kerberos delegation
1487 // with.
1488 const char kAuthNegotiateDelegateWhitelist[] =
1489 "auth.negotiate_delegate_whitelist";
1490 // String that specifies the name of a custom GSSAPI library to load.
1491 const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
1493 // Boolean that specifies whether to allow basic auth prompting on cross-
1494 // domain sub-content requests.
1495 const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
1497 #if defined(OS_CHROMEOS)
1498 // Dictionary for transient storage of settings that should go into signed
1499 // settings storage before owner has been assigned.
1500 const char kSignedSettingsTempStorage[] = "signed_settings_temp_storage";
1502 // The hardware keyboard layout of the device. This should look like
1503 // "xkb:us::eng".
1504 const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
1506 // An integer pref which shows number of times carrier deal promo
1507 // notification has been shown to user.
1508 const char kCarrierDealPromoShown[] =
1509 "settings.internet.mobile.carrier_deal_promo_shown";
1510 #endif
1512 // Whether there is a Flash version installed that supports clearing LSO data.
1513 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
1515 // String which specifies where to store the disk cache.
1516 const char kDiskCacheDir[] = "browser.disk_cache_dir";
1518 // Specifies the release channel that the device should be locked to.
1519 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an
1520 // empty string, in which case the value will be ignored.
1521 // TODO(dubroy): This preference may not be necessary once
1522 // http://crosbug.com/17015 is implemented and the update engine can just
1523 // fetch the correct value from the policy.
1524 const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
1526 // *************** SERVICE PREFS ***************
1527 // These are attached to the service process.
1529 const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
1530 // The unique id for this instance of the cloud print proxy.
1531 const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
1532 // The GAIA auth token for Cloud Print
1533 const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
1534 // The GAIA auth token used by Cloud Print to authenticate with the XMPP server
1535 // This should eventually go away because the above token should work for both.
1536 const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token";
1537 // The email address of the account used to authenticate with the Cloud Print
1538 // server.
1539 const char kCloudPrintEmail[] = "cloud_print.email";
1540 // Settings specific to underlying print system.
1541 const char kCloudPrintPrintSystemSettings[] =
1542 "cloud_print.print_system_settings";
1543 // A boolean indicating whether we should poll for print jobs when don't have
1544 // an XMPP connection (false by default).
1545 const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
1546 const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
1547 const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
1548 // Indicates whether the Mac Virtual driver is enabled.
1549 const char kVirtualPrinterDriverEnabled[] = "cloud_print.enable_virtual_driver";
1551 // Preference to store proxy settings.
1552 const char kProxy[] = "proxy";
1553 const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
1555 // Preferences that are exclusively used to store managed values for default
1556 // content settings.
1557 const char kManagedDefaultCookiesSetting[] =
1558 "profile.managed_default_content_settings.cookies";
1559 const char kManagedDefaultImagesSetting[] =
1560 "profile.managed_default_content_settings.images";
1561 const char kManagedDefaultJavaScriptSetting[] =
1562 "profile.managed_default_content_settings.javascript";
1563 const char kManagedDefaultPluginsSetting[] =
1564 "profile.managed_default_content_settings.plugins";
1565 const char kManagedDefaultPopupsSetting[] =
1566 "profile.managed_default_content_settings.popups";
1567 const char kManagedDefaultGeolocationSetting[] =
1568 "profile.managed_default_content_settings.geolocation";
1569 const char kManagedDefaultNotificationsSetting[] =
1570 "profile.managed_default_content_settings.notifications";
1572 // Preferences that are exclusively used to store managed
1573 // content settings patterns.
1574 const char kManagedCookiesAllowedForUrls[] =
1575 "profile.managed_cookies_allowed_for_urls";
1576 const char kManagedCookiesBlockedForUrls[] =
1577 "profile.managed_cookies_blocked_for_urls";
1578 const char kManagedCookiesSessionOnlyForUrls[] =
1579 "profile.managed_cookies_sessiononly_for_urls";
1580 const char kManagedImagesAllowedForUrls[] =
1581 "profile.managed_images_allowed_for_urls";
1582 const char kManagedImagesBlockedForUrls[] =
1583 "profile.managed_images_blocked_for_urls";
1584 const char kManagedJavaScriptAllowedForUrls[] =
1585 "profile.managed_javascript_allowed_for_urls";
1586 const char kManagedJavaScriptBlockedForUrls[] =
1587 "profile.managed_javascript_blocked_for_urls";
1588 const char kManagedPluginsAllowedForUrls[] =
1589 "profile.managed_plugins_allowed_for_urls";
1590 const char kManagedPluginsBlockedForUrls[] =
1591 "profile.managed_plugins_blocked_for_urls";
1592 const char kManagedPopupsAllowedForUrls[] =
1593 "profile.managed_popups_allowed_for_urls";
1594 const char kManagedPopupsBlockedForUrls[] =
1595 "profile.managed_popups_blocked_for_urls";
1596 const char kManagedNotificationsAllowedForUrls[] =
1597 "profile.managed_notifications_allowed_for_urls";
1598 const char kManagedNotificationsBlockedForUrls[] =
1599 "profile.managed_notifications_blocked_for_urls";
1600 const char kManagedAutoSelectCertificateForUrls[] =
1601 "profile.managed_auto_select_certificate_for_urls";
1603 // Set to true if the user created a login item so we should not modify it when
1604 // uninstalling background apps.
1605 const char kUserCreatedLoginItem[] = "background_mode.user_created_login_item";
1607 // Set to true if background mode is enabled on this browser.
1608 const char kBackgroundModeEnabled[] = "background_mode.enabled";
1610 // List of protocol handlers.
1611 const char kRegisteredProtocolHandlers[] =
1612 "custom_handlers.registered_protocol_handlers";
1614 // List of protocol handlers the user has requested not to be asked about again.
1615 const char kIgnoredProtocolHandlers[] =
1616 "custom_handlers.ignored_protocol_handlers";
1618 // Whether user-specified handlers for protocols and content types can be
1619 // specified.
1620 const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
1622 // Integers that specify the policy refresh rate for device- and user-policy in
1623 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
1624 // by the cloud policy subsystem.
1625 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
1626 const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate";
1628 // String that represents the recovery component last downloaded version. This
1629 // takes the usual 'a.b.c.d' notation.
1630 const char kRecoveryComponentVersion[] = "recovery_component.version";
1632 // String that stores the component updater last known state. This is used for
1633 // troubleshooting.
1634 const char kComponentUpdaterState[] = "component_updater.state";
1636 } // namespace prefs