diff options
author | dglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-10 17:58:25 +0000 |
---|---|---|
committer | dglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-10 17:58:25 +0000 |
commit | 3618b6a1c9d8b9925af4988587b2c3e77055ae39 (patch) | |
tree | 7eef0e6742bcfaa15f64627664b3cca0bc86135d /chrome/browser | |
parent | d424035d8ab786a0f3671baeda7a362811f8d441 (diff) | |
download | chromium_src-3618b6a1c9d8b9925af4988587b2c3e77055ae39.zip chromium_src-3618b6a1c9d8b9925af4988587b2c3e77055ae39.tar.gz chromium_src-3618b6a1c9d8b9925af4988587b2c3e77055ae39.tar.bz2 |
Add command line flag and associated prefs to allow run-time enable of geolocaiton features.
Once this is landed we can enable GEOLOCATION in WebKit at build time, allowing proper tests
to be written that utilize this flag.
BUG=29182
TEST=Manually enabled GEOLOCATION in WebKit and passed the command line flag.
Review URL: http://codereview.chromium.org/460020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/tab_contents/render_view_host_delegate_helper.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc index 85585a7..6ed9f3b 100644 --- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc +++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc @@ -187,6 +187,8 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs( command_line.HasSwitch(switches::kEnableExperimentalWebGL); web_prefs.site_specific_quirks_enabled = !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); + web_prefs.geolocation_enabled = + command_line.HasSwitch(switches::kEnableGeolocation); } web_prefs.uses_universal_detector = |