Commit 7030a0be authored by stevenjb@google.com's avatar stevenjb@google.com

Elim. CHECK in ~CertLibraryImpl

The check here was a bad idea in the first place, I didn't think this through carefully enough.

BUG=chromium-os:18677
TEST=Run chrome, open vpn or 8021x connection dialog, quit; ensure chrome does not crash.

Review URL: http://codereview.chromium.org/7578010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95485 0039d316-1c4b-4281-b951-d872f2087c98
parent e14665dd
......@@ -81,11 +81,9 @@ class CertLibraryImpl
}
~CertLibraryImpl() {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (request_task_) {
request_task_->Cancel();
request_task_ = NULL;
}
// CertLibraryImpl is a singleton, so do not attempt to cleanup
// request_task_ on destruction.
DCHECK(request_task_ == NULL);
net::CertDatabase::RemoveObserver(this);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment