Skip to content

Commit

Permalink
Fix CertLoader certificates_loaded() during notification.
Browse files Browse the repository at this point in the history
Also remove the conditional loading of certificates, which prevents tests including CertLoader.

BUG=NONE
R=stevenjb@chromium.org

Review URL: https://codereview.chromium.org/20799002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214351 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
pneubeck@chromium.org committed Jul 30, 2013
1 parent 8047f78 commit b554d46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chromeos/cert_loader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ base::TimeDelta GetNextRequestDelayMs(base::TimeDelta last_delay) {
}

void LoadNSSCertificates(net::CertificateList* cert_list) {
if (base::chromeos::IsRunningOnChromeOS())
net::NSSCertDatabase::GetInstance()->ListCerts(cert_list);
net::NSSCertDatabase::GetInstance()->ListCerts(cert_list);
}

void CallOpenPersistentNSSDB() {
Expand Down Expand Up @@ -345,8 +344,9 @@ void CertLoader::UpdateCertificates(net::CertificateList* cert_list) {
// Ignore any existing certificates.
cert_list_.swap(*cert_list);

NotifyCertificatesLoaded(!certificates_loaded_);
bool initial_load = !certificates_loaded_;
certificates_loaded_ = true;
NotifyCertificatesLoaded(initial_load);

certificates_update_running_ = false;
if (certificates_update_required_)
Expand Down

0 comments on commit b554d46

Please sign in to comment.