Commit fc634733 authored by Chris Mumford's avatar Chris Mumford Committed by Chromium LUCI CQ

indexeddb: Deleted unneeded raw pointer use.

IndexedDBControlWrapper::BindRemoteIfNeeded gets a raw pointer
to immediately wrap it with a scoped_refptr - which it already
has. This change uses that existing pointer.

This is a cleanup change - not expected to change any behavior.

Bug: none
Change-Id: I8b61717dcbb652d80ad7e80fde0a1e4ab108e5e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2569781Reviewed-by: default avatarVictor Costan <pwnall@chromium.org>
Commit-Queue: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#834516}
parent 921f3569
......@@ -205,11 +205,9 @@ void IndexedDBControlWrapper::BindRemoteIfNeeded() {
if (indexed_db_control_.is_bound())
return;
IndexedDBContextImpl* idb_context = GetIndexedDBContextInternal();
idb_context->IDBTaskRunner()->PostTask(
context_->IDBTaskRunner()->PostTask(
FROM_HERE,
base::BindOnce(&IndexedDBContextImpl::Bind,
base::WrapRefCounted(idb_context),
base::BindOnce(&IndexedDBContextImpl::Bind, context_,
indexed_db_control_.BindNewPipeAndPassReceiver()));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment