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

Unified Diff: content/browser/indexed_db/indexed_db_connection.cc

Issue 501183003: Remove implicit conversions from scoped_refptr to T* in content/browser/indexed_db/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
Index: content/browser/indexed_db/indexed_db_connection.cc
diff --git a/content/browser/indexed_db/indexed_db_connection.cc b/content/browser/indexed_db/indexed_db_connection.cc
index c23c76e245f010e807c564d21ca2cbc5da118f57..3ed927937e8cb16d0dcbf53a1625e068cf8fe110 100644
--- a/content/browser/indexed_db/indexed_db_connection.cc
+++ b/content/browser/indexed_db/indexed_db_connection.cc
@@ -14,7 +14,7 @@ IndexedDBConnection::IndexedDBConnection(
IndexedDBConnection::~IndexedDBConnection() {}
void IndexedDBConnection::Close() {
- if (!callbacks_)
+ if (!callbacks_.get())
return;
database_->Close(this, false /* forced */);
database_ = NULL;
@@ -22,7 +22,7 @@ void IndexedDBConnection::Close() {
}
void IndexedDBConnection::ForceClose() {
- if (!callbacks_)
+ if (!callbacks_.get())
return;
database_->Close(this, true /* forced */);
database_ = NULL;
@@ -31,7 +31,7 @@ void IndexedDBConnection::ForceClose() {
}
void IndexedDBConnection::VersionChangeIgnored() {
- if (!database_)
+ if (!database_.get())
return;
database_->VersionChangeIgnored();
}
« no previous file with comments | « content/browser/indexed_db/indexed_db_connection.h ('k') | content/browser/indexed_db/indexed_db_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698