| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/geolocation/geolocation_service_context.h" | 5 #include "content/browser/geolocation/geolocation_service_context.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 void GeolocationServiceContext::ResumeUpdates() { | 43 void GeolocationServiceContext::ResumeUpdates() { |
| 44 paused_ = false; | 44 paused_ = false; |
| 45 for (auto* service : services_) { | 45 for (auto* service : services_) { |
| 46 service->ResumeUpdates(); | 46 service->ResumeUpdates(); |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 | 49 |
| 50 void GeolocationServiceContext::SetOverride( | 50 void GeolocationServiceContext::SetOverride( |
| 51 scoped_ptr<Geoposition> geoposition) { | 51 std::unique_ptr<Geoposition> geoposition) { |
| 52 geoposition_override_.swap(geoposition); | 52 geoposition_override_.swap(geoposition); |
| 53 for (auto* service : services_) { | 53 for (auto* service : services_) { |
| 54 service->SetOverride(*geoposition_override_.get()); | 54 service->SetOverride(*geoposition_override_.get()); |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 | 57 |
| 58 void GeolocationServiceContext::ClearOverride() { | 58 void GeolocationServiceContext::ClearOverride() { |
| 59 for (auto* service : services_) { | 59 for (auto* service : services_) { |
| 60 service->ClearOverride(); | 60 service->ClearOverride(); |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace content | 64 } // namespace content |
| OLD | NEW |