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

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: Fixed mistake in value converter. 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..5a437f4e4694a5f4f3c52527de2e2f91de20627c 100644
--- a/content/browser/renderer_host/input/motion_event_android.cc
+++ b/content/browser/renderer_host/input/motion_event_android.cc
@@ -6,8 +6,9 @@
#include <android/input.h>
+#include <cmath>
+
#include "base/android/jni_android.h"
-#include "base/float_util.h"
#include "jni/MotionEvent_jni.h"
#include "ui/events/event_constants.h"
@@ -92,7 +93,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