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

Unified Diff: content/child/indexed_db/indexed_db_dispatcher.cc

Issue 18346006: Update OS X 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/child/indexed_db/indexed_db_dispatcher.cc
diff --git a/content/child/indexed_db/indexed_db_dispatcher.cc b/content/child/indexed_db/indexed_db_dispatcher.cc
index b6e57ea07d12d5b27e55825dfef2514543cd715f..48391f4714bf3adfcf1ea381e90c4b813e7455c6 100644
--- a/content/child/indexed_db/indexed_db_dispatcher.cc
+++ b/content/child/indexed_db/indexed_db_dispatcher.cc
@@ -460,7 +460,7 @@ void IndexedDBDispatcher::OnSuccessIDBDatabase(
// If an upgrade was performed, count will be non-zero.
if (!databases_.count(ipc_object_id))
databases_[ipc_object_id] = new RendererWebIDBDatabaseImpl(
- ipc_object_id, ipc_database_callbacks_id, thread_safe_sender_);
+ ipc_object_id, ipc_database_callbacks_id, thread_safe_sender_.get());
DCHECK_EQ(databases_.count(ipc_object_id), 1u);
callbacks->onSuccess(databases_[ipc_object_id], metadata);
pending_callbacks_.Remove(ipc_callbacks_id);
@@ -557,7 +557,7 @@ void IndexedDBDispatcher::OnSuccessOpenCursor(
return;
RendererWebIDBCursorImpl* cursor =
- new RendererWebIDBCursorImpl(ipc_object_id, thread_safe_sender_);
+ new RendererWebIDBCursorImpl(ipc_object_id, thread_safe_sender_.get());
cursors_[ipc_object_id] = cursor;
callbacks->onSuccess(cursor, key, primary_key, web_value);
@@ -626,8 +626,10 @@ void IndexedDBDispatcher::OnUpgradeNeeded(
DCHECK(callbacks);
WebIDBMetadata metadata(ConvertMetadata(p.idb_metadata));
DCHECK(!databases_.count(p.ipc_database_id));
- databases_[p.ipc_database_id] = new RendererWebIDBDatabaseImpl(
- p.ipc_database_id, p.ipc_database_callbacks_id, thread_safe_sender_);
+ databases_[p.ipc_database_id] =
+ new RendererWebIDBDatabaseImpl(p.ipc_database_id,
+ p.ipc_database_callbacks_id,
+ thread_safe_sender_.get());
callbacks->onUpgradeNeeded(
p.old_version,
databases_[p.ipc_database_id],
« no previous file with comments | « content/browser/web_contents/web_drag_source_mac.mm ('k') | content/child/indexed_db/indexed_db_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698