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

Side by Side Diff: net/log/net_log.cc

Issue 2423713002: Remove usage of FOR_EACH_OBSERVER macro in net (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 | « net/dns/mdns_client_impl.cc ('k') | net/nqe/network_quality_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/log/net_log.h" 5 #include "net/log/net_log.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 const NetLogSource& source, 272 const NetLogSource& source,
273 NetLogEventPhase phase, 273 NetLogEventPhase phase,
274 const NetLogParametersCallback* parameters_callback) { 274 const NetLogParametersCallback* parameters_callback) {
275 if (!IsCapturing()) 275 if (!IsCapturing())
276 return; 276 return;
277 NetLogEntryData entry_data(type, source, phase, base::TimeTicks::Now(), 277 NetLogEntryData entry_data(type, source, phase, base::TimeTicks::Now(),
278 parameters_callback); 278 parameters_callback);
279 279
280 // Notify all of the log observers. 280 // Notify all of the log observers.
281 base::AutoLock lock(lock_); 281 base::AutoLock lock(lock_);
282 FOR_EACH_OBSERVER(ThreadSafeObserver, observers_, OnAddEntryData(entry_data)); 282 for (auto& observer : observers_)
283 observer.OnAddEntryData(entry_data);
283 } 284 }
284 285
285 } // namespace net 286 } // namespace net
OLDNEW
« no previous file with comments | « net/dns/mdns_client_impl.cc ('k') | net/nqe/network_quality_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698