Index: ui/app_list/views/contents_view.cc |
diff --git a/ui/app_list/views/contents_view.cc b/ui/app_list/views/contents_view.cc |
index ed79a7a29eb6160bf2e3bd48e6afa4576b9d39d2..9dff72d22a34a2ff85d18768ac6cd55b4459f2f5 100644 |
--- a/ui/app_list/views/contents_view.cc |
+++ b/ui/app_list/views/contents_view.cc |
@@ -303,12 +303,12 @@ void ContentsView::OnScrollEvent(ui::ScrollEvent* event) { |
} |
float offset; |
- if (abs(event->x_offset()) > abs(event->y_offset())) |
+ if (std::abs(event->x_offset()) > std::abs(event->y_offset())) |
offset = event->x_offset(); |
else |
offset = event->y_offset(); |
- if (abs(offset) > kMinScrollToSwitchPage) { |
+ if (std::abs(offset) > kMinScrollToSwitchPage) { |
if (!pagination_model_->has_transition()) { |
pagination_model_->SelectPageRelative(offset > 0 ? -1 : 1, |
true); |