Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2703)

Unified Diff: device/geolocation/geolocation_service_impl.cc

Issue 2697473002: Remove last usage functions from HostContentSettingsMap and clean up prefs (Closed)
Patch Set: fix up unit test Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/geolocation/geolocation_service_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/geolocation_service_impl.cc
diff --git a/device/geolocation/geolocation_service_impl.cc b/device/geolocation/geolocation_service_impl.cc
index a56b6d83427325b8cc59bcf0556bcf4dca7b678f..357d9cd9fcf1b2bc383f492ccef6eea16c7349c9 100644
--- a/device/geolocation/geolocation_service_impl.cc
+++ b/device/geolocation/geolocation_service_impl.cc
@@ -60,11 +60,9 @@ void RecordGeopositionErrorCode(Geoposition::ErrorCode error_code) {
GeolocationServiceImpl::GeolocationServiceImpl(
mojo::InterfaceRequest<GeolocationService> request,
- GeolocationServiceContext* context,
- const base::Closure& update_callback)
+ GeolocationServiceContext* context)
: binding_(this, std::move(request)),
context_(context),
- update_callback_(update_callback),
high_accuracy_(false),
has_position_to_report_(false) {
DCHECK(context_);
@@ -160,8 +158,6 @@ void GeolocationServiceImpl::OnLocationUpdate(const Geoposition& position) {
RecordGeopositionErrorCode(position.error_code);
DCHECK(context_);
- update_callback_.Run();
-
current_position_.valid = position.Validate();
current_position_.latitude = position.latitude;
current_position_.longitude = position.longitude;
« no previous file with comments | « device/geolocation/geolocation_service_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698