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

Unified Diff: ash/common/shelf/shelf_view.h

Issue 2776853002: Make UMA_HISTOGRAM_ENUMERATION work with scoped enums. (Closed)
Patch Set: iOS, Windows, and CrOS compile fixes 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 | « no previous file | ash/common/shelf/shelf_view.cc » ('j') | base/metrics/histogram_macros.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_view.h
diff --git a/ash/common/shelf/shelf_view.h b/ash/common/shelf/shelf_view.h
index 860dbe8e87c4423e207fbc8f4229cbf5ac75d977..139f42c29f71c3ffc330df780fed42813b166180 100644
--- a/ash/common/shelf/shelf_view.h
+++ b/ash/common/shelf/shelf_view.h
@@ -54,10 +54,12 @@ namespace test {
class ShelfViewTestAPI;
}
-extern const int SHELF_ALIGNMENT_UMA_ENUM_VALUE_BOTTOM;
-extern const int SHELF_ALIGNMENT_UMA_ENUM_VALUE_LEFT;
-extern const int SHELF_ALIGNMENT_UMA_ENUM_VALUE_RIGHT;
-extern const int SHELF_ALIGNMENT_UMA_ENUM_VALUE_COUNT;
+enum ShelfAlignmentUmaEnumValue {
+ SHELF_ALIGNMENT_UMA_ENUM_VALUE_BOTTOM,
+ SHELF_ALIGNMENT_UMA_ENUM_VALUE_LEFT,
+ SHELF_ALIGNMENT_UMA_ENUM_VALUE_RIGHT,
+ SHELF_ALIGNMENT_UMA_ENUM_VALUE_COUNT,
rkaplow 2017/03/29 18:02:50 Seems a bit easy to miss that this last needs to b
dcheng 2017/03/29 18:24:40 Done.
+};
class ASH_EXPORT ShelfView : public views::View,
public ShelfModelObserver,
« no previous file with comments | « no previous file | ash/common/shelf/shelf_view.cc » ('j') | base/metrics/histogram_macros.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698