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

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 headers and fixed formatting. 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..a3842205a1e3b9773754e661a96d5ded22fb49bf 100644
--- a/content/renderer/media/media_stream_audio_level_calculator.cc
+++ b/content/renderer/media/media_stream_audio_level_calculator.cc
@@ -4,7 +4,6 @@
#include "content/renderer/media/media_stream_audio_level_calculator.h"
-#include "base/float_util.h"
#include "base/logging.h"
#include "base/stl_util.h"
#include "media/base/audio_bus.h"
@@ -21,7 +20,7 @@ float MaxAmplitude(const float* audio_data, int length) {
if (absolute > max)
max = absolute;
}
- DCHECK(base::IsFinite(max));
+ DCHECK(std::isfinite(max));
Mark Mentovai 2015/04/09 12:46:37 #include <cmath>. I asked you to self-review to fi
Mateusz Szymański 2015/04/09 15:32:29 Done.
return max;
}

Powered by Google App Engine
This is Rietveld 408576698