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 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1061 "autofill.generated_card_bubble_times_shown"; | 1061 "autofill.generated_card_bubble_times_shown"; |
1062 | 1062 |
1063 // A dictionary that tracks the defaults to be set on the next invocation | 1063 // A dictionary that tracks the defaults to be set on the next invocation |
1064 // of the requestAutocomplete dialog. | 1064 // of the requestAutocomplete dialog. |
1065 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults"; | 1065 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults"; |
1066 | 1066 |
1067 #if !defined(OS_ANDROID) | 1067 #if !defined(OS_ANDROID) |
1068 const char kPinnedTabs[] = "pinned_tabs"; | 1068 const char kPinnedTabs[] = "pinned_tabs"; |
1069 #endif | 1069 #endif |
1070 | 1070 |
1071 #if defined(OS_ANDROID) | |
1072 // Boolean that controls the enabled-state of Geolocation in content. | |
1073 const char kGeolocationEnabled[] = "geolocation.enabled"; | |
1074 #endif | |
1075 | |
1076 #if defined(ENABLE_GOOGLE_NOW) | |
1077 // Boolean that is true when Google services can use the user's location. | |
1078 const char kGoogleGeolocationAccessEnabled[] = | |
1079 "googlegeolocationaccess.enabled"; | |
1080 #endif | |
1081 | |
1082 // The default audio capture device used by the Media content setting. | |
1083 const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device"; | |
1084 | |
1085 // The default video capture device used by the Media content setting. | |
1086 const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device"; | |
1087 | |
1088 // The salt used for creating random MediaSource IDs. | |
1089 const char kMediaDeviceIdSalt[] = "media.device_id_salt"; | |
1090 | |
1091 // Preference to disable 3D APIs (WebGL, Pepper 3D). | 1071 // Preference to disable 3D APIs (WebGL, Pepper 3D). |
1092 const char kDisable3DAPIs[] = "disable_3d_apis"; | 1072 const char kDisable3DAPIs[] = "disable_3d_apis"; |
1093 | 1073 |
1094 const char kEnableDeprecatedWebPlatformFeatures[] = | 1074 const char kEnableDeprecatedWebPlatformFeatures[] = |
1095 "enable_deprecated_web_platform_features"; | 1075 "enable_deprecated_web_platform_features"; |
1096 | 1076 |
1097 // Whether to enable hyperlink auditing ("<a ping>"). | 1077 // Whether to enable hyperlink auditing ("<a ping>"). |
1098 const char kEnableHyperlinkAuditing[] = "enable_a_ping"; | 1078 const char kEnableHyperlinkAuditing[] = "enable_a_ping"; |
1099 | 1079 |
1100 // Whether to enable sending referrers. | 1080 // Whether to enable sending referrers. |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1647 | 1627 |
1648 // Boolean indicating that TiclInvalidationService should use GCM channel. | 1628 // Boolean indicating that TiclInvalidationService should use GCM channel. |
1649 // False or lack of settings means XMPPPushClient channel. | 1629 // False or lack of settings means XMPPPushClient channel. |
1650 const char kInvalidationServiceUseGCMChannel[] = | 1630 const char kInvalidationServiceUseGCMChannel[] = |
1651 "invalidation_service.use_gcm_channel"; | 1631 "invalidation_service.use_gcm_channel"; |
1652 | 1632 |
1653 // Local hash of authentication password, used for off-line authentication | 1633 // Local hash of authentication password, used for off-line authentication |
1654 // when on-line authentication is not available. | 1634 // when on-line authentication is not available. |
1655 const char kGoogleServicesPasswordHash[] = "google.services.password_hash"; | 1635 const char kGoogleServicesPasswordHash[] = "google.services.password_hash"; |
1656 | 1636 |
1657 #if !defined(OS_ANDROID) | |
Lei Zhang
2014/10/24 23:34:21
I believe these are being used on Android via chro
Evan Stade
2014/10/24 23:55:50
then how did it work before?
Lei Zhang
2014/10/25 00:53:11
By the magic of linker garbage collection. I added
| |
1658 // Tracks the number of times that we have shown the sign in promo at startup. | 1637 // Tracks the number of times that we have shown the sign in promo at startup. |
1659 const char kSignInPromoStartupCount[] = "sync_promo.startup_count"; | 1638 const char kSignInPromoStartupCount[] = "sync_promo.startup_count"; |
1660 | 1639 |
1661 // Boolean tracking whether the user chose to skip the sign in promo. | 1640 // Boolean tracking whether the user chose to skip the sign in promo. |
1662 const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped"; | 1641 const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped"; |
1663 | 1642 |
1664 // Boolean that specifies if the sign in promo is allowed to show on first run. | 1643 // Boolean that specifies if the sign in promo is allowed to show on first run. |
1665 // This preference is specified in the master preference file to suppress the | 1644 // This preference is specified in the master preference file to suppress the |
1666 // sign in promo for some installations. | 1645 // sign in promo for some installations. |
1667 const char kSignInPromoShowOnFirstRunAllowed[] = | 1646 const char kSignInPromoShowOnFirstRunAllowed[] = |
1668 "sync_promo.show_on_first_run_allowed"; | 1647 "sync_promo.show_on_first_run_allowed"; |
1669 | 1648 |
1670 // Boolean that specifies if we should show a bubble in the new tab page. | 1649 // Boolean that specifies if we should show a bubble in the new tab page. |
1671 // The bubble is used to confirm that the user is signed into sync. | 1650 // The bubble is used to confirm that the user is signed into sync. |
1672 const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble"; | 1651 const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble"; |
1673 #endif | |
1674 | 1652 |
1675 // Create web application shortcut dialog preferences. | 1653 // Create web application shortcut dialog preferences. |
1676 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop"; | 1654 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop"; |
1677 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu"; | 1655 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu"; |
1678 const char kWebAppCreateInQuickLaunchBar[] = | 1656 const char kWebAppCreateInQuickLaunchBar[] = |
1679 "browser.web_app.create_in_quick_launch_bar"; | 1657 "browser.web_app.create_in_quick_launch_bar"; |
1680 | 1658 |
1681 // Dictionary that maps Geolocation network provider server URLs to | 1659 // Dictionary that maps Geolocation network provider server URLs to |
1682 // corresponding access token. | 1660 // corresponding access token. |
1683 const char kGeolocationAccessToken[] = "geolocation.access_token"; | 1661 const char kGeolocationAccessToken[] = "geolocation.access_token"; |
1684 | 1662 |
1663 #if defined(OS_ANDROID) | |
1664 // Boolean that controls the enabled-state of Geolocation in content. | |
1665 const char kGeolocationEnabled[] = "geolocation.enabled"; | |
1666 #endif | |
1667 | |
1668 #if defined(ENABLE_GOOGLE_NOW) | |
1669 // Boolean that is true when Google services can use the user's location. | |
1670 const char kGoogleGeolocationAccessEnabled[] = | |
1671 "googlegeolocationaccess.enabled"; | |
1672 #endif | |
1673 | |
1674 // The default audio capture device used by the Media content setting. | |
1675 const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device"; | |
1676 | |
1677 // The default video capture device used by the Media content setting. | |
1678 const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device"; | |
1679 | |
1680 // The salt used for creating random MediaSource IDs. | |
1681 const char kMediaDeviceIdSalt[] = "media.device_id_salt"; | |
1682 | |
1685 // Boolean that indicates whether to allow firewall traversal while trying to | 1683 // Boolean that indicates whether to allow firewall traversal while trying to |
1686 // establish the initial connection from the client or host. | 1684 // establish the initial connection from the client or host. |
1687 const char kRemoteAccessHostFirewallTraversal[] = | 1685 const char kRemoteAccessHostFirewallTraversal[] = |
1688 "remote_access.host_firewall_traversal"; | 1686 "remote_access.host_firewall_traversal"; |
1689 | 1687 |
1690 // Boolean controlling whether 2-factor auth should be required when connecting | 1688 // Boolean controlling whether 2-factor auth should be required when connecting |
1691 // to a host (instead of a PIN). | 1689 // to a host (instead of a PIN). |
1692 const char kRemoteAccessHostRequireTwoFactor[] = | 1690 const char kRemoteAccessHostRequireTwoFactor[] = |
1693 "remote_access.host_require_two_factor"; | 1691 "remote_access.host_require_two_factor"; |
1694 | 1692 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1945 | 1943 |
1946 // System uptime, when last logout started. | 1944 // System uptime, when last logout started. |
1947 // This is saved to file and cleared after chrome process starts. | 1945 // This is saved to file and cleared after chrome process starts. |
1948 const char kLogoutStartedLast[] = "chromeos.logout-started"; | 1946 const char kLogoutStartedLast[] = "chromeos.logout-started"; |
1949 | 1947 |
1950 // An integer pref of the current consumer management enrollment stage. The | 1948 // An integer pref of the current consumer management enrollment stage. The |
1951 // meaning of the value is defined in the enum EnrollmentStage in: | 1949 // meaning of the value is defined in the enum EnrollmentStage in: |
1952 // chrome/browser/chromeos/policy/consumer_management_service.h | 1950 // chrome/browser/chromeos/policy/consumer_management_service.h |
1953 const char kConsumerManagementEnrollmentStage[] = | 1951 const char kConsumerManagementEnrollmentStage[] = |
1954 "consumer_management.enrollment_stage"; | 1952 "consumer_management.enrollment_stage"; |
1955 #endif | 1953 #endif // defined(OS_CHROMEOS) |
1956 | 1954 |
1957 // Whether there is a Flash version installed that supports clearing LSO data. | 1955 // Whether there is a Flash version installed that supports clearing LSO data. |
1958 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled"; | 1956 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled"; |
1959 | 1957 |
1960 // Whether we should show Pepper Flash-specific settings. | 1958 // Whether we should show Pepper Flash-specific settings. |
1961 const char kPepperFlashSettingsEnabled[] = | 1959 const char kPepperFlashSettingsEnabled[] = |
1962 "browser.pepper_flash_settings_enabled"; | 1960 "browser.pepper_flash_settings_enabled"; |
1963 | 1961 |
1964 // String which specifies where to store the disk cache. | 1962 // String which specifies where to store the disk cache. |
1965 const char kDiskCacheDir[] = "browser.disk_cache_dir"; | 1963 const char kDiskCacheDir[] = "browser.disk_cache_dir"; |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2338 // Whether Guest Mode is enabled within the browser. | 2336 // Whether Guest Mode is enabled within the browser. |
2339 const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled"; | 2337 const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled"; |
2340 | 2338 |
2341 // Whether Adding a new Person is enabled within the user manager. | 2339 // Whether Adding a new Person is enabled within the user manager. |
2342 const char kBrowserAddPersonEnabled[] = "profile.add_person_enabled"; | 2340 const char kBrowserAddPersonEnabled[] = "profile.add_person_enabled"; |
2343 | 2341 |
2344 // A dictionary that maps user id to hardlock state. | 2342 // A dictionary that maps user id to hardlock state. |
2345 const char kEasyUnlockHardlockState[] = "easy_unlock.hardlock_state"; | 2343 const char kEasyUnlockHardlockState[] = "easy_unlock.hardlock_state"; |
2346 | 2344 |
2347 } // namespace prefs | 2345 } // namespace prefs |
OLD | NEW |