summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/renderer_host/browser_render_process_host.cc1
-rw-r--r--chrome/renderer/render_thread.cc3
2 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc
index dadeb53..b7bdb83 100644
--- a/chrome/browser/renderer_host/browser_render_process_host.cc
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc
@@ -527,6 +527,7 @@ void BrowserRenderProcessHost::PropogateBrowserCommandLineToRenderer(
switches::kEnableSessionStorage,
switches::kDisableSharedWorkers,
switches::kEnableApplicationCache,
+ switches::kEnableGeolocation,
switches::kShowPaintRects,
// We propagate the Chrome Frame command line here as well in case the
// renderer is not run in the sandbox.
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 9df544a..4059234 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -627,6 +627,9 @@ void RenderThread::EnsureWebKitInitialized() {
!command_line.HasSwitch(switches::kDisableLocalStorage));
WebRuntimeFeatures::enableSessionStorage(
command_line.HasSwitch(switches::kEnableSessionStorage));
+
+ WebRuntimeFeatures::enableGeolocation(
+ command_line.HasSwitch(switches::kEnableGeolocation));
}
void RenderThread::IdleHandler() {