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

Side by Side Diff: blimp/net/blimp_connection.cc

Issue 2425493002: Remove usage of FOR_EACH_OBSERVER macro in blimp (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « blimp/engine/app/ui/blimp_screen.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "blimp/net/blimp_connection.h" 5 #include "blimp/net/blimp_connection.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } 185 }
186 186
187 BlimpMessageProcessor* BlimpConnection::GetOutgoingMessageProcessor() { 187 BlimpMessageProcessor* BlimpConnection::GetOutgoingMessageProcessor() {
188 return outgoing_msg_processor_.get(); 188 return outgoing_msg_processor_.get();
189 } 189 }
190 190
191 void BlimpConnection::OnConnectionError(int error) { 191 void BlimpConnection::OnConnectionError(int error) {
192 VLOG(1) << "OnConnectionError, error=" << error; 192 VLOG(1) << "OnConnectionError, error=" << error;
193 193
194 // Propagate the error to all observers. 194 // Propagate the error to all observers.
195 FOR_EACH_OBSERVER(ConnectionErrorObserver, error_observers_, 195 for (auto& observer : error_observers_)
196 OnConnectionError(error)); 196 observer.OnConnectionError(error);
197 } 197 }
198 198
199 } // namespace blimp 199 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/app/ui/blimp_screen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698