| Index: chrome/browser/net/sqlite_persistent_cookie_store.cc
|
| diff --git a/chrome/browser/net/sqlite_persistent_cookie_store.cc b/chrome/browser/net/sqlite_persistent_cookie_store.cc
|
| index 48a053306165acf42b58c13c3479e35caa5ce89c..eadfc5af410c0e45c0c2b2d4ea111d51721d2e27 100644
|
| --- a/chrome/browser/net/sqlite_persistent_cookie_store.cc
|
| +++ b/chrome/browser/net/sqlite_persistent_cookie_store.cc
|
| @@ -925,15 +925,6 @@ SQLitePersistentCookieStore::SQLitePersistentCookieStore(
|
| : backend_(new Backend(path, restore_old_session_cookies)) {
|
| }
|
|
|
| -SQLitePersistentCookieStore::~SQLitePersistentCookieStore() {
|
| - if (backend_.get()) {
|
| - backend_->Close();
|
| - // Release our reference, it will probably still have a reference if the
|
| - // background thread has not run Close() yet.
|
| - backend_ = NULL;
|
| - }
|
| -}
|
| -
|
| void SQLitePersistentCookieStore::Load(const LoadedCallback& loaded_callback) {
|
| backend_->Load(loaded_callback);
|
| }
|
| @@ -974,3 +965,12 @@ void SQLitePersistentCookieStore::Flush(const base::Closure& callback) {
|
| else if (!callback.is_null())
|
| MessageLoop::current()->PostTask(FROM_HERE, callback);
|
| }
|
| +
|
| +SQLitePersistentCookieStore::~SQLitePersistentCookieStore() {
|
| + if (backend_.get()) {
|
| + backend_->Close();
|
| + // Release our reference, it will probably still have a reference if the
|
| + // background thread has not run Close() yet.
|
| + backend_ = NULL;
|
| + }
|
| +}
|
|
|