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

Unified Diff: chrome/browser/ui/views/dialog_uma/dialog_uma.cc

Issue 2790723004: Function to count dialog box creations. (Closed)
Patch Set: Change location of files in BUILD.gn Created 3 years, 8 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: chrome/browser/ui/views/dialog_uma/dialog_uma.cc
diff --git a/chrome/browser/ui/views/dialog_uma/dialog_uma.cc b/chrome/browser/ui/views/dialog_uma/dialog_uma.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3b6be49ae73e73f7d582185e7e7270994f0dd568
--- /dev/null
+++ b/chrome/browser/ui/views/dialog_uma/dialog_uma.cc
@@ -0,0 +1,12 @@
+// 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 "chrome/browser/ui/views/dialog_uma/dialog_uma.h"
+
+#include "base/metrics/histogram_macros.h"
+
+void RecordDialogCreation(DialogIdentifier identifier) {
+ UMA_HISTOGRAM_ENUMERATION("Dialog.Creation", identifier,
+ DialogIdentifier::MAX_VALUE);
+}

Powered by Google App Engine
This is Rietveld 408576698