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

Unified Diff: content/browser/websockets/websocket_manager.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « content/browser/web_contents/web_contents_view_child_frame.cc ('k') | content/common/url_schemes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « content/browser/web_contents/web_contents_view_child_frame.cc ('k') | content/common/url_schemes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698