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

Unified Diff: crypto/nss_util.cc

Issue 8947021: Destroy all Singletons and LazyInstances between each test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NSS Created 7 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: crypto/nss_util.cc
diff --git a/crypto/nss_util.cc b/crypto/nss_util.cc
index 9cd0cd1aa34be54f903d70df2445e2d4bf66e92e..b3fe4a21e6474d6d39aff5589f90e62d063ad4b8 100644
--- a/crypto/nss_util.cc
+++ b/crypto/nss_util.cc
@@ -746,9 +746,8 @@ ScopedTestNSSDB::ScopedTestNSSDB()
}
ScopedTestNSSDB::~ScopedTestNSSDB() {
- // TODO(mattm): Close the dababase once NSS 3.14 is required,
- // which fixes https://bugzilla.mozilla.org/show_bug.cgi?id=588269
- // Resource leaks are suppressed. http://crbug.com/156433 .
+ if (NSS_VersionCheck("3.14"))
+ g_nss_singleton.Get().CloseTestNSSDB();
}
base::Lock* GetNSSWriteLock() {
« no previous file with comments | « chromeos/network/onc/onc_certificate_importer_unittest.cc ('k') | gpu/command_buffer/service/shader_translator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698