Chromium Code Reviews| Index: chrome/common/pref_names.cc |
| diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc |
| index fdf223263a1d4fd24303979e956fcfbcab60cdfa..160fe1ba57256654fe7325b74c45317be2802718 100644 |
| --- a/chrome/common/pref_names.cc |
| +++ b/chrome/common/pref_names.cc |
| @@ -1068,26 +1068,6 @@ const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults"; |
| const char kPinnedTabs[] = "pinned_tabs"; |
| #endif |
| -#if defined(OS_ANDROID) |
| -// Boolean that controls the enabled-state of Geolocation in content. |
| -const char kGeolocationEnabled[] = "geolocation.enabled"; |
| -#endif |
| - |
| -#if defined(ENABLE_GOOGLE_NOW) |
| -// Boolean that is true when Google services can use the user's location. |
| -const char kGoogleGeolocationAccessEnabled[] = |
| - "googlegeolocationaccess.enabled"; |
| -#endif |
| - |
| -// The default audio capture device used by the Media content setting. |
| -const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device"; |
| - |
| -// The default video capture device used by the Media content setting. |
| -const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device"; |
| - |
| -// The salt used for creating random MediaSource IDs. |
| -const char kMediaDeviceIdSalt[] = "media.device_id_salt"; |
| - |
| // Preference to disable 3D APIs (WebGL, Pepper 3D). |
| const char kDisable3DAPIs[] = "disable_3d_apis"; |
| @@ -1654,7 +1634,6 @@ const char kInvalidationServiceUseGCMChannel[] = |
| // when on-line authentication is not available. |
| const char kGoogleServicesPasswordHash[] = "google.services.password_hash"; |
| -#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
|
| // Tracks the number of times that we have shown the sign in promo at startup. |
| const char kSignInPromoStartupCount[] = "sync_promo.startup_count"; |
| @@ -1670,7 +1649,6 @@ const char kSignInPromoShowOnFirstRunAllowed[] = |
| // Boolean that specifies if we should show a bubble in the new tab page. |
| // The bubble is used to confirm that the user is signed into sync. |
| const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble"; |
| -#endif |
| // Create web application shortcut dialog preferences. |
| const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop"; |
| @@ -1682,6 +1660,26 @@ const char kWebAppCreateInQuickLaunchBar[] = |
| // corresponding access token. |
| const char kGeolocationAccessToken[] = "geolocation.access_token"; |
| +#if defined(OS_ANDROID) |
| +// Boolean that controls the enabled-state of Geolocation in content. |
| +const char kGeolocationEnabled[] = "geolocation.enabled"; |
| +#endif |
| + |
| +#if defined(ENABLE_GOOGLE_NOW) |
| +// Boolean that is true when Google services can use the user's location. |
| +const char kGoogleGeolocationAccessEnabled[] = |
| + "googlegeolocationaccess.enabled"; |
| +#endif |
| + |
| +// The default audio capture device used by the Media content setting. |
| +const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device"; |
| + |
| +// The default video capture device used by the Media content setting. |
| +const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device"; |
| + |
| +// The salt used for creating random MediaSource IDs. |
| +const char kMediaDeviceIdSalt[] = "media.device_id_salt"; |
| + |
| // Boolean that indicates whether to allow firewall traversal while trying to |
| // establish the initial connection from the client or host. |
| const char kRemoteAccessHostFirewallTraversal[] = |
| @@ -1952,7 +1950,7 @@ const char kLogoutStartedLast[] = "chromeos.logout-started"; |
| // chrome/browser/chromeos/policy/consumer_management_service.h |
| const char kConsumerManagementEnrollmentStage[] = |
| "consumer_management.enrollment_stage"; |
| -#endif |
| +#endif // defined(OS_CHROMEOS) |
| // Whether there is a Flash version installed that supports clearing LSO data. |
| const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled"; |