| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |