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

Unified Diff: cc/base/histograms.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
« no previous file with comments | « base/values.cc ('k') | chrome/browser/speech/tts_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/histograms.cc
diff --git a/cc/base/histograms.cc b/cc/base/histograms.cc
index af1ea661a89569d6f4e09208d9e784a388340ae7..8b284d9c72189efd5b86d57ac64b6dfbf1e44e74 100644
--- a/cc/base/histograms.cc
+++ b/cc/base/histograms.cc
@@ -5,9 +5,9 @@
#include "cc/base/histograms.h"
#include <algorithm>
+#include <cmath>
#include <limits>
-#include "base/float_util.h"
#include "base/numerics/safe_conversions.h"
namespace cc {
@@ -38,7 +38,7 @@ void ScopedUMAHistogramAreaTimerBase::GetHistogramValues(
elapsed = std::max(
elapsed, base::TimeDelta::FromMicroseconds(kMinimumTimeMicroseconds));
double area_per_time = area / elapsed.InMillisecondsF();
- DCHECK(!base::IsNaN(area_per_time));
+ DCHECK(!std::isnan(area_per_time));
*time_microseconds = base::saturated_cast<Sample>(elapsed.InMicroseconds());
*pixels_per_ms = base::saturated_cast<Sample>(area_per_time);
}
« no previous file with comments | « base/values.cc ('k') | chrome/browser/speech/tts_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698