Index: chrome/browser/usb/web_usb_histograms.cc |
diff --git a/chrome/browser/usb/web_usb_histograms.cc b/chrome/browser/usb/web_usb_histograms.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a330c7a0c003ea47700d36d0b073959cd5d13458 |
--- /dev/null |
+++ b/chrome/browser/usb/web_usb_histograms.cc |
@@ -0,0 +1,12 @@ |
+// Copyright 2016 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 "chrome/browser/usb/web_usb_histograms.h" |
+ |
+#include "base/metrics/histogram_macros.h" |
+ |
+void RecordWebUsbChooserClosure(WebUsbChooserClosed disposition) { |
+ UMA_HISTOGRAM_ENUMERATION("WebUsb.ChooserClosed", disposition, |
+ WEBUSB_CHOOSER_CLOSED_MAX); |
+} |