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

Unified Diff: content/renderer/media/media_recorder_handler.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/media_recorder_handler.cc
diff --git a/content/renderer/media/media_recorder_handler.cc b/content/renderer/media/media_recorder_handler.cc
index 19cec5a4e9218c216fa463db2755e10e808d8802..3feb8a9d779ad6c7cfcfef6bd2d68cb5dd6ae5c7 100644
--- a/content/renderer/media/media_recorder_handler.cc
+++ b/content/renderer/media/media_recorder_handler.cc
@@ -92,7 +92,7 @@ bool MediaRecorderHandler::canSupportMimeType(
std::vector<std::string> codecs_list;
media::ParseCodecString(web_codecs.utf8(), &codecs_list, true /* strip */);
for (const auto& codec : codecs_list) {
- const auto found = std::find_if(
+ auto* const* found = std::find_if(
&codecs[0], &codecs[codecs_count], [&codec](const char* name) {
return base::EqualsCaseInsensitiveASCII(codec, name);
});
@@ -240,9 +240,9 @@ void MediaRecorderHandler::pause() {
DCHECK(main_render_thread_checker_.CalledOnValidThread());
DCHECK(recording_);
recording_ = false;
- for (const auto& video_recorder : video_recorders_)
+ for (auto* video_recorder : video_recorders_)
video_recorder->Pause();
- for (const auto& audio_recorder : audio_recorders_)
+ for (auto* audio_recorder : audio_recorders_)
audio_recorder->Pause();
webm_muxer_->Pause();
}
@@ -251,9 +251,9 @@ void MediaRecorderHandler::resume() {
DCHECK(main_render_thread_checker_.CalledOnValidThread());
DCHECK(!recording_);
recording_ = true;
- for (const auto& video_recorder : video_recorders_)
+ for (auto* video_recorder : video_recorders_)
video_recorder->Resume();
- for (const auto& audio_recorder : audio_recorders_)
+ for (auto* audio_recorder : audio_recorders_)
audio_recorder->Resume();
webm_muxer_->Resume();
}
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.cc ('k') | content/renderer/media/media_stream_video_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698