Index: content/browser/media/webrtc/webrtc_internals.cc |
diff --git a/content/browser/media/webrtc/webrtc_internals.cc b/content/browser/media/webrtc/webrtc_internals.cc |
index 09d7a970d26052e49cedf927f7bf87711bfb1c1a..29fbbb5be547d818c98dba49ba8fd9da47ed1673 100644 |
--- a/content/browser/media/webrtc/webrtc_internals.cc |
+++ b/content/browser/media/webrtc/webrtc_internals.cc |
@@ -263,10 +263,8 @@ void WebRTCInternals::UpdateObserver(WebRTCInternalsUIObserver* observer) { |
if (peer_connection_data_.GetSize() > 0) |
observer->OnUpdate("updateAllPeerConnections", &peer_connection_data_); |
- for (base::ListValue::iterator it = get_user_media_requests_.begin(); |
- it != get_user_media_requests_.end(); |
- ++it) { |
- observer->OnUpdate("addGetUserMedia", *it); |
+ for (const auto& request : get_user_media_requests_) { |
+ observer->OnUpdate("addGetUserMedia", request.get()); |
} |
} |