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

Unified Diff: ash/wm/immersive_fullscreen_controller.cc

Issue 274533004: clang: Turn on -Wabsolute-value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ash3 Created 6 years, 7 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 | « ash/touch/touch_uma.cc ('k') | build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/immersive_fullscreen_controller.cc
diff --git a/ash/wm/immersive_fullscreen_controller.cc b/ash/wm/immersive_fullscreen_controller.cc
index b5df4b1062d5ccac5db29284840d95e0bc090da6..fcf0c3014a8a92b530e410e4eb7a193522e66905 100644
--- a/ash/wm/immersive_fullscreen_controller.cc
+++ b/ash/wm/immersive_fullscreen_controller.cc
@@ -870,8 +870,8 @@ ImmersiveFullscreenController::GetSwipeType(ui::GestureEvent* event) const {
if (event->type() != ui::ET_GESTURE_SCROLL_UPDATE)
return SWIPE_NONE;
// Make sure that it is a clear vertical gesture.
- if (abs(event->details().scroll_y()) <=
- kSwipeVerticalThresholdMultiplier * abs(event->details().scroll_x()))
+ if (std::abs(event->details().scroll_y()) <=
+ kSwipeVerticalThresholdMultiplier * std::abs(event->details().scroll_x()))
return SWIPE_NONE;
if (event->details().scroll_y() < 0)
return SWIPE_CLOSE;
« no previous file with comments | « ash/touch/touch_uma.cc ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698