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

Unified Diff: content/browser/renderer_host/input/motion_event_android.cc

Issue 1076443002: Removed obsolete float_util.h as VS2013 supports standards well enough. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 5 years, 8 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: content/browser/renderer_host/input/motion_event_android.cc
diff --git a/content/browser/renderer_host/input/motion_event_android.cc b/content/browser/renderer_host/input/motion_event_android.cc
index 3f18f95561b3d650ccc3b3d36bd040f6f12f587f..bed040a7a9b6b65655a0713b2ff1751758f027ff 100644
--- a/content/browser/renderer_host/input/motion_event_android.cc
+++ b/content/browser/renderer_host/input/motion_event_android.cc
@@ -5,9 +5,9 @@
#include "content/browser/renderer_host/input/motion_event_android.h"
#include <android/input.h>
+#include <cmath>
Mark Mentovai 2015/04/08 18:04:37 Leave a blank line between C system headers and C+
Mateusz Szymański 2015/04/09 07:32:51 Done.
#include "base/android/jni_android.h"
-#include "base/float_util.h"
#include "jni/MotionEvent_jni.h"
#include "ui/events/event_constants.h"
@@ -92,7 +92,7 @@ base::TimeTicks FromAndroidTime(int64 time_ms) {
}
float ToValidFloat(float x) {
- if (base::IsNaN(x))
+ if (std::isnan(x))
return 0.f;
// Wildly large orientation values have been observed in the wild after device

Powered by Google App Engine
This is Rietveld 408576698