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

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

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: Created 4 years, 4 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 "device/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 #include "device/geolocation/geolocation_service_impl.h" 9 namespace content {
10
11 namespace device {
12 10
13 GeolocationServiceContext::GeolocationServiceContext() : paused_(false) { 11 GeolocationServiceContext::GeolocationServiceContext() : paused_(false) {
14 } 12 }
15 13
16 GeolocationServiceContext::~GeolocationServiceContext() { 14 GeolocationServiceContext::~GeolocationServiceContext() {
17 } 15 }
18 16
19 void GeolocationServiceContext::CreateService( 17 void GeolocationServiceContext::CreateService(
20 const base::Closure& update_callback, 18 const base::Closure& update_callback,
21 mojo::InterfaceRequest<blink::mojom::GeolocationService> request) { 19 mojo::InterfaceRequest<blink::mojom::GeolocationService> request) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 service->SetOverride(*geoposition_override_.get()); 54 service->SetOverride(*geoposition_override_.get());
57 } 55 }
58 } 56 }
59 57
60 void GeolocationServiceContext::ClearOverride() { 58 void GeolocationServiceContext::ClearOverride() {
61 for (auto* service : services_) { 59 for (auto* service : services_) {
62 service->ClearOverride(); 60 service->ClearOverride();
63 } 61 }
64 } 62 }
65 63
66 } // namespace device 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