| Index: content/browser/indexed_db/indexed_db_database_callbacks.cc
|
| diff --git a/content/browser/indexed_db/indexed_db_database_callbacks.cc b/content/browser/indexed_db/indexed_db_database_callbacks.cc
|
| index e2c7da6cb4069e8f77706f39aff5d648f7895a9f..3d47ad0c11c4dfe3f3a683c25636ea6f4236ebd7 100644
|
| --- a/content/browser/indexed_db/indexed_db_database_callbacks.cc
|
| +++ b/content/browser/indexed_db/indexed_db_database_callbacks.cc
|
| @@ -21,7 +21,7 @@ IndexedDBDatabaseCallbacks::IndexedDBDatabaseCallbacks(
|
| IndexedDBDatabaseCallbacks::~IndexedDBDatabaseCallbacks() {}
|
|
|
| void IndexedDBDatabaseCallbacks::OnForcedClose() {
|
| - if (!dispatcher_host_)
|
| + if (!dispatcher_host_.get())
|
| return;
|
|
|
| dispatcher_host_->Send(new IndexedDBMsg_DatabaseCallbacksForcedClose(
|
| @@ -32,7 +32,7 @@ void IndexedDBDatabaseCallbacks::OnForcedClose() {
|
|
|
| void IndexedDBDatabaseCallbacks::OnVersionChange(int64 old_version,
|
| int64 new_version) {
|
| - if (!dispatcher_host_)
|
| + if (!dispatcher_host_.get())
|
| return;
|
|
|
| dispatcher_host_->Send(new IndexedDBMsg_DatabaseCallbacksIntVersionChange(
|
| @@ -42,7 +42,7 @@ void IndexedDBDatabaseCallbacks::OnVersionChange(int64 old_version,
|
| void IndexedDBDatabaseCallbacks::OnAbort(
|
| int64 host_transaction_id,
|
| const IndexedDBDatabaseError& error) {
|
| - if (!dispatcher_host_)
|
| + if (!dispatcher_host_.get())
|
| return;
|
|
|
| dispatcher_host_->FinishTransaction(host_transaction_id, false);
|
| @@ -55,7 +55,7 @@ void IndexedDBDatabaseCallbacks::OnAbort(
|
| }
|
|
|
| void IndexedDBDatabaseCallbacks::OnComplete(int64 host_transaction_id) {
|
| - if (!dispatcher_host_)
|
| + if (!dispatcher_host_.get())
|
| return;
|
|
|
| dispatcher_host_->FinishTransaction(host_transaction_id, true);
|
|
|