Index: third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.cpp |
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4e313ea4359634c6cdc725893ff9624558b61b4b |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.cpp |
@@ -0,0 +1,17 @@ |
+// 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 "modules/bluetooth/BluetoothMetrics.h" |
+ |
+#include "base/metrics/histogram_macros.h" |
+ |
+namespace blink { |
+ |
+void RecordWebBluetoothFunctionCall(UMAWebBluetoothFunction function) { |
+ UMA_HISTOGRAM_ENUMERATION("Bluetooth.Web.FunctionCall.Count", |
+ static_cast<int>(function), |
+ static_cast<int>(UMAWebBluetoothFunction::COUNT)); |
+} |
+ |
+} // namespace blink |