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(); |
} |