Index: ash/metrics/user_metrics_recorder.cc |
diff --git a/ash/metrics/user_metrics_recorder.cc b/ash/metrics/user_metrics_recorder.cc |
index 0bf56ddc27b7abdb42b2481535ec875ca0bf5421..36ce870f935b389dbd452fd07dfefc15f9c08878 100644 |
--- a/ash/metrics/user_metrics_recorder.cc |
+++ b/ash/metrics/user_metrics_recorder.cc |
@@ -550,10 +550,11 @@ void UserMetricsRecorder::RecordPeriodicMetrics() { |
if (shelf) { |
// TODO(bruthig): Consider tracking the time spent in each alignment. |
UMA_HISTOGRAM_ENUMERATION("Ash.ShelfAlignmentOverTime", |
- shelf->SelectValueForShelfAlignment( |
- SHELF_ALIGNMENT_UMA_ENUM_VALUE_BOTTOM, |
- SHELF_ALIGNMENT_UMA_ENUM_VALUE_LEFT, |
- SHELF_ALIGNMENT_UMA_ENUM_VALUE_RIGHT), |
+ static_cast<ShelfAlignmentUmaEnumValue>( |
+ shelf->SelectValueForShelfAlignment( |
+ SHELF_ALIGNMENT_UMA_ENUM_VALUE_BOTTOM, |
+ SHELF_ALIGNMENT_UMA_ENUM_VALUE_LEFT, |
+ SHELF_ALIGNMENT_UMA_ENUM_VALUE_RIGHT)), |
SHELF_ALIGNMENT_UMA_ENUM_VALUE_COUNT); |
} |