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

Unified Diff: ios/chrome/today_extension/today_view_controller.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
« no previous file with comments | « ios/chrome/browser/ui/sync/sync_util.mm ('k') | media/audio/audio_output_resampler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/today_extension/today_view_controller.mm
diff --git a/ios/chrome/today_extension/today_view_controller.mm b/ios/chrome/today_extension/today_view_controller.mm
index 4ea110924ef348cd7e16bb4012429a777308789c..be1ea208b48791559536fe383c1f270c90954a4c 100644
--- a/ios/chrome/today_extension/today_view_controller.mm
+++ b/ios/chrome/today_extension/today_view_controller.mm
@@ -917,7 +917,8 @@ NSString* const kPhysicalWebOptedInPreference = @"PhysicalWebOptedIn";
state |= PHYSICAL_WEB_OPTED_IN_UNDECIDED_FLAG;
}
DCHECK(state < PHYSICAL_WEB_INITIAL_STATE_COUNT);
- UMA_HISTOGRAM_ENUMERATION("PhysicalWeb.InitialState", state,
+ UMA_HISTOGRAM_ENUMERATION("PhysicalWeb.InitialState",
+ static_cast<PhysicalWebInitialState>(state),
PHYSICAL_WEB_INITIAL_STATE_COUNT);
}
« no previous file with comments | « ios/chrome/browser/ui/sync/sync_util.mm ('k') | media/audio/audio_output_resampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698