| Index: chromecast/media/audio/cast_audio_mixer.cc
|
| diff --git a/chromecast/media/audio/cast_audio_mixer.cc b/chromecast/media/audio/cast_audio_mixer.cc
|
| index a7ed6f5bc1682434c460ad263ea0374ca1d52f0b..d1d3520ec9e904be8f934bb6031cea36c8199e45 100644
|
| --- a/chromecast/media/audio/cast_audio_mixer.cc
|
| +++ b/chromecast/media/audio/cast_audio_mixer.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/bind.h"
|
| #include "base/logging.h"
|
| #include "base/memory/ptr_util.h"
|
| +#include "base/stl_util.h"
|
| #include "chromecast/media/audio/cast_audio_manager.h"
|
| #include "chromecast/media/audio/cast_audio_output_stream.h"
|
| #include "media/base/audio_timestamp_helper.h"
|
| @@ -201,8 +202,7 @@ CastAudioMixer::~CastAudioMixer() {}
|
|
|
| bool CastAudioMixer::Register(MixerProxyStream* proxy_stream) {
|
| DCHECK_CALLED_ON_VALID_THREAD(audio_thread_checker_);
|
| - DCHECK(std::find(proxy_streams_.begin(), proxy_streams_.end(),
|
| - proxy_stream) == proxy_streams_.end());
|
| + DCHECK(!base::ContainsValue(proxy_streams_, proxy_stream));
|
|
|
| // Do not allow opening new streams while in error state.
|
| if (error_)
|
| @@ -227,8 +227,7 @@ bool CastAudioMixer::Register(MixerProxyStream* proxy_stream) {
|
|
|
| void CastAudioMixer::Unregister(MixerProxyStream* proxy_stream) {
|
| DCHECK_CALLED_ON_VALID_THREAD(audio_thread_checker_);
|
| - DCHECK(std::find(proxy_streams_.begin(), proxy_streams_.end(),
|
| - proxy_stream) != proxy_streams_.end());
|
| + DCHECK(base::ContainsValue(proxy_streams_, proxy_stream));
|
|
|
| proxy_streams_.erase(proxy_stream);
|
|
|
|
|