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

Unified Diff: device/geolocation/geolocation_provider_impl.cc

Issue 2975683002: Add GeolocationManager service (Closed)
Patch Set: typo Created 3 years, 5 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_provider_impl.h ('k') | device/geolocation/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/geolocation_provider_impl.cc
diff --git a/device/geolocation/geolocation_provider_impl.cc b/device/geolocation/geolocation_provider_impl.cc
index 55cbc77b802805ffe03fc8cbe7b141c266599072..9cba76927c81c6bde8af9c7e0de35a5f5bfa1602 100644
--- a/device/geolocation/geolocation_provider_impl.cc
+++ b/device/geolocation/geolocation_provider_impl.cc
@@ -67,6 +67,10 @@ void GeolocationProviderImpl::UserDidOptIntoLocationServices() {
InformProvidersPermissionGranted();
}
+bool GeolocationProviderImpl::HighAccuracyLocationInUse() {
+ return !high_accuracy_callbacks_.empty();
+}
+
void GeolocationProviderImpl::OverrideLocationForTesting(
const Geoposition& position) {
DCHECK(main_task_runner_->BelongsToCurrentThread());
« no previous file with comments | « device/geolocation/geolocation_provider_impl.h ('k') | device/geolocation/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698