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

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: 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/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..9efd42998105dcf9a7f31552a101670bc89dbbc1 100644
--- a/content/child/v8_value_converter_impl.cc
+++ b/content/child/v8_value_converter_impl.cc
@@ -4,11 +4,11 @@
#include "content/child/v8_value_converter_impl.h"
+#include <cmath>
#include <string>
#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 +309,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::isfinite(val_as_double))
return NULL;
return new base::FundamentalValue(val_as_double);
}

Powered by Google App Engine
This is Rietveld 408576698