Index: content/browser/websockets/websocket_manager.cc |
diff --git a/content/browser/websockets/websocket_manager.cc b/content/browser/websockets/websocket_manager.cc |
index 4d0e743c03dc3a576f9eaf7d198f1dae8127a69b..87ef048a686c2ace4af47ffa487a297da9e098cc 100644 |
--- a/content/browser/websockets/websocket_manager.cc |
+++ b/content/browser/websockets/websocket_manager.cc |
@@ -115,7 +115,7 @@ WebSocketManager::~WebSocketManager() { |
if (!context_destroyed_ && url_request_context_getter_) |
url_request_context_getter_->RemoveObserver(this); |
- for (auto impl : impls_) { |
+ for (auto* impl : impls_) { |
impl->GoAway(); |
delete impl; |
} |
@@ -225,7 +225,7 @@ void WebSocketManager::OnLostConnectionToClient(WebSocketImpl* impl) { |
void WebSocketManager::OnContextShuttingDown() { |
context_destroyed_ = true; |
url_request_context_getter_ = nullptr; |
- for (const auto& impl : impls_) { |
+ for (auto* impl : impls_) { |
impl->GoAway(); |
delete impl; |
} |