| Index: chrome/browser/safe_browsing/safe_browsing_database_bloom.cc
|
| ===================================================================
|
| --- chrome/browser/safe_browsing/safe_browsing_database_bloom.cc (revision 7864)
|
| +++ chrome/browser/safe_browsing/safe_browsing_database_bloom.cc (working copy)
|
| @@ -141,6 +141,7 @@
|
| if (!db_)
|
| return true;
|
|
|
| + insert_transaction_.reset();
|
| statement_cache_.reset(); // Must free statements before closing DB.
|
| bool result = sqlite3_close(db_) == SQLITE_OK;
|
| db_ = NULL;
|
| @@ -237,8 +238,6 @@
|
| hash_cache_->clear();
|
| ClearUpdateCaches();
|
|
|
| - insert_transaction_.reset();
|
| -
|
| bool rv = Close();
|
| DCHECK(rv);
|
|
|
| @@ -420,7 +419,6 @@
|
| insert_transaction_.reset(new SQLTransaction(db_));
|
| if (insert_transaction_->Begin() != SQLITE_OK) {
|
| DCHECK(false) << "Safe browsing database couldn't start transaction";
|
| - insert_transaction_.reset();
|
| Close();
|
| return false;
|
| }
|
| @@ -431,7 +429,6 @@
|
| if (update_succeeded)
|
| BuildBloomFilter();
|
|
|
| - insert_transaction_.reset();
|
| Close();
|
|
|
| // We won't need the chunk caches until the next update (which will read them
|
|
|