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

Side by Side Diff: device/geolocation/location_provider_base.cc

Issue 2226143002: Gets rid of the LocationArbitrator interface, in preference for LocationProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into lai Created 4 years, 3 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/location_provider_base.h" 5 #include "device/geolocation/location_provider_base.h"
6 6
7 namespace device { 7 namespace device {
8 8
9 LocationProviderBase::LocationProviderBase() {} 9 LocationProviderBase::LocationProviderBase() {}
10 10
11 LocationProviderBase::~LocationProviderBase() {} 11 LocationProviderBase::~LocationProviderBase() {}
12 12
13 void LocationProviderBase::NotifyCallback(const Geoposition& position) { 13 void LocationProviderBase::NotifyCallback(const Geoposition& position) {
14 if (!callback_.is_null()) 14 if (!callback_.is_null())
15 callback_.Run(this, position); 15 callback_.Run(this, position);
16 } 16 }
17 17
18 void LocationProviderBase::SetUpdateCallback( 18 void LocationProviderBase::SetUpdateCallback(
19 const LocationProviderUpdateCallback& callback) { 19 const LocationProviderUpdateCallback& callback) {
20 callback_ = callback; 20 callback_ = callback;
21 } 21 }
22 22
23 void LocationProviderBase::RequestRefresh() {}
24
25 } // namespace device 23 } // namespace device
OLDNEW
« no previous file with comments | « device/geolocation/location_provider_base.h ('k') | device/geolocation/mock_location_arbitrator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698