| Index: media/audio/audio_power_monitor.cc
|
| diff --git a/media/audio/audio_power_monitor.cc b/media/audio/audio_power_monitor.cc
|
| index b0b17971b4fa63d8e34700bfec75ab13c5d6a21a..efbad6c5006ec4647e10e31d4db6b3297c66b0f9 100644
|
| --- a/media/audio/audio_power_monitor.cc
|
| +++ b/media/audio/audio_power_monitor.cc
|
| @@ -7,7 +7,6 @@
|
| #include <algorithm>
|
| #include <cmath>
|
|
|
| -#include "base/float_util.h"
|
| #include "base/logging.h"
|
| #include "base/time/time.h"
|
| #include "media/base/audio_bus.h"
|
| @@ -53,7 +52,7 @@ void AudioPowerMonitor::Scan(const AudioBus& buffer, int num_frames) {
|
| const std::pair<float, float> ewma_and_max = vector_math::EWMAAndMaxPower(
|
| average_power_, buffer.channel(i), num_frames, sample_weight_);
|
| // If data in audio buffer is garbage, ignore its effect on the result.
|
| - if (!base::IsFinite(ewma_and_max.first)) {
|
| + if (!std::isfinite(ewma_and_max.first)) {
|
| sum_power += average_power_;
|
| } else {
|
| sum_power += ewma_and_max.first;
|
|
|