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

Unified Diff: content/child/v8_value_converter_impl.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/child/v8_value_converter_impl.cc
diff --git a/content/child/v8_value_converter_impl.cc b/content/child/v8_value_converter_impl.cc
index 6ff87974a4951ca2fd7d6e7fdc28a68b79a0d2c1..6ef740d77a7a6c6d927b04e2617967d667eb4cff 100644
--- a/content/child/v8_value_converter_impl.cc
+++ b/content/child/v8_value_converter_impl.cc
@@ -8,7 +8,6 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
-#include "base/float_util.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
@@ -309,7 +308,7 @@ base::Value* V8ValueConverterImpl::FromV8ValueImpl(
if (val->IsNumber()) {
double val_as_double = val.As<v8::Number>()->Value();
- if (!base::IsFinite(val_as_double))
+ if (std::isinf(val_as_double))
Mark Mentovai 2015/04/08 18:04:37 #include <cmath>
Mateusz Szymański 2015/04/09 07:32:51 Done.
return NULL;
return new base::FundamentalValue(val_as_double);
}

Powered by Google App Engine
This is Rietveld 408576698