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

Unified Diff: content/renderer/media/webrtc_audio_device_impl.cc

Issue 2101943004: content: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase/update Created 4 years, 5 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/webrtc_audio_device_impl.cc
diff --git a/content/renderer/media/webrtc_audio_device_impl.cc b/content/renderer/media/webrtc_audio_device_impl.cc
index 2cb2eacbb32a05ab72d41ad2701915a1272ae3f7..3a27a7d496eac901e0fd63d7cf5c0fb40fc3fa63 100644
--- a/content/renderer/media/webrtc_audio_device_impl.cc
+++ b/content/renderer/media/webrtc_audio_device_impl.cc
@@ -68,7 +68,7 @@ void WebRtcAudioDeviceImpl::RenderData(media::AudioBus* audio_bus,
#if DCHECK_IS_ON()
DCHECK(renderer_->CurrentThreadIsRenderingThread());
if (!audio_renderer_thread_checker_.CalledOnValidThread()) {
- for (const auto& sink : playout_sinks_)
+ for (auto* sink : playout_sinks_)
sink->OnRenderThreadChanged();
}
#endif
@@ -134,7 +134,7 @@ void WebRtcAudioDeviceImpl::AudioRendererThreadStopped() {
// Notify the playout sink of the change.
// Not holding |lock_| because the caller must guarantee that the audio
// renderer thread is dead, so no race is possible with |playout_sinks_|
- for (const auto& sink : playout_sinks_)
+ for (auto* sink : playout_sinks_)
sink->OnPlayoutDataSourceChanged();
}
« no previous file with comments | « content/renderer/media/webrtc/stun_field_trial.cc ('k') | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698