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

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: simplify type checking 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
« no previous file with comments | « content/renderer/input/render_widget_input_handler.cc ('k') | ios/chrome/browser/ui/browser_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698