| Index: device/geolocation/geolocation_manager.cc
|
| diff --git a/device/geolocation/geolocation_manager.cc b/device/geolocation/geolocation_manager.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..da00de864b67e5528a64a22b3fbad02c8f006a81
|
| --- /dev/null
|
| +++ b/device/geolocation/geolocation_manager.cc
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "device/geolocation/geolocation_manager.h"
|
| +
|
| +#include "base/bind.h"
|
| +#include "mojo/public/cpp/bindings/strong_binding.h"
|
| +
|
| +namespace device {
|
| +
|
| +GeolocationManager::GeolocationManager() {}
|
| +
|
| +GeolocationManager::~GeolocationManager() {}
|
| +
|
| +// static
|
| +void GeolocationManager::Create(
|
| + const service_manager::BindSourceInfo& source_info,
|
| + mojom::GeolocationManagerRequest request) {
|
| + mojo::MakeStrongBinding(base::MakeUnique<GeolocationManager>(),
|
| + std::move(request));
|
| +}
|
| +
|
| +void GeolocationManager::IsHighAccuracyLocationBeingCaptured(
|
| + IsHighAccuracyLocationBeingCapturedCallback callback) {
|
| + bool high_accuracy =
|
| + GeolocationProvider::GetInstance()->HighAccuracyLocationInUse();
|
| + std::move(callback).Run(high_accuracy);
|
| + return;
|
| +}
|
| +
|
| +} // namespace device
|
|
|