diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 19:37:04 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 19:37:04 +0000 |
commit | c05c3b45a5d0841ca9226ce059c0d9a4726f7020 (patch) | |
tree | e400858b58676dc17c59525026edd1fee884851b /chrome/browser/cert_store.cc | |
parent | ea1c18e1bf3bbe6d9bb7bb8769142e5f0429293a (diff) | |
download | chromium_src-c05c3b45a5d0841ca9226ce059c0d9a4726f7020.zip chromium_src-c05c3b45a5d0841ca9226ce059c0d9a4726f7020.tar.gz chromium_src-c05c3b45a5d0841ca9226ce059c0d9a4726f7020.tar.bz2 |
Revert r64622 (http://codereview.chromium.org/4181006)
because it may have caused browser_tests to fail the
SSLUITest.TestHTTPSExpiredCertAndGoBackViaButton unit test
on Vista Tests (dbg)(4) and XP Tests (dbg)(4).
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4151015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64646 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cert_store.cc')
-rw-r--r-- | chrome/browser/cert_store.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/chrome/browser/cert_store.cc b/chrome/browser/cert_store.cc index e2f9c2c..89c5ffe 100644 --- a/chrome/browser/cert_store.cc +++ b/chrome/browser/cert_store.cc @@ -55,10 +55,6 @@ int CertStore::StoreCert(net::X509Certificate* cert, int process_id) { ReverseCertMap::iterator cert_iter = cert_to_id_.find(cert); if (cert_iter == cert_to_id_.end()) { cert_id = next_cert_id_++; - // We use 0 as an invalid cert_id value. In the unlikely event that - // next_cert_id_ wraps around, we reset it to 1. - if (next_cert_id_ == 0) - next_cert_id_ = 1; cert->AddRef(); id_to_cert_[cert_id] = cert; cert_to_id_[cert] = cert_id; |