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

Unified Diff: content/browser/renderer_host/media/video_capture_controller.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/browser/renderer_host/media/video_capture_controller.cc
diff --git a/content/browser/renderer_host/media/video_capture_controller.cc b/content/browser/renderer_host/media/video_capture_controller.cc
index 3a836dd2ff0ed546ed9a165d580a1434ae3b40ee..1094773bd2e13deec66c714559f1fca0bb2d6627 100644
--- a/content/browser/renderer_host/media/video_capture_controller.cc
+++ b/content/browser/renderer_host/media/video_capture_controller.cc
@@ -386,7 +386,7 @@ void VideoCaptureController::DoIncomingCapturedVideoFrameOnIOThread(
buffer->mapped_size())))
<< "VideoFrame does not appear to be backed by Buffer";
- for (const auto& client : controller_clients_) {
+ for (auto* client : controller_clients_) {
if (client->session_closed || client->paused)
continue;
@@ -506,7 +506,7 @@ VideoCaptureController::ControllerClient* VideoCaptureController::FindClient(
VideoCaptureController::ControllerClient* VideoCaptureController::FindClient(
int session_id,
const ControllerClients& clients) {
- for (auto client : clients) {
+ for (auto* client : clients) {
if (client->session_id == session_id)
return client;
}

Powered by Google App Engine
This is Rietveld 408576698