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

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

Issue 2790723004: Function to count dialog box creations. (Closed)
Patch Set: Use function instead of class for logging. 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: 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..c03030d84403273577bd8cf1efad27e77f9479d6
--- /dev/null
+++ b/chrome/browser/ui/views/dialog_uma/dialog_uma.h
@@ -0,0 +1,19 @@
+// 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 DialogBoxIdentifier {
tapted 2017/04/03 09:31:30 enum class DialogIdentifier (currently this pollu
pdyson 2017/04/04 00:54:43 Done and Done.
+ UNKNOWN = 0,
+ TRANSLATE = 1,
+};
+
+void ReportDialogCreation(DialogBoxIdentifier identifier);
tapted 2017/04/03 09:31:30 nit: needs a comment also other UMA stuff (e.g. t
pdyson 2017/04/04 00:54:43 Translate used Report, but I see Record elsewhere.
+
+#endif // CHROME_BROWSER_UI_VIEWS_DIALOG_UMA_DIALOG_UMA_H_

Powered by Google App Engine
This is Rietveld 408576698