Delete Geolocation command line switch and callers of enableGeolocation.

The Geolocation API was launched a long time ago, and a mock is used in layout tests.
There are no unit tests so nothing needs to be set for them.

BUG=343592,36451

Review URL: https://codereview.chromium.org/164163002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251340 0039d316-1c4b-4281-b951-d872f2087c98
parent 3caf404d
...@@ -982,7 +982,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( ...@@ -982,7 +982,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kDisableFileSystem, switches::kDisableFileSystem,
switches::kDisableFiltersOverIPC, switches::kDisableFiltersOverIPC,
switches::kDisableFullScreen, switches::kDisableFullScreen,
switches::kDisableGeolocation,
switches::kDisableGpu, switches::kDisableGpu,
switches::kDisableGpuCompositing, switches::kDisableGpuCompositing,
switches::kDisableGpuVsync, switches::kDisableGpuVsync,
......
...@@ -75,9 +75,6 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( ...@@ -75,9 +75,6 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
if (command_line.HasSwitch(switches::kDisableSessionStorage)) if (command_line.HasSwitch(switches::kDisableSessionStorage))
WebRuntimeFeatures::enableSessionStorage(false); WebRuntimeFeatures::enableSessionStorage(false);
if (command_line.HasSwitch(switches::kDisableGeolocation))
WebRuntimeFeatures::enableGeolocation(false);
if (command_line.HasSwitch(switches::kDisableWebKitMediaSource)) if (command_line.HasSwitch(switches::kDisableWebKitMediaSource))
WebRuntimeFeatures::enableWebKitMediaSource(false); WebRuntimeFeatures::enableWebKitMediaSource(false);
......
...@@ -200,9 +200,6 @@ const char kDisableForceCompositingMode[] = "disable-force-compositing-mode"; ...@@ -200,9 +200,6 @@ const char kDisableForceCompositingMode[] = "disable-force-compositing-mode";
// Disable the JavaScript Full Screen API. // Disable the JavaScript Full Screen API.
const char kDisableFullScreen[] = "disable-fullscreen"; const char kDisableFullScreen[] = "disable-fullscreen";
// Suppresses support for the Geolocation javascript API.
const char kDisableGeolocation[] = "disable-geolocation";
// Disable deferral of scroll-ending gesture events when a scroll is active. // Disable deferral of scroll-ending gesture events when a scroll is active.
const char kDisableGestureDebounce[] = "disable-gesture-debounce"; const char kDisableGestureDebounce[] = "disable-gesture-debounce";
......
...@@ -67,7 +67,6 @@ CONTENT_EXPORT extern const char kDisableFlash3d[]; ...@@ -67,7 +67,6 @@ CONTENT_EXPORT extern const char kDisableFlash3d[];
CONTENT_EXPORT extern const char kDisableFlashStage3d[]; CONTENT_EXPORT extern const char kDisableFlashStage3d[];
CONTENT_EXPORT extern const char kDisableForceCompositingMode[]; CONTENT_EXPORT extern const char kDisableForceCompositingMode[];
CONTENT_EXPORT extern const char kDisableFullScreen[]; CONTENT_EXPORT extern const char kDisableFullScreen[];
extern const char kDisableGeolocation[];
extern const char kDisableGestureDebounce[]; extern const char kDisableGestureDebounce[];
CONTENT_EXPORT extern const char kDisableGestureTapHighlight[]; CONTENT_EXPORT extern const char kDisableGestureTapHighlight[];
CONTENT_EXPORT extern const char kDisableGLMultisampling[]; CONTENT_EXPORT extern const char kDisableGLMultisampling[];
......
...@@ -80,10 +80,6 @@ TestWebKitPlatformSupport::TestWebKitPlatformSupport() { ...@@ -80,10 +80,6 @@ TestWebKitPlatformSupport::TestWebKitPlatformSupport() {
blink::WebRuntimeFeatures::enableMediaPlayer(enable_media); blink::WebRuntimeFeatures::enableMediaPlayer(enable_media);
LOG_IF(WARNING, !enable_media) << "Failed to initialize the media library.\n"; LOG_IF(WARNING, !enable_media) << "Failed to initialize the media library.\n";
// TODO(joth): Make a dummy geolocation service implemenation for
// test_shell, and set this to true. http://crbug.com/36451
blink::WebRuntimeFeatures::enableGeolocation(false);
file_utilities_.set_sandbox_enabled(false); file_utilities_.set_sandbox_enabled(false);
if (!file_system_root_.CreateUniqueTempDir()) { if (!file_system_root_.CreateUniqueTempDir()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment