Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(656)

Unified Diff: net/base/default_server_bound_cert_store.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/tools/player_x11/player_x11.cc ('k') | net/base/file_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « media/tools/player_x11/player_x11.cc ('k') | net/base/file_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698