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

Unified Diff: ipc/ipc_channel_proxy.cc

Issue 2283373002: Remove unneeded scoped_refptr<>::get() on method binding (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.cc ('k') | ipc/ipc_sync_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_proxy.cc
diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc
index 2e601f2364acb2df30fd625cba3045802b330468..b2c4226f2682b9844486d363607fbb579b59849d 100644
--- a/ipc/ipc_channel_proxy.cc
+++ b/ipc/ipc_channel_proxy.cc
@@ -490,13 +490,13 @@ void ChannelProxy::Init(std::unique_ptr<ChannelFactory> factory,
context_->CreateChannel(std::move(factory));
} else {
context_->ipc_task_runner()->PostTask(
- FROM_HERE, base::Bind(&Context::CreateChannel, context_.get(),
+ FROM_HERE, base::Bind(&Context::CreateChannel, context_,
base::Passed(&factory)));
}
// complete initialization on the background thread
context_->ipc_task_runner()->PostTask(
- FROM_HERE, base::Bind(&Context::OnChannelOpened, context_.get()));
+ FROM_HERE, base::Bind(&Context::OnChannelOpened, context_));
did_init_ = true;
OnChannelInit();
@@ -512,7 +512,7 @@ void ChannelProxy::Close() {
if (context_->ipc_task_runner()) {
context_->ipc_task_runner()->PostTask(
- FROM_HERE, base::Bind(&Context::OnChannelClosed, context_.get()));
+ FROM_HERE, base::Bind(&Context::OnChannelClosed, context_));
}
}
@@ -548,7 +548,7 @@ void ChannelProxy::RemoveFilter(MessageFilter* filter) {
DCHECK(CalledOnValidThread());
context_->ipc_task_runner()->PostTask(
- FROM_HERE, base::Bind(&Context::OnRemoveFilter, context_.get(),
+ FROM_HERE, base::Bind(&Context::OnRemoveFilter, context_,
base::RetainedRef(filter)));
}
@@ -574,7 +574,7 @@ void ChannelProxy::GetGenericRemoteAssociatedInterface(
DCHECK(did_init_);
context_->ipc_task_runner()->PostTask(
FROM_HERE, base::Bind(&Context::GetRemoteAssociatedInterface,
- context_.get(), name, base::Passed(&handle)));
+ context_, name, base::Passed(&handle)));
}
void ChannelProxy::ClearIPCTaskRunner() {
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.cc ('k') | ipc/ipc_sync_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698