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

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

Issue 2521903004: Use a scoped_refptr in the IndexedDBCallbacks constructor. (Closed)
Patch Set: Created 4 years, 1 month 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_callbacks.cc
diff --git a/content/browser/indexed_db/indexed_db_callbacks.cc b/content/browser/indexed_db/indexed_db_callbacks.cc
index 57109ec7d91eab0d6f056373edbb279e8b6b498e..2c24fa5e28c36cf2f359262f2d21ff5446ac8ee3 100644
--- a/content/browser/indexed_db/indexed_db_callbacks.cc
+++ b/content/browser/indexed_db/indexed_db_callbacks.cc
@@ -141,10 +141,10 @@ class IndexedDBCallbacks::IOThreadHelper {
};
IndexedDBCallbacks::IndexedDBCallbacks(
- IndexedDBDispatcherHost* dispatcher_host,
+ scoped_refptr<IndexedDBDispatcherHost> dispatcher_host,
const url::Origin& origin,
::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks_info)
- : dispatcher_host_(dispatcher_host),
+ : dispatcher_host_(std::move(dispatcher_host)),
host_transaction_id_(kNoTransaction),
origin_(origin),
data_loss_(blink::WebIDBDataLossNone),

Powered by Google App Engine
This is Rietveld 408576698