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

Side by Side Diff: chromeos/cert_loader.cc

Issue 2363653002: Cleanup unreachable cert adding code (Closed)
Patch Set: Rebased 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 | « chromeos/cert_loader.h ('k') | chromeos/cert_loader_unittest.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/cert_loader.h" 5 #include "chromeos/cert_loader.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 certificates_update_running_ = false; 167 certificates_update_running_ = false;
168 if (certificates_update_required_) 168 if (certificates_update_required_)
169 LoadCertificates(); 169 LoadCertificates();
170 } 170 }
171 171
172 void CertLoader::NotifyCertificatesLoaded(bool initial_load) { 172 void CertLoader::NotifyCertificatesLoaded(bool initial_load) {
173 FOR_EACH_OBSERVER(Observer, observers_, 173 FOR_EACH_OBSERVER(Observer, observers_,
174 OnCertificatesLoaded(*cert_list_, initial_load)); 174 OnCertificatesLoaded(*cert_list_, initial_load));
175 } 175 }
176 176
177 void CertLoader::OnCACertChanged(const net::X509Certificate* cert) { 177 void CertLoader::OnCertDBChanged(const net::X509Certificate* cert) {
178 // This is triggered when a CA certificate is modified. 178 VLOG(1) << "OnCertDBChanged";
179 VLOG(1) << "OnCACertChanged";
180 LoadCertificates(); 179 LoadCertificates();
181 } 180 }
182 181
183 void CertLoader::OnCertAdded(const net::X509Certificate* cert) {
184 // This is triggered when a client certificate is added.
185 VLOG(1) << "OnCertAdded";
186 LoadCertificates();
187 }
188
189 void CertLoader::OnCertRemoved(const net::X509Certificate* cert) {
190 VLOG(1) << "OnCertRemoved";
191 LoadCertificates();
192 }
193
194 } // namespace chromeos 182 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/cert_loader.h ('k') | chromeos/cert_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698