OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/pref_names.h" | 5 #include "chrome/common/pref_names.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "chrome/common/pref_font_webkit_names.h" | 8 #include "chrome/common/pref_font_webkit_names.h" |
9 | 9 |
10 namespace prefs { | 10 namespace prefs { |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 | 367 |
368 // Enum that specifies whether Incognito mode is: | 368 // Enum that specifies whether Incognito mode is: |
369 // 0 - Enabled. Default behaviour. Default mode is available on demand. | 369 // 0 - Enabled. Default behaviour. Default mode is available on demand. |
370 // 1 - Disabled. Used cannot browse pages in Incognito mode. | 370 // 1 - Disabled. Used cannot browse pages in Incognito mode. |
371 // 2 - Forced. All pages/sessions are forced into Incognito. | 371 // 2 - Forced. All pages/sessions are forced into Incognito. |
372 const char kIncognitoModeAvailability[] = "incognito.mode_availability"; | 372 const char kIncognitoModeAvailability[] = "incognito.mode_availability"; |
373 | 373 |
374 // Boolean that is true when Suggest support is enabled. | 374 // Boolean that is true when Suggest support is enabled. |
375 const char kSearchSuggestEnabled[] = "search.suggest_enabled"; | 375 const char kSearchSuggestEnabled[] = "search.suggest_enabled"; |
376 | 376 |
377 #if defined(OS_ANDROID) | 377 #if defined(ANDROID_JAVA_UI) |
378 // String indicating the Contextual Search enabled state. | 378 // String indicating the Contextual Search enabled state. |
379 // "false" - opt-out (disabled) | 379 // "false" - opt-out (disabled) |
380 // "" (empty string) - undecided | 380 // "" (empty string) - undecided |
381 // "true" - opt-in (enabled) | 381 // "true" - opt-in (enabled) |
382 const char kContextualSearchEnabled[] = "search.contextual_search_enabled"; | 382 const char kContextualSearchEnabled[] = "search.contextual_search_enabled"; |
383 #endif | 383 #endif |
384 | 384 |
385 #if defined(OS_MACOSX) | 385 #if defined(OS_MACOSX) |
386 // Boolean that indicates whether the browser should put up a confirmation | 386 // Boolean that indicates whether the browser should put up a confirmation |
387 // window when the user is attempting to quit. Mac only. | 387 // window when the user is attempting to quit. Mac only. |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 | 994 |
995 // Whether the user has selected "Same as billing" for the shipping address when | 995 // Whether the user has selected "Same as billing" for the shipping address when |
996 // using Google Wallet. | 996 // using Google Wallet. |
997 const char kAutofillDialogWalletShippingSameAsBilling[] = | 997 const char kAutofillDialogWalletShippingSameAsBilling[] = |
998 "autofill.wallet_shipping_same_as_billing"; | 998 "autofill.wallet_shipping_same_as_billing"; |
999 | 999 |
1000 // The number of times the generated credit card bubble has been shown. | 1000 // The number of times the generated credit card bubble has been shown. |
1001 const char kAutofillGeneratedCardBubbleTimesShown[] = | 1001 const char kAutofillGeneratedCardBubbleTimesShown[] = |
1002 "autofill.generated_card_bubble_times_shown"; | 1002 "autofill.generated_card_bubble_times_shown"; |
1003 | 1003 |
1004 #if defined(OS_ANDROID) | 1004 #if defined(ANDROID_JAVA_UI) |
1005 // A dictionary that tracks the defaults to be set on the next invocation | 1005 // A dictionary that tracks the defaults to be set on the next invocation |
1006 // of the requestAutocomplete dialog. | 1006 // of the requestAutocomplete dialog. |
1007 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults"; | 1007 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults"; |
1008 #endif | 1008 #endif |
1009 | 1009 |
1010 #if !defined(OS_ANDROID) | 1010 #if !defined(OS_ANDROID) |
1011 const char kPinnedTabs[] = "pinned_tabs"; | 1011 const char kPinnedTabs[] = "pinned_tabs"; |
1012 #endif | 1012 #endif |
1013 | 1013 |
1014 // Preference to disable 3D APIs (WebGL, Pepper 3D). | 1014 // Preference to disable 3D APIs (WebGL, Pepper 3D). |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 | 1259 |
1260 // On Chrome OS, total number of kernel crashes since the last report. | 1260 // On Chrome OS, total number of kernel crashes since the last report. |
1261 const char kStabilityKernelCrashCount[] = | 1261 const char kStabilityKernelCrashCount[] = |
1262 "user_experience_metrics.stability.kernel_crash_count"; | 1262 "user_experience_metrics.stability.kernel_crash_count"; |
1263 | 1263 |
1264 // On Chrome OS, total number of unclean system shutdowns since the | 1264 // On Chrome OS, total number of unclean system shutdowns since the |
1265 // last report. | 1265 // last report. |
1266 const char kStabilitySystemUncleanShutdownCount[] = | 1266 const char kStabilitySystemUncleanShutdownCount[] = |
1267 "user_experience_metrics.stability.system_unclean_shutdowns"; | 1267 "user_experience_metrics.stability.system_unclean_shutdowns"; |
1268 | 1268 |
1269 #if defined(OS_ANDROID) | 1269 #if defined(ANDROID_JAVA_UI) |
1270 // Activity type that is currently in the foreground for the UMA session. | 1270 // Activity type that is currently in the foreground for the UMA session. |
1271 // Uses the ActivityTypeIds::Type enum. | 1271 // Uses the ActivityTypeIds::Type enum. |
1272 const char kStabilityForegroundActivityType[] = | 1272 const char kStabilityForegroundActivityType[] = |
1273 "user_experience_metrics.stability.current_foreground_activity_type"; | 1273 "user_experience_metrics.stability.current_foreground_activity_type"; |
1274 | 1274 |
1275 // Tracks which Activities were launched during the last session. | 1275 // Tracks which Activities were launched during the last session. |
1276 // See |metrics_service_android.cc| for its usage. | 1276 // See |metrics_service_android.cc| for its usage. |
1277 const char kStabilityLaunchedActivityFlags[] = | 1277 const char kStabilityLaunchedActivityFlags[] = |
1278 "user_experience_metrics.stability.launched_activity_flags"; | 1278 "user_experience_metrics.stability.launched_activity_flags"; |
1279 | 1279 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1419 | 1419 |
1420 // Whether Extensions are enabled. | 1420 // Whether Extensions are enabled. |
1421 const char kDisableExtensions[] = "extensions.disabled"; | 1421 const char kDisableExtensions[] = "extensions.disabled"; |
1422 | 1422 |
1423 // Whether the plugin finder that lets you install missing plugins is enabled. | 1423 // Whether the plugin finder that lets you install missing plugins is enabled. |
1424 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; | 1424 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; |
1425 | 1425 |
1426 // Customized app page names that appear on the New Tab Page. | 1426 // Customized app page names that appear on the New Tab Page. |
1427 const char kNtpAppPageNames[] = "ntp.app_page_names"; | 1427 const char kNtpAppPageNames[] = "ntp.app_page_names"; |
1428 | 1428 |
1429 #if defined(OS_ANDROID) | 1429 #if defined(ANDROID_JAVA_UI) |
1430 // Keeps track of currently open tabs collapsed state in the Other Devices menu. | 1430 // Keeps track of currently open tabs collapsed state in the Other Devices menu. |
1431 const char kNtpCollapsedCurrentlyOpenTabs[] = "ntp.collapsed_open_tabs"; | 1431 const char kNtpCollapsedCurrentlyOpenTabs[] = "ntp.collapsed_open_tabs"; |
1432 #endif | 1432 #endif |
1433 | 1433 |
1434 // Keeps track of which sessions are collapsed in the Other Devices menu. | 1434 // Keeps track of which sessions are collapsed in the Other Devices menu. |
1435 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; | 1435 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; |
1436 | 1436 |
1437 #if defined(OS_ANDROID) | 1437 #if defined(ANDROID_JAVA_UI) |
1438 // Keeps track of recently closed tabs collapsed state in the Other Devices | 1438 // Keeps track of recently closed tabs collapsed state in the Other Devices |
1439 // menu. | 1439 // menu. |
1440 const char kNtpCollapsedRecentlyClosedTabs[] = | 1440 const char kNtpCollapsedRecentlyClosedTabs[] = |
1441 "ntp.collapsed_recently_closed_tabs"; | 1441 "ntp.collapsed_recently_closed_tabs"; |
1442 | 1442 |
1443 // Keeps track of snapshot documents collapsed state in the Other Devices menu. | 1443 // Keeps track of snapshot documents collapsed state in the Other Devices menu. |
1444 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document"; | 1444 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document"; |
1445 | 1445 |
1446 // Keeps track of sync promo collapsed state in the Other Devices menu. | 1446 // Keeps track of sync promo collapsed state in the Other Devices menu. |
1447 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo"; | 1447 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo"; |
1448 #endif | 1448 #endif |
1449 | 1449 |
1450 // Which page should be visible on the new tab page v4 | 1450 // Which page should be visible on the new tab page v4 |
1451 const char kNtpShownPage[] = "ntp.shown_page"; | 1451 const char kNtpShownPage[] = "ntp.shown_page"; |
1452 | 1452 |
1453 #if defined(OS_ANDROID) | 1453 #if defined(ANDROID_JAVA_UI) |
1454 // Ordered list of website suggestions shown on the new tab page that will allow | 1454 // Ordered list of website suggestions shown on the new tab page that will allow |
1455 // retaining the order even if the suggestions change over time. | 1455 // retaining the order even if the suggestions change over time. |
1456 const char kNTPSuggestionsURL[] = "ntp.suggestions_url"; | 1456 const char kNTPSuggestionsURL[] = "ntp.suggestions_url"; |
1457 | 1457 |
1458 // Whether the suggestion was derived from personal data. | 1458 // Whether the suggestion was derived from personal data. |
1459 const char kNTPSuggestionsIsPersonal[] = "ntp.suggestions_is_personal"; | 1459 const char kNTPSuggestionsIsPersonal[] = "ntp.suggestions_is_personal"; |
1460 #endif | 1460 #endif |
1461 | 1461 |
1462 // A private RSA key for ADB handshake. | 1462 // A private RSA key for ADB handshake. |
1463 const char kDevToolsAdbKey[] = "devtools.adb_key"; | 1463 const char kDevToolsAdbKey[] = "devtools.adb_key"; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1545 // Create web application shortcut dialog preferences. | 1545 // Create web application shortcut dialog preferences. |
1546 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop"; | 1546 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop"; |
1547 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu"; | 1547 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu"; |
1548 const char kWebAppCreateInQuickLaunchBar[] = | 1548 const char kWebAppCreateInQuickLaunchBar[] = |
1549 "browser.web_app.create_in_quick_launch_bar"; | 1549 "browser.web_app.create_in_quick_launch_bar"; |
1550 | 1550 |
1551 // Dictionary that maps Geolocation network provider server URLs to | 1551 // Dictionary that maps Geolocation network provider server URLs to |
1552 // corresponding access token. | 1552 // corresponding access token. |
1553 const char kGeolocationAccessToken[] = "geolocation.access_token"; | 1553 const char kGeolocationAccessToken[] = "geolocation.access_token"; |
1554 | 1554 |
1555 #if defined(OS_ANDROID) | 1555 #if defined(ANDROID_JAVA_UI) |
1556 // Boolean that controls the enabled-state of Geolocation in content. | 1556 // Boolean that controls the enabled-state of Geolocation in content. |
1557 const char kGeolocationEnabled[] = "geolocation.enabled"; | 1557 const char kGeolocationEnabled[] = "geolocation.enabled"; |
1558 #endif | 1558 #endif |
1559 | 1559 |
1560 #if defined(ENABLE_GOOGLE_NOW) | 1560 #if defined(ENABLE_GOOGLE_NOW) |
1561 // Boolean that is true when Google services can use the user's location. | 1561 // Boolean that is true when Google services can use the user's location. |
1562 const char kGoogleGeolocationAccessEnabled[] = | 1562 const char kGoogleGeolocationAccessEnabled[] = |
1563 "googlegeolocationaccess.enabled"; | 1563 "googlegeolocationaccess.enabled"; |
1564 #endif | 1564 #endif |
1565 | 1565 |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2115 // A boolean pref that enables the (private) pepper GetDeviceID() call and | 2115 // A boolean pref that enables the (private) pepper GetDeviceID() call and |
2116 // enables the use of remote attestation for content protection. | 2116 // enables the use of remote attestation for content protection. |
2117 const char kEnableDRM[] = "settings.privacy.drm_enabled"; | 2117 const char kEnableDRM[] = "settings.privacy.drm_enabled"; |
2118 | 2118 |
2119 // An integer per-profile pref that signals if the watchdog extension is | 2119 // An integer per-profile pref that signals if the watchdog extension is |
2120 // installed and active. We need to know if the watchdog extension active for | 2120 // installed and active. We need to know if the watchdog extension active for |
2121 // ActivityLog initialization before the extension system is initialized. | 2121 // ActivityLog initialization before the extension system is initialized. |
2122 const char kWatchdogExtensionActive[] = | 2122 const char kWatchdogExtensionActive[] = |
2123 "profile.extensions.activity_log.num_consumers_active"; | 2123 "profile.extensions.activity_log.num_consumers_active"; |
2124 | 2124 |
2125 #if defined(OS_ANDROID) | 2125 #if defined(ANDROID_JAVA_UI) |
2126 // A list of partner bookmark rename/remove mappings. | 2126 // A list of partner bookmark rename/remove mappings. |
2127 // Each list item is a dictionary containing a "url", a "provider_title" and | 2127 // Each list item is a dictionary containing a "url", a "provider_title" and |
2128 // "mapped_title" entries, detailing the bookmark target URL (if any), the title | 2128 // "mapped_title" entries, detailing the bookmark target URL (if any), the title |
2129 // given by the PartnerBookmarksProvider and either the user-visible renamed | 2129 // given by the PartnerBookmarksProvider and either the user-visible renamed |
2130 // title or an empty string if the bookmark node was removed. | 2130 // title or an empty string if the bookmark node was removed. |
2131 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; | 2131 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; |
2132 #endif | 2132 #endif |
2133 | 2133 |
2134 // Whether DNS Quick Check is disabled in proxy resolution. | 2134 // Whether DNS Quick Check is disabled in proxy resolution. |
2135 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; | 2135 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2171 // Policy that indicates how to handle animated images. | 2171 // Policy that indicates how to handle animated images. |
2172 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; | 2172 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; |
2173 #endif | 2173 #endif |
2174 | 2174 |
2175 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload"; | 2175 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload"; |
2176 | 2176 |
2177 const char kAllowDinosaurEasterEgg[] = | 2177 const char kAllowDinosaurEasterEgg[] = |
2178 "allow_dinosaur_easter_egg"; | 2178 "allow_dinosaur_easter_egg"; |
2179 | 2179 |
2180 } // namespace prefs | 2180 } // namespace prefs |
OLD | NEW |