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

Side by Side Diff: chromeos/network/client_cert_resolver.cc

Issue 2413963002: Replace FOR_EACH_OBSERVER in chromeos/ with range-based for (Closed)
Patch Set: Run the script again with '/mg' 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chromeos/network/client_cert_resolver.h" 5 #include "chromeos/network/client_cert_resolver.h"
6 6
7 #include <cert.h> 7 #include <cert.h>
8 #include <certt.h> // for (SECCertUsageEnum) certUsageAnyCA 8 #include <certt.h> // for (SECCertUsageEnum) certUsageAnyCA
9 #include <pk11pub.h> 9 #include <pk11pub.h>
10 10
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 else 562 else
563 ResolvePendingNetworks(); 563 ResolvePendingNetworks();
564 } 564 }
565 565
566 void ClientCertResolver::NotifyResolveRequestCompleted() { 566 void ClientCertResolver::NotifyResolveRequestCompleted() {
567 VLOG(2) << "Notify observers: " << (network_properties_changed_ ? "" : "no ") 567 VLOG(2) << "Notify observers: " << (network_properties_changed_ ? "" : "no ")
568 << "networks changed."; 568 << "networks changed.";
569 resolve_task_running_ = false; 569 resolve_task_running_ = false;
570 const bool changed = network_properties_changed_; 570 const bool changed = network_properties_changed_;
571 network_properties_changed_ = false; 571 network_properties_changed_ = false;
572 FOR_EACH_OBSERVER(Observer, observers_, ResolveRequestCompleted(changed)); 572 for (auto& observer : observers_)
573 observer.ResolveRequestCompleted(changed);
573 } 574 }
574 575
575 base::Time ClientCertResolver::Now() const { 576 base::Time ClientCertResolver::Now() const {
576 if (testing_clock_) 577 if (testing_clock_)
577 return testing_clock_->Now(); 578 return testing_clock_->Now();
578 return base::Time::Now(); 579 return base::Time::Now();
579 } 580 }
580 581
581 } // namespace chromeos 582 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/login/login_state.cc ('k') | chromeos/network/managed_network_configuration_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698