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

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

Issue 2975683002: Add GeolocationManager service (Closed)
Patch Set: typo Created 3 years, 5 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
« no previous file with comments | « device/geolocation/geolocation_config.h ('k') | device/geolocation/geolocation_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 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/geolocation_config.h"
6
7 #include "base/bind.h"
8 #include "mojo/public/cpp/bindings/strong_binding.h"
9
10 namespace device {
11
12 GeolocationConfig::GeolocationConfig() {}
13
14 GeolocationConfig::~GeolocationConfig() {}
15
16 // static
17 void GeolocationConfig::Create(
18 const service_manager::BindSourceInfo& source_info,
19 mojom::GeolocationConfigRequest request) {
20 mojo::MakeStrongBinding(base::MakeUnique<GeolocationConfig>(),
21 std::move(request));
22 }
23
24 void GeolocationConfig::IsHighAccuracyLocationBeingCaptured(
25 IsHighAccuracyLocationBeingCapturedCallback callback) {
26 std::move(callback).Run(
27 GeolocationProvider::GetInstance()->HighAccuracyLocationInUse());
28 }
29
30 } // namespace device
OLDNEW
« no previous file with comments | « device/geolocation/geolocation_config.h ('k') | device/geolocation/geolocation_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698