| Index: net/base/default_server_bound_cert_store.cc
|
| diff --git a/net/base/default_server_bound_cert_store.cc b/net/base/default_server_bound_cert_store.cc
|
| index 5f0cf921178f41e55e40b3fb6ca5674b1e4d2816..d0f178e9ca4131f26398fe62a757d5e4e9f89615 100644
|
| --- a/net/base/default_server_bound_cert_store.cc
|
| +++ b/net/base/default_server_bound_cert_store.cc
|
| @@ -21,7 +21,7 @@ void DefaultServerBoundCertStore::FlushStore(
|
| const base::Closure& completion_task) {
|
| base::AutoLock autolock(lock_);
|
|
|
| - if (initialized_ && store_)
|
| + if (initialized_ && store_.get())
|
| store_->Flush(completion_task);
|
| else if (!completion_task.is_null())
|
| MessageLoop::current()->PostTask(FROM_HERE, completion_task);
|
| @@ -89,7 +89,7 @@ void DefaultServerBoundCertStore::DeleteAllCreatedBetween(
|
| ServerBoundCert* cert = cur->second;
|
| if ((delete_begin.is_null() || cert->creation_time() >= delete_begin) &&
|
| (delete_end.is_null() || cert->creation_time() < delete_end)) {
|
| - if (store_)
|
| + if (store_.get())
|
| store_->DeleteServerBoundCert(*cert);
|
| delete cert;
|
| server_bound_certs_.erase(cur);
|
| @@ -122,7 +122,7 @@ void DefaultServerBoundCertStore::SetForceKeepSessionState() {
|
| base::AutoLock autolock(lock_);
|
| InitIfNecessary();
|
|
|
| - if (store_)
|
| + if (store_.get())
|
| store_->SetForceKeepSessionState();
|
| }
|
|
|
| @@ -167,7 +167,7 @@ void DefaultServerBoundCertStore::InternalDeleteServerBoundCert(
|
| return; // There is nothing to delete.
|
|
|
| ServerBoundCert* cert = it->second;
|
| - if (store_)
|
| + if (store_.get())
|
| store_->DeleteServerBoundCert(*cert);
|
| server_bound_certs_.erase(it);
|
| delete cert;
|
| @@ -178,7 +178,7 @@ void DefaultServerBoundCertStore::InternalInsertServerBoundCert(
|
| ServerBoundCert* cert) {
|
| lock_.AssertAcquired();
|
|
|
| - if (store_)
|
| + if (store_.get())
|
| store_->AddServerBoundCert(*cert);
|
| server_bound_certs_[server_identifier] = cert;
|
| }
|
|
|