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

Unified Diff: ui/events/blink/input_handler_proxy.cc

Issue 2776853002: Make UMA_HISTOGRAM_ENUMERATION work with scoped enums. (Closed)
Patch Set: Add comments 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 | « media/blink/resource_multibuffer_data_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/input_handler_proxy.cc
diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc
index 20b84d1c4936211dbfaafe0c9ffb4c2fbecbbdee..c63e47366c2d240d24598d27a117bb1a0324c3ca 100644
--- a/ui/events/blink/input_handler_proxy.cc
+++ b/ui/events/blink/input_handler_proxy.cc
@@ -556,7 +556,8 @@ void InputHandlerProxy::RecordMainThreadScrollingReasons(
// greater than the sample value. kMainThreadScrollingReasonCount doesn't
// include the NotScrollingOnMain enum but the histograms do so adding
// the +1 is necessary.
- uint32_t mainThreadScrollingReasonEnumMax =
+ // TODO(dcheng): Fix https://crbug.com/705169 so this isn't needed.
+ constexpr uint32_t mainThreadScrollingReasonEnumMax =
sky 2017/03/30 03:22:11 kMainThread (or main_thread_sco...)
cc::MainThreadScrollingReason::kMainThreadScrollingReasonCount + 1;
if (reasons == cc::MainThreadScrollingReason::kNotScrollingOnMain) {
if (device == blink::WebGestureDeviceTouchscreen) {
« no previous file with comments | « media/blink/resource_multibuffer_data_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698