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

Unified Diff: device/geolocation/geolocation_service_context.cc

Issue 2379253002: Remove ContentViewCore::PauseOrResumeGeolocation() (Closed)
Patch Set: comment Created 4 years, 2 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_context.h ('k') | device/geolocation/geolocation_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/geolocation_service_context.cc
diff --git a/device/geolocation/geolocation_service_context.cc b/device/geolocation/geolocation_service_context.cc
index 2f0e011d24ca6656c7ee41064e214fa67e22b05a..148b77b6c1ed34a9c8408ebdcd73c8a6ac44237d 100644
--- a/device/geolocation/geolocation_service_context.cc
+++ b/device/geolocation/geolocation_service_context.cc
@@ -10,7 +10,7 @@
namespace device {
-GeolocationServiceContext::GeolocationServiceContext() : paused_(false) {}
+GeolocationServiceContext::GeolocationServiceContext() {}
GeolocationServiceContext::~GeolocationServiceContext() {}
@@ -33,20 +33,6 @@ void GeolocationServiceContext::ServiceHadConnectionError(
services_.erase(it);
}
-void GeolocationServiceContext::PauseUpdates() {
- paused_ = true;
- for (auto* service : services_) {
- service->PauseUpdates();
- }
-}
-
-void GeolocationServiceContext::ResumeUpdates() {
- paused_ = false;
- for (auto* service : services_) {
- service->ResumeUpdates();
- }
-}
-
void GeolocationServiceContext::SetOverride(
std::unique_ptr<Geoposition> geoposition) {
geoposition_override_.swap(geoposition);
« no previous file with comments | « device/geolocation/geolocation_service_context.h ('k') | device/geolocation/geolocation_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698