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

Unified Diff: content/renderer/media/media_stream_audio_level_calculator.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: Added missing includes everywhere. 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/renderer/media/media_stream_audio_level_calculator.cc
diff --git a/content/renderer/media/media_stream_audio_level_calculator.cc b/content/renderer/media/media_stream_audio_level_calculator.cc
index 320b1ab728d736b58c1a7f4450ea080e07fbb186..ad76a43dd2f6ad14125b5a92506990e1bbc34aaf 100644
--- a/content/renderer/media/media_stream_audio_level_calculator.cc
+++ b/content/renderer/media/media_stream_audio_level_calculator.cc
@@ -4,7 +4,8 @@
#include "content/renderer/media/media_stream_audio_level_calculator.h"
-#include "base/float_util.h"
+#include <cmath>
+
#include "base/logging.h"
#include "base/stl_util.h"
#include "media/base/audio_bus.h"
@@ -21,7 +22,7 @@ float MaxAmplitude(const float* audio_data, int length) {
if (absolute > max)
max = absolute;
}
- DCHECK(base::IsFinite(max));
+ DCHECK(std::isfinite(max));
return max;
}

Powered by Google App Engine
This is Rietveld 408576698