summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/sqlite_server_bound_cert_store.cc
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-05 00:31:12 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-05 00:31:12 +0000
commit41ec4391675b6a93865433a4b46278f35807d24c (patch)
tree4f3ab0f62a54e772ab24eca624b5dd6cd4f3bff0 /chrome/browser/net/sqlite_server_bound_cert_store.cc
parent72d5300177e5d1e75289bafd39cd1a73240d327d (diff)
downloadchromium_src-41ec4391675b6a93865433a4b46278f35807d24c.zip
chromium_src-41ec4391675b6a93865433a4b46278f35807d24c.tar.gz
chromium_src-41ec4391675b6a93865433a4b46278f35807d24c.tar.bz2
Remove unnecessary backend_ tests in SQLiteServerBoundCertStore and SQLitePersistentCookieStore.
BUG=none Review URL: https://chromiumcodereview.appspot.com/11748024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175238 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/sqlite_server_bound_cert_store.cc')
-rw-r--r--chrome/browser/net/sqlite_server_bound_cert_store.cc23
1 files changed, 7 insertions, 16 deletions
diff --git a/chrome/browser/net/sqlite_server_bound_cert_store.cc b/chrome/browser/net/sqlite_server_bound_cert_store.cc
index fb6ab57..b85e939 100644
--- a/chrome/browser/net/sqlite_server_bound_cert_store.cc
+++ b/chrome/browser/net/sqlite_server_bound_cert_store.cc
@@ -551,33 +551,24 @@ bool SQLiteServerBoundCertStore::Load(
void SQLiteServerBoundCertStore::AddServerBoundCert(
const net::DefaultServerBoundCertStore::ServerBoundCert& cert) {
- if (backend_.get())
- backend_->AddServerBoundCert(cert);
+ backend_->AddServerBoundCert(cert);
}
void SQLiteServerBoundCertStore::DeleteServerBoundCert(
const net::DefaultServerBoundCertStore::ServerBoundCert& cert) {
- if (backend_.get())
- backend_->DeleteServerBoundCert(cert);
+ backend_->DeleteServerBoundCert(cert);
}
void SQLiteServerBoundCertStore::SetForceKeepSessionState() {
- if (backend_.get())
- backend_->SetForceKeepSessionState();
+ backend_->SetForceKeepSessionState();
}
void SQLiteServerBoundCertStore::Flush(const base::Closure& completion_task) {
- if (backend_.get())
- backend_->Flush(completion_task);
- else if (!completion_task.is_null())
- MessageLoop::current()->PostTask(FROM_HERE, completion_task);
+ backend_->Flush(completion_task);
}
SQLiteServerBoundCertStore::~SQLiteServerBoundCertStore() {
- 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;
- }
+ backend_->Close();
+ // We release our reference to the Backend, though it will probably still have
+ // a reference if the background thread has not run Close() yet.
}