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

Side by Side Diff: chromeos/cert_loader.cc

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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 (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 20 matching lines...) Expand all
31 31
32 // static 32 // static
33 void CertLoader::Shutdown() { 33 void CertLoader::Shutdown() {
34 CHECK(g_cert_loader); 34 CHECK(g_cert_loader);
35 delete g_cert_loader; 35 delete g_cert_loader;
36 g_cert_loader = NULL; 36 g_cert_loader = NULL;
37 } 37 }
38 38
39 // static 39 // static
40 CertLoader* CertLoader::Get() { 40 CertLoader* CertLoader::Get() {
41 CHECK(g_cert_loader) << "CertLoader::Get() called before Initialize()"; 41 // CertLoader::Get() called before Initialize()
42 CHECK(g_cert_loader);
42 return g_cert_loader; 43 return g_cert_loader;
43 } 44 }
44 45
45 // static 46 // static
46 bool CertLoader::IsInitialized() { 47 bool CertLoader::IsInitialized() {
47 return g_cert_loader; 48 return g_cert_loader;
48 } 49 }
49 50
50 CertLoader::CertLoader() 51 CertLoader::CertLoader()
51 : certificates_loaded_(false), 52 : certificates_loaded_(false),
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 for (auto& observer : observers_) 174 for (auto& observer : observers_)
174 observer.OnCertificatesLoaded(*cert_list_, initial_load); 175 observer.OnCertificatesLoaded(*cert_list_, initial_load);
175 } 176 }
176 177
177 void CertLoader::OnCertDBChanged(const net::X509Certificate* cert) { 178 void CertLoader::OnCertDBChanged(const net::X509Certificate* cert) {
178 VLOG(1) << "OnCertDBChanged"; 179 VLOG(1) << "OnCertDBChanged";
179 LoadCertificates(); 180 LoadCertificates();
180 } 181 }
181 182
182 } // namespace chromeos 183 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698