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

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

Issue 2298013002: Gets rid of LocationProviderBase. (Closed)
Patch Set: Typo. 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "device/geolocation/location_provider_base.h"
6
7 namespace device {
8
9 LocationProviderBase::LocationProviderBase() {}
10
11 LocationProviderBase::~LocationProviderBase() {}
12
13 void LocationProviderBase::NotifyCallback(const Geoposition& position) {
14 if (!callback_.is_null())
15 callback_.Run(this, position);
16 }
17
18 void LocationProviderBase::SetUpdateCallback(
19 const LocationProviderUpdateCallback& callback) {
20 callback_ = callback;
21 }
22
23 } // namespace device
OLDNEW
« no previous file with comments | « device/geolocation/location_provider_base.h ('k') | device/geolocation/network_location_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698