| Index: crypto/nss_util.cc
|
| diff --git a/crypto/nss_util.cc b/crypto/nss_util.cc
|
| index db89a7003a0ad0a490a6659dd83c272a591fca90..47b4d0666d5868972d452aae82987e2d29d0a0b7 100644
|
| --- a/crypto/nss_util.cc
|
| +++ b/crypto/nss_util.cc
|
| @@ -702,8 +702,14 @@ bool CheckNSSVersion(const char* version) {
|
| }
|
|
|
| #if defined(USE_NSS)
|
| -bool OpenTestNSSDB() {
|
| - return g_nss_singleton.Get().OpenTestNSSDB();
|
| +ScopedTestNSSDB::ScopedTestNSSDB()
|
| + : is_open_(g_nss_singleton.Get().OpenTestNSSDB()) {
|
| +}
|
| +
|
| +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 .
|
| }
|
|
|
| base::Lock* GetNSSWriteLock() {
|
|
|