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); |
} |