summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages.h
diff options
context:
space:
mode:
authordglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-10 17:58:25 +0000
committerdglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-10 17:58:25 +0000
commit3618b6a1c9d8b9925af4988587b2c3e77055ae39 (patch)
tree7eef0e6742bcfaa15f64627664b3cca0bc86135d /chrome/common/render_messages.h
parentd424035d8ab786a0f3671baeda7a362811f8d441 (diff)
downloadchromium_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/common/render_messages.h')
-rw-r--r--chrome/common/render_messages.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index e91a2fe..fa714cc 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -1635,6 +1635,7 @@ struct ParamTraits<WebPreferences> {
WriteParam(m, p.user_style_sheet_location);
WriteParam(m, p.allow_universal_access_from_file_urls);
WriteParam(m, p.experimental_webgl_enabled);
+ WriteParam(m, p.geolocation_enabled);
}
static bool Read(const Message* m, void** iter, param_type* p) {
return
@@ -1673,7 +1674,8 @@ struct ParamTraits<WebPreferences> {
ReadParam(m, iter, &p->user_style_sheet_enabled) &&
ReadParam(m, iter, &p->user_style_sheet_location) &&
ReadParam(m, iter, &p->allow_universal_access_from_file_urls) &&
- ReadParam(m, iter, &p->experimental_webgl_enabled);
+ ReadParam(m, iter, &p->experimental_webgl_enabled) &&
+ ReadParam(m, iter, &p->geolocation_enabled);
}
static void Log(const param_type& p, std::wstring* l) {
l->append(L"<WebPreferences>");