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

Unified Diff: ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm

Issue 2886933003: Use stricter type checking in UMA_HISTOGRAM_ENUMERATION (Closed)
Patch Set: fix new errors Created 3 years, 5 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: ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm
diff --git a/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm b/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm
index 56528cada54e2c24d39f6fbc482aae2b5d2b4953..66450e0b92c5a0ba67614d068d8b1fe1bf5e8c21 100644
--- a/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm
+++ b/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm
@@ -165,8 +165,10 @@ enum PhysicalWebInitialStateIosChrome {
}
DCHECK(state < PHYSICAL_WEB_INITIAL_STATE_COUNT);
- UMA_HISTOGRAM_ENUMERATION("PhysicalWeb.InitialState.IosChrome", state,
- PHYSICAL_WEB_INITIAL_STATE_COUNT);
+ UMA_HISTOGRAM_ENUMERATION(
+ "PhysicalWeb.InitialState.IosChrome",
+ static_cast<PhysicalWebInitialStateIosChrome>(state),
+ PHYSICAL_WEB_INITIAL_STATE_COUNT);
}
@end

Powered by Google App Engine
This is Rietveld 408576698