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

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

Issue 2790723004: Function to count dialog box creations. (Closed)
Patch Set: Change location of files in BUILD.gn 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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/dialog_uma/dialog_uma.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/dialog_uma/dialog_uma.h
diff --git a/chrome/browser/ui/views/dialog_uma/dialog_uma.h b/chrome/browser/ui/views/dialog_uma/dialog_uma.h
new file mode 100644
index 0000000000000000000000000000000000000000..2bffaea5078132af99072d9ea6047449b9ad48bd
--- /dev/null
+++ b/chrome/browser/ui/views/dialog_uma/dialog_uma.h
@@ -0,0 +1,21 @@
+// 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.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_DIALOG_UMA_DIALOG_UMA_H_
+#define CHROME_BROWSER_UI_VIEWS_DIALOG_UMA_DIALOG_UMA_H_
+
+// Values used in the Dialog.Creation UMA metric. Each value represents a
+// different type of dialog box.
+// These values are written to logs. New enum values can be added, but existing
+// enums must never be renumbered or deleted and reused.
+enum class DialogIdentifier {
+ UNKNOWN = 0,
+ TRANSLATE = 1,
+ MAX_VALUE = 2,
tapted 2017/04/04 04:18:06 This should drop the `= 2` and the trailing comma.
pdyson 2017/04/04 04:29:53 I see. Done. With those changes "git cl format" p
+};
+
+// Record an UMA metric counting the creation of a dialog box of this type.
+void RecordDialogCreation(DialogIdentifier identifier);
+
+#endif // CHROME_BROWSER_UI_VIEWS_DIALOG_UMA_DIALOG_UMA_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/dialog_uma/dialog_uma.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698