Chromium Code Reviews| Index: chrome/browser/chromeos/cros/cert_library.cc |
| diff --git a/chrome/browser/chromeos/cros/cert_library.cc b/chrome/browser/chromeos/cros/cert_library.cc |
| index 48c6e9f8f1fced8437acfb68402bdb3afa83ac35..7468271041e9270cc1657299501fb99f437eaf32 100644 |
| --- a/chrome/browser/chromeos/cros/cert_library.cc |
| +++ b/chrome/browser/chromeos/cros/cert_library.cc |
| @@ -84,6 +84,12 @@ class CertLibraryImpl |
| ALLOW_THIS_IN_INITIALIZER_LIST(server_ca_certs_(this)) { |
| CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| net::CertDatabase::AddObserver(this); |
| + // For now, if we are not logged in, set certificates_loaded_ to true |
| + // since RequestCertificates() may never get called. |
| + // TODO(stevenjb, zel): Handle loading of not hardware backed certificates |
| + // when not logged in. |
| + if (!UserManager::Get()->user_is_logged_in()) |
| + certificates_loaded_ = true; |
|
zel
2011/12/02 01:45:26
that's not going to work since this same instance
stevenjb
2011/12/02 02:20:59
That's already handled in RequestCertificates() -
|
| } |
| ~CertLibraryImpl() { |