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

Unified Diff: services/device/fingerprint/fingerprint_impl_default.cc

Issue 2664353002: Host fingerprint mojo service within the device service. (Closed)
Patch Set: rebase and trybot Created 3 years, 10 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
Index: services/device/fingerprint/fingerprint_impl_default.cc
diff --git a/services/device/fingerprint/fingerprint_impl_default.cc b/services/device/fingerprint/fingerprint_impl_default.cc
new file mode 100644
index 0000000000000000000000000000000000000000..be1876747a5e5e25629ebc99acb4e743e70978dd
--- /dev/null
+++ b/services/device/fingerprint/fingerprint_impl_default.cc
@@ -0,0 +1,27 @@
+// 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 "services/device/fingerprint/fingerprint.h"
+#include "services/device/public/interfaces/fingerprint.mojom.h"
+
+namespace device {
+
+namespace {
+
+// An empty implementation of Fingerprint.
+// Used on platforms where a real implementation is not available.
+class FingerprintImplDefault : public Fingerprint {
+ public:
+ explicit FingerprintImplDefault() {}
+ ~FingerprintImplDefault() {}
+};
+
+} // namespace
+
+// static
+void Fingerprint::CreateFingerprint(device::mojom::FingerprintRequest request) {
+ // Do nothing.
+}
+
+} // namespace device

Powered by Google App Engine
This is Rietveld 408576698