IndexedDBConnection::~IndexedDBConnection() {}
void IndexedDBConnection::Close() {
- if (!callbacks_)
+ if (!callbacks_.get())
return;
database_->Close(this, false /* forced */);
database_ = NULL;
}
void IndexedDBConnection::ForceClose() {
- if (!callbacks_)
+ if (!callbacks_.get())
return;
database_->Close(this, true /* forced */);
database_ = NULL;
}
void IndexedDBConnection::VersionChangeIgnored() {
- if (!database_)
+ if (!database_.get())
return;
database_->VersionChangeIgnored();
}