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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/geolocation/geolocation_config.h ('k') | device/geolocation/geolocation_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/geolocation_config.cc
diff --git a/device/geolocation/geolocation_config.cc b/device/geolocation/geolocation_config.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7ab8a8d73744f9366735f1b772c2bdc10608b905
--- /dev/null
+++ b/device/geolocation/geolocation_config.cc
@@ -0,0 +1,30 @@
+// 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_config.h"
+
+#include "base/bind.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+
+namespace device {
+
+GeolocationConfig::GeolocationConfig() {}
+
+GeolocationConfig::~GeolocationConfig() {}
+
+// static
+void GeolocationConfig::Create(
+ const service_manager::BindSourceInfo& source_info,
+ mojom::GeolocationConfigRequest request) {
+ mojo::MakeStrongBinding(base::MakeUnique<GeolocationConfig>(),
+ std::move(request));
+}
+
+void GeolocationConfig::IsHighAccuracyLocationBeingCaptured(
+ IsHighAccuracyLocationBeingCapturedCallback callback) {
+ std::move(callback).Run(
+ GeolocationProvider::GetInstance()->HighAccuracyLocationInUse());
+}
+
+} // namespace device
« 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