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 /webkit/glue/webpreferences.h | |
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 'webkit/glue/webpreferences.h')
-rw-r--r-- | webkit/glue/webpreferences.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/glue/webpreferences.h b/webkit/glue/webpreferences.h index fc4775d..58daa58 100644 --- a/webkit/glue/webpreferences.h +++ b/webkit/glue/webpreferences.h @@ -61,6 +61,8 @@ struct WebPreferences { bool experimental_webgl_enabled; + bool geolocation_enabled; + // We try to keep the default values the same as the default values in // chrome, except for the cases where it would require lots of extra work for // the embedder to use the same default value. @@ -98,7 +100,8 @@ struct WebPreferences { tabs_to_links(true), user_style_sheet_enabled(false), allow_universal_access_from_file_urls(false), - experimental_webgl_enabled(false) { + experimental_webgl_enabled(false), + geolocation_enabled(false) { } void Apply(WebKit::WebView* web_view) const; |