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/macros.h" | 7 #include "base/macros.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "chrome/common/features.h" | 9 #include "chrome/common/features.h" |
10 #include "chrome/common/pref_font_webkit_names.h" | 10 #include "chrome/common/pref_font_webkit_names.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 | 392 |
393 // Enum that specifies whether Incognito mode is: | 393 // Enum that specifies whether Incognito mode is: |
394 // 0 - Enabled. Default behaviour. Default mode is available on demand. | 394 // 0 - Enabled. Default behaviour. Default mode is available on demand. |
395 // 1 - Disabled. Used cannot browse pages in Incognito mode. | 395 // 1 - Disabled. Used cannot browse pages in Incognito mode. |
396 // 2 - Forced. All pages/sessions are forced into Incognito. | 396 // 2 - Forced. All pages/sessions are forced into Incognito. |
397 const char kIncognitoModeAvailability[] = "incognito.mode_availability"; | 397 const char kIncognitoModeAvailability[] = "incognito.mode_availability"; |
398 | 398 |
399 // Boolean that is true when Suggest support is enabled. | 399 // Boolean that is true when Suggest support is enabled. |
400 const char kSearchSuggestEnabled[] = "search.suggest_enabled"; | 400 const char kSearchSuggestEnabled[] = "search.suggest_enabled"; |
401 | 401 |
402 #if BUILDFLAG(ANDROID_JAVA_UI) | 402 #if defined(OS_ANDROID) |
403 // String indicating the Contextual Search enabled state. | 403 // String indicating the Contextual Search enabled state. |
404 // "false" - opt-out (disabled) | 404 // "false" - opt-out (disabled) |
405 // "" (empty string) - undecided | 405 // "" (empty string) - undecided |
406 // "true" - opt-in (enabled) | 406 // "true" - opt-in (enabled) |
407 const char kContextualSearchEnabled[] = "search.contextual_search_enabled"; | 407 const char kContextualSearchEnabled[] = "search.contextual_search_enabled"; |
408 #endif | 408 #endif // defined(OS_ANDROID) |
409 | 409 |
410 #if defined(OS_MACOSX) | 410 #if defined(OS_MACOSX) |
411 // Boolean that indicates whether the browser should put up a confirmation | 411 // Boolean that indicates whether the browser should put up a confirmation |
412 // window when the user is attempting to quit. Mac only. | 412 // window when the user is attempting to quit. Mac only. |
413 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; | 413 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; |
414 | 414 |
415 // Boolean that indicates whether the browser should show the toolbar when it's | 415 // Boolean that indicates whether the browser should show the toolbar when it's |
416 // in fullscreen. Mac only. | 416 // in fullscreen. Mac only. |
417 const char kShowFullscreenToolbar[] = "browser.show_fullscreen_toolbar"; | 417 const char kShowFullscreenToolbar[] = "browser.show_fullscreen_toolbar"; |
418 | 418 |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 // to "1.0.0.0". | 1350 // to "1.0.0.0". |
1351 const char kProfileCreatedByVersion[] = "profile.created_by_version"; | 1351 const char kProfileCreatedByVersion[] = "profile.created_by_version"; |
1352 | 1352 |
1353 // A map of profile data directory to cached information. This cache can be | 1353 // A map of profile data directory to cached information. This cache can be |
1354 // used to display information about profiles without actually having to load | 1354 // used to display information about profiles without actually having to load |
1355 // them. | 1355 // them. |
1356 const char kProfileInfoCache[] = "profile.info_cache"; | 1356 const char kProfileInfoCache[] = "profile.info_cache"; |
1357 | 1357 |
1358 // Deprecated preference for metric / crash reporting on Android. Use | 1358 // Deprecated preference for metric / crash reporting on Android. Use |
1359 // kMetricsReportingEnabled instead. | 1359 // kMetricsReportingEnabled instead. |
1360 #if BUILDFLAG(ANDROID_JAVA_UI) | 1360 #if defined(OS_ANDROID) |
1361 const char kCrashReportingEnabled[] = | 1361 const char kCrashReportingEnabled[] = |
1362 "user_experience_metrics_crash.reporting_enabled"; | 1362 "user_experience_metrics_crash.reporting_enabled"; |
1363 #endif | 1363 #endif // defined(OS_ANDROID) |
1364 | 1364 |
1365 // This is the location of a list of dictionaries of plugin stability stats. | 1365 // This is the location of a list of dictionaries of plugin stability stats. |
1366 const char kStabilityPluginStats[] = | 1366 const char kStabilityPluginStats[] = |
1367 "user_experience_metrics.stability.plugin_stats2"; | 1367 "user_experience_metrics.stability.plugin_stats2"; |
1368 | 1368 |
1369 // On Chrome OS, total number of non-Chrome user process crashes | 1369 // On Chrome OS, total number of non-Chrome user process crashes |
1370 // since the last report. | 1370 // since the last report. |
1371 const char kStabilityOtherUserCrashCount[] = | 1371 const char kStabilityOtherUserCrashCount[] = |
1372 "user_experience_metrics.stability.other_user_crash_count"; | 1372 "user_experience_metrics.stability.other_user_crash_count"; |
1373 | 1373 |
1374 // On Chrome OS, total number of kernel crashes since the last report. | 1374 // On Chrome OS, total number of kernel crashes since the last report. |
1375 const char kStabilityKernelCrashCount[] = | 1375 const char kStabilityKernelCrashCount[] = |
1376 "user_experience_metrics.stability.kernel_crash_count"; | 1376 "user_experience_metrics.stability.kernel_crash_count"; |
1377 | 1377 |
1378 // On Chrome OS, total number of unclean system shutdowns since the | 1378 // On Chrome OS, total number of unclean system shutdowns since the |
1379 // last report. | 1379 // last report. |
1380 const char kStabilitySystemUncleanShutdownCount[] = | 1380 const char kStabilitySystemUncleanShutdownCount[] = |
1381 "user_experience_metrics.stability.system_unclean_shutdowns"; | 1381 "user_experience_metrics.stability.system_unclean_shutdowns"; |
1382 | 1382 |
1383 #if BUILDFLAG(ANDROID_JAVA_UI) | 1383 #if defined(OS_ANDROID) |
1384 // Activity type that is currently in the foreground for the UMA session. | 1384 // Activity type that is currently in the foreground for the UMA session. |
1385 // Uses the ActivityTypeIds::Type enum. | 1385 // Uses the ActivityTypeIds::Type enum. |
1386 const char kStabilityForegroundActivityType[] = | 1386 const char kStabilityForegroundActivityType[] = |
1387 "user_experience_metrics.stability.current_foreground_activity_type"; | 1387 "user_experience_metrics.stability.current_foreground_activity_type"; |
1388 | 1388 |
1389 // Tracks which Activities were launched during the last session. | 1389 // Tracks which Activities were launched during the last session. |
1390 // See |metrics_service_android.cc| for its usage. | 1390 // See |metrics_service_android.cc| for its usage. |
1391 const char kStabilityLaunchedActivityFlags[] = | 1391 const char kStabilityLaunchedActivityFlags[] = |
1392 "user_experience_metrics.stability.launched_activity_flags"; | 1392 "user_experience_metrics.stability.launched_activity_flags"; |
1393 | 1393 |
1394 // List pref: Counts how many times each Activity was launched. | 1394 // List pref: Counts how many times each Activity was launched. |
1395 // Indexed into by ActivityTypeIds::Type. | 1395 // Indexed into by ActivityTypeIds::Type. |
1396 const char kStabilityLaunchedActivityCounts[] = | 1396 const char kStabilityLaunchedActivityCounts[] = |
1397 "user_experience_metrics.stability.launched_activity_counts"; | 1397 "user_experience_metrics.stability.launched_activity_counts"; |
1398 | 1398 |
1399 // List pref: Counts how many times each Activity type was in the foreground | 1399 // List pref: Counts how many times each Activity type was in the foreground |
1400 // when a UMA session failed to be shut down properly. | 1400 // when a UMA session failed to be shut down properly. |
1401 // Indexed into by ActivityTypeIds::Type. | 1401 // Indexed into by ActivityTypeIds::Type. |
1402 const char kStabilityCrashedActivityCounts[] = | 1402 const char kStabilityCrashedActivityCounts[] = |
1403 "user_experience_metrics.stability.crashed_activity_counts"; | 1403 "user_experience_metrics.stability.crashed_activity_counts"; |
1404 #endif | 1404 #endif // defined(OS_ANDROID) |
1405 | 1405 |
1406 // The keys below are used for the dictionaries in the | 1406 // The keys below are used for the dictionaries in the |
1407 // kStabilityPluginStats list. | 1407 // kStabilityPluginStats list. |
1408 const char kStabilityPluginName[] = "name"; | 1408 const char kStabilityPluginName[] = "name"; |
1409 const char kStabilityPluginLaunches[] = "launches"; | 1409 const char kStabilityPluginLaunches[] = "launches"; |
1410 const char kStabilityPluginInstances[] = "instances"; | 1410 const char kStabilityPluginInstances[] = "instances"; |
1411 const char kStabilityPluginCrashes[] = "crashes"; | 1411 const char kStabilityPluginCrashes[] = "crashes"; |
1412 const char kStabilityPluginLoadingErrors[] = "loading_errors"; | 1412 const char kStabilityPluginLoadingErrors[] = "loading_errors"; |
1413 | 1413 |
1414 // String containing the version of Chrome for which Chrome will not prompt the | 1414 // String containing the version of Chrome for which Chrome will not prompt the |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1518 | 1518 |
1519 // Whether the plugin finder that lets you install missing plugins is enabled. | 1519 // Whether the plugin finder that lets you install missing plugins is enabled. |
1520 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; | 1520 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; |
1521 | 1521 |
1522 // Customized app page names that appear on the New Tab Page. | 1522 // Customized app page names that appear on the New Tab Page. |
1523 const char kNtpAppPageNames[] = "ntp.app_page_names"; | 1523 const char kNtpAppPageNames[] = "ntp.app_page_names"; |
1524 | 1524 |
1525 // Keeps track of which sessions are collapsed in the Other Devices menu. | 1525 // Keeps track of which sessions are collapsed in the Other Devices menu. |
1526 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; | 1526 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; |
1527 | 1527 |
1528 #if BUILDFLAG(ANDROID_JAVA_UI) | 1528 #if defined(OS_ANDROID) |
1529 // Keeps track of recently closed tabs collapsed state in the Other Devices | 1529 // Keeps track of recently closed tabs collapsed state in the Other Devices |
1530 // menu. | 1530 // menu. |
1531 const char kNtpCollapsedRecentlyClosedTabs[] = | 1531 const char kNtpCollapsedRecentlyClosedTabs[] = |
1532 "ntp.collapsed_recently_closed_tabs"; | 1532 "ntp.collapsed_recently_closed_tabs"; |
1533 | 1533 |
1534 // Keeps track of snapshot documents collapsed state in the Other Devices menu. | 1534 // Keeps track of snapshot documents collapsed state in the Other Devices menu. |
1535 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document"; | 1535 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document"; |
1536 | 1536 |
1537 // Keeps track of sync promo collapsed state in the Other Devices menu. | 1537 // Keeps track of sync promo collapsed state in the Other Devices menu. |
1538 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo"; | 1538 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo"; |
1539 #endif | 1539 #endif // defined(OS_ANDROID) |
1540 | 1540 |
1541 // Which page should be visible on the new tab page v4 | 1541 // Which page should be visible on the new tab page v4 |
1542 const char kNtpShownPage[] = "ntp.shown_page"; | 1542 const char kNtpShownPage[] = "ntp.shown_page"; |
1543 | 1543 |
1544 // A private RSA key for ADB handshake. | 1544 // A private RSA key for ADB handshake. |
1545 const char kDevToolsAdbKey[] = "devtools.adb_key"; | 1545 const char kDevToolsAdbKey[] = "devtools.adb_key"; |
1546 | 1546 |
1547 const char kDevToolsDisabled[] = "devtools.disabled"; | 1547 const char kDevToolsDisabled[] = "devtools.disabled"; |
1548 | 1548 |
1549 // Determines whether devtools should be discovering usb devices for | 1549 // Determines whether devtools should be discovering usb devices for |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2192 // A boolean pref that enables the (private) pepper GetDeviceID() call and | 2192 // A boolean pref that enables the (private) pepper GetDeviceID() call and |
2193 // enables the use of remote attestation for content protection. | 2193 // enables the use of remote attestation for content protection. |
2194 const char kEnableDRM[] = "settings.privacy.drm_enabled"; | 2194 const char kEnableDRM[] = "settings.privacy.drm_enabled"; |
2195 | 2195 |
2196 // An integer per-profile pref that signals if the watchdog extension is | 2196 // An integer per-profile pref that signals if the watchdog extension is |
2197 // installed and active. We need to know if the watchdog extension active for | 2197 // installed and active. We need to know if the watchdog extension active for |
2198 // ActivityLog initialization before the extension system is initialized. | 2198 // ActivityLog initialization before the extension system is initialized. |
2199 const char kWatchdogExtensionActive[] = | 2199 const char kWatchdogExtensionActive[] = |
2200 "profile.extensions.activity_log.num_consumers_active"; | 2200 "profile.extensions.activity_log.num_consumers_active"; |
2201 | 2201 |
2202 #if BUILDFLAG(ANDROID_JAVA_UI) | 2202 #if defined(OS_ANDROID) |
2203 // A list of partner bookmark rename/remove mappings. | 2203 // A list of partner bookmark rename/remove mappings. |
2204 // Each list item is a dictionary containing a "url", a "provider_title" and | 2204 // Each list item is a dictionary containing a "url", a "provider_title" and |
2205 // "mapped_title" entries, detailing the bookmark target URL (if any), the title | 2205 // "mapped_title" entries, detailing the bookmark target URL (if any), the title |
2206 // given by the PartnerBookmarksProvider and either the user-visible renamed | 2206 // given by the PartnerBookmarksProvider and either the user-visible renamed |
2207 // title or an empty string if the bookmark node was removed. | 2207 // title or an empty string if the bookmark node was removed. |
2208 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; | 2208 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; |
2209 #endif | 2209 #endif // defined(OS_ANDROID) |
2210 | 2210 |
2211 // Whether DNS Quick Check is disabled in proxy resolution. | 2211 // Whether DNS Quick Check is disabled in proxy resolution. |
2212 // | 2212 // |
2213 // This is a performance optimization for WPAD (Web Proxy | 2213 // This is a performance optimization for WPAD (Web Proxy |
2214 // Auto-Discovery) which places a 1 second timeout on resolving the | 2214 // Auto-Discovery) which places a 1 second timeout on resolving the |
2215 // DNS for PAC script URLs. | 2215 // DNS for PAC script URLs. |
2216 // | 2216 // |
2217 // It is on by default, but can be disabled via the Policy option | 2217 // It is on by default, but can be disabled via the Policy option |
2218 // "WPADQuickCheckEnbled". There is no other UI for changing this | 2218 // "WPADQuickCheckEnbled". There is no other UI for changing this |
2219 // preference. | 2219 // preference. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2344 const char kSearchGeolocationPreDisclosureMetricsRecorded[] = | 2344 const char kSearchGeolocationPreDisclosureMetricsRecorded[] = |
2345 "search_geolocation_pre_disclosure_metrics_recorded"; | 2345 "search_geolocation_pre_disclosure_metrics_recorded"; |
2346 | 2346 |
2347 // Whether the metrics for the state of geolocation post-disclosure being shown | 2347 // Whether the metrics for the state of geolocation post-disclosure being shown |
2348 // have been recorded. | 2348 // have been recorded. |
2349 const char kSearchGeolocationPostDisclosureMetricsRecorded[] = | 2349 const char kSearchGeolocationPostDisclosureMetricsRecorded[] = |
2350 "search_geolocation_post_disclosure_metrics_recorded"; | 2350 "search_geolocation_post_disclosure_metrics_recorded"; |
2351 #endif | 2351 #endif |
2352 | 2352 |
2353 } // namespace prefs | 2353 } // namespace prefs |
OLD | NEW |