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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.cpp

Issue 2771893002: Move Bluetooth.Web.FunctionCall.Count UMA from browser to WebKit (Closed)
Patch Set: move Bluetooth.Web.FunctionCall.Count UMA from browser to WebKit Created 3 years, 9 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: 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

Powered by Google App Engine
This is Rietveld 408576698