| Index: content/browser/net/sqlite_persistent_cookie_store.cc
|
| diff --git a/content/browser/net/sqlite_persistent_cookie_store.cc b/content/browser/net/sqlite_persistent_cookie_store.cc
|
| index 82bdd06d5d98661fe49a23d849b93ebeb2390835..a3159853fb73790bd91809d59cface0daf531942 100644
|
| --- a/content/browser/net/sqlite_persistent_cookie_store.cc
|
| +++ b/content/browser/net/sqlite_persistent_cookie_store.cc
|
| @@ -624,7 +624,7 @@ void SQLitePersistentCookieStore::Backend::ChainLoadCookies(
|
|
|
| bool load_success = true;
|
|
|
| - if (!db_.get()) {
|
| + if (!db_) {
|
| // Close() has been called on this store.
|
| load_success = false;
|
| } else if (keys_to_load_.size() > 0) {
|
| @@ -994,10 +994,10 @@ void SQLitePersistentCookieStore::Backend::InternalBackgroundClose() {
|
| void SQLitePersistentCookieStore::Backend::DeleteSessionCookiesOnShutdown() {
|
| DCHECK(background_task_runner_->RunsTasksOnCurrentThread());
|
|
|
| - if (!db_.get())
|
| + if (!db_)
|
| return;
|
|
|
| - if (!special_storage_policy_.get())
|
| + if (!special_storage_policy_)
|
| return;
|
|
|
| sql::Statement del_smt(db_->GetCachedStatement(
|
| @@ -1048,7 +1048,7 @@ void SQLitePersistentCookieStore::Backend::ScheduleKillDatabase() {
|
| void SQLitePersistentCookieStore::Backend::KillDatabase() {
|
| DCHECK(background_task_runner_->RunsTasksOnCurrentThread());
|
|
|
| - if (db_.get()) {
|
| + if (db_) {
|
| // This Backend will now be in-memory only. In a future run we will recreate
|
| // the database. Hopefully things go better then!
|
| bool success = db_->RazeAndClose();
|
|
|