diff options
author | mateuszs <mateuszs@opera.com> | 2015-04-24 06:20:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-24 13:20:30 +0000 |
commit | 3371ab09fb14093f9f5f5db41a60d98b215217c1 (patch) | |
tree | ea9a957dc2f23cb0a80e85c44e2ac77c66b4cca7 /base/trace_event/trace_event_impl.cc | |
parent | 6fb4e15bef960a41144cb5abf366c1618afed07f (diff) | |
download | chromium_src-3371ab09fb14093f9f5f5db41a60d98b215217c1.zip chromium_src-3371ab09fb14093f9f5f5db41a60d98b215217c1.tar.gz chromium_src-3371ab09fb14093f9f5f5db41a60d98b215217c1.tar.bz2 |
Removed obsolete float_util.h as VS2013 supports standards well enough.
BUG=
Review URL: https://codereview.chromium.org/1076443002
Cr-Commit-Position: refs/heads/master@{#326781}
Diffstat (limited to 'base/trace_event/trace_event_impl.cc')
-rw-r--r-- | base/trace_event/trace_event_impl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/trace_event/trace_event_impl.cc b/base/trace_event/trace_event_impl.cc index 12f9598..cbeeeab 100644 --- a/base/trace_event/trace_event_impl.cc +++ b/base/trace_event/trace_event_impl.cc @@ -5,12 +5,12 @@ #include "base/trace_event/trace_event_impl.h" #include <algorithm> +#include <cmath> #include "base/base_switches.h" #include "base/bind.h" #include "base/command_line.h" #include "base/debug/leak_annotations.h" -#include "base/float_util.h" #include "base/format_macros.h" #include "base/json/string_escape.h" #include "base/lazy_instance.h" @@ -647,7 +647,7 @@ void TraceEvent::AppendValueAsJSON(unsigned char type, // should be made into a common method. std::string real; double val = value.as_double; - if (IsFinite(val)) { + if (std::isfinite(val)) { real = DoubleToString(val); // Ensure that the number has a .0 if there's no decimal or 'e'. This // makes sure that when we read the JSON back, it's interpreted as a @@ -665,7 +665,7 @@ void TraceEvent::AppendValueAsJSON(unsigned char type, // "-.1" bad "-0.1" good real.insert(1, "0"); } - } else if (IsNaN(val)){ + } else if (std::isnan(val)){ // The JSON spec doesn't allow NaN and Infinity (since these are // objects in EcmaScript). Use strings instead. real = "\"NaN\""; |