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

Unified Diff: net/ssl/default_server_bound_cert_store.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 7 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 | « net/ssl/default_server_bound_cert_store.h ('k') | net/ssl/server_bound_cert_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/default_server_bound_cert_store.cc
diff --git a/net/ssl/default_server_bound_cert_store.cc b/net/ssl/default_server_bound_cert_store.cc
index 371a1654d70d8b9ee836cdb521e06e0962edb3e8..2d38aba5b3b2bc5b00bfefb700f777c84449e457 100644
--- a/net/ssl/default_server_bound_cert_store.cc
+++ b/net/ssl/default_server_bound_cert_store.cc
@@ -315,7 +315,7 @@ void DefaultServerBoundCertStore::SetForceKeepSessionState() {
DCHECK(CalledOnValidThread());
InitIfNecessary();
- if (store_)
+ if (store_.get())
store_->SetForceKeepSessionState();
}
@@ -335,7 +335,7 @@ void DefaultServerBoundCertStore::DeleteAllInMemory() {
void DefaultServerBoundCertStore::InitStore() {
DCHECK(CalledOnValidThread());
- DCHECK(store_) << "Store must exist to initialize";
+ DCHECK(store_.get()) << "Store must exist to initialize";
DCHECK(!loaded_);
store_->Load(base::Bind(&DefaultServerBoundCertStore::OnLoaded,
@@ -412,7 +412,7 @@ void DefaultServerBoundCertStore::SyncDeleteAllCreatedBetween(
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);
@@ -459,7 +459,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;
@@ -471,7 +471,7 @@ void DefaultServerBoundCertStore::InternalInsertServerBoundCert(
DCHECK(CalledOnValidThread());
DCHECK(loaded_);
- if (store_)
+ if (store_.get())
store_->AddServerBoundCert(*cert);
server_bound_certs_[server_identifier] = cert;
}
« no previous file with comments | « net/ssl/default_server_bound_cert_store.h ('k') | net/ssl/server_bound_cert_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698