diff options
Diffstat (limited to 'content/browser/geolocation/network_location_provider.cc')
-rw-r--r-- | content/browser/geolocation/network_location_provider.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/content/browser/geolocation/network_location_provider.cc b/content/browser/geolocation/network_location_provider.cc index 82171a0..0ea890c 100644 --- a/content/browser/geolocation/network_location_provider.cc +++ b/content/browser/geolocation/network_location_provider.cc @@ -118,7 +118,10 @@ NetworkLocationProvider::NetworkLocationProvider( // Create the position cache. position_cache_.reset(new PositionCache()); - request_.reset(new NetworkLocationRequest(url_context_getter, url, this)); + NetworkLocationRequest::LocationResponseCallback callback = + base::Bind(&NetworkLocationProvider::LocationResponseAvailable, + base::Unretained(this)); + request_.reset(new NetworkLocationRequest(url_context_getter, url, callback)); } NetworkLocationProvider::~NetworkLocationProvider() { @@ -156,7 +159,6 @@ void NetworkLocationProvider::DeviceDataUpdateAvailable( OnDeviceDataUpdated(); } -// NetworkLocationRequest::ListenerInterface implementation. void NetworkLocationProvider::LocationResponseAvailable( const Geoposition& position, bool server_error, |