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

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

Issue 18308004: Update CrOS to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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_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);
« no previous file with comments | « content/browser/indexed_db/indexed_db_callbacks.cc ('k') | content/browser/renderer_host/image_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698