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

Unified Diff: chrome/browser/chromeos/arc/arc_navigation_throttle.h

Issue 2092253002: Record UMA in ArcNavigationThrottle::OnDisambigDialogClosed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/chromeos/arc/arc_navigation_throttle.h
diff --git a/chrome/browser/chromeos/arc/arc_navigation_throttle.h b/chrome/browser/chromeos/arc/arc_navigation_throttle.h
index c385b979c33bcc6ef2b87162d972d2c65e84eb97..95d377f12e45d8bdd43c22799abf136482bdf363 100644
--- a/chrome/browser/chromeos/arc/arc_navigation_throttle.h
+++ b/chrome/browser/chromeos/arc/arc_navigation_throttle.h
@@ -26,12 +26,15 @@ namespace arc {
// traffic initiated on Chrome browser, either on Chrome or an ARC's app.
class ArcNavigationThrottle : public content::NavigationThrottle {
public:
- enum class CloseReason {
- REASON_ALWAYS_PRESSED,
- REASON_JUST_ONCE_PRESSED,
- REASON_DIALOG_DEACTIVATED,
- REASON_PREFERRED_ACTIVITY_FOUND,
- REASON_ERROR
+ // These enums are used to define the buckets for an enumerated UMA histogram
+ // and need to be synced with histograms.xml.
Ilya Sherman 2016/06/28 03:17:15 nit: Please also document that this enum should be
Yusuke Sato 2016/06/28 05:04:23 Done.
+ enum class CloseReason : int {
+ REASON_ALWAYS_PRESSED = 0,
+ REASON_JUST_ONCE_PRESSED = 1,
+ REASON_PREFERRED_ACTIVITY_FOUND = 2,
+ REASON_DIALOG_DEACTIVATED = 3,
+ REASON_ERROR = 4,
Ilya Sherman 2016/06/28 03:17:15 Optional nit: I'd omit the "REASON_" prefix since
Yusuke Sato 2016/06/28 05:04:23 Done.
+ SIZE,
};
using NameAndIcon = std::pair<std::string, gfx::Image>;
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_navigation_throttle.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698