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

Side by Side Diff: content/browser/geolocation/geolocation_service_context.cc

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/geolocation/geolocation_service_context.h ('k') | content/browser/geolocation/geolocation_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698