diff options
author | joth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 14:29:12 +0000 |
---|---|---|
committer | joth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 14:29:12 +0000 |
commit | 9e8554820f3b972d410ae9a96b837a65ab8d0333 (patch) | |
tree | 7c02e2ed224ec282cd3662c1933b23436d47e8f3 /chrome/renderer | |
parent | 3384b14f1250e6c895fa07ea43a4b5e4b65e948d (diff) | |
download | chromium_src-9e8554820f3b972d410ae9a96b837a65ab8d0333.zip chromium_src-9e8554820f3b972d410ae9a96b837a65ab8d0333.tar.gz chromium_src-9e8554820f3b972d410ae9a96b837a65ab8d0333.tar.bz2 |
Bring Geolocation to life!
Bolt the geolocation dispatcher host up to the location arbitrator
Introduces a new method for fetching a singleton default location arbitrator with minimal fuss.
Fix bug in the geolocation dispatcher where bridge id & route id were swapped on send.
BUG=http://crbug.com/11246
TEST=run browser with --enable-geolocaiton & Open http://maps.google.co.uk/maps/m
Review URL: http://codereview.chromium.org/658005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40118 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/geolocation_dispatcher.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/renderer/geolocation_dispatcher.cc b/chrome/renderer/geolocation_dispatcher.cc index fedad06..c698317 100644 --- a/chrome/renderer/geolocation_dispatcher.cc +++ b/chrome/renderer/geolocation_dispatcher.cc @@ -39,27 +39,27 @@ bool GeolocationDispatcher::OnMessageReceived(const IPC::Message& message) { void GeolocationDispatcher::requestPermissionForFrame( int bridge_id, const WebKit::WebURL& url) { render_view_->Send(new ViewHostMsg_Geolocation_RequestPermission( - bridge_id, render_view_->routing_id(), GURL(url).GetOrigin())); + render_view_->routing_id(), bridge_id, GURL(url).GetOrigin())); } void GeolocationDispatcher::startUpdating(int bridge_id, bool hasHighAccuracy) { render_view_->Send(new ViewHostMsg_Geolocation_StartUpdating( - bridge_id, render_view_->routing_id(), hasHighAccuracy)); + render_view_->routing_id(), bridge_id, hasHighAccuracy)); } void GeolocationDispatcher::stopUpdating(int bridge_id) { render_view_->Send(new ViewHostMsg_Geolocation_StopUpdating( - bridge_id, render_view_->routing_id())); + render_view_->routing_id(), bridge_id)); } void GeolocationDispatcher::suspend(int bridge_id) { render_view_->Send(new ViewHostMsg_Geolocation_Suspend( - bridge_id, render_view_->routing_id())); + render_view_->routing_id(), bridge_id)); } void GeolocationDispatcher::resume(int bridge_id) { render_view_->Send(new ViewHostMsg_Geolocation_Resume( - bridge_id, render_view_->routing_id())); + render_view_->routing_id(), bridge_id)); } int GeolocationDispatcher::attachBridge( |