Commit 4d66a60c authored by Istiaque Ahmed's avatar Istiaque Ahmed Committed by Commit Bot

MessageService: Remove an unused param to SWTQ::AddPendingTask's callback.

The render process id param became obolete and unused at some point,
remove it.

Bug: None
Test: No expected change, internal cleanup only.
Change-Id: I422242473c0118692e010909c8380971f01812cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1508600Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
Commit-Queue: Istiaque Ahmed <lazyboy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#638678}
parent 0434709d
...@@ -792,11 +792,10 @@ bool MessageService::MaybeAddPendingLazyContextOpenChannelTask( ...@@ -792,11 +792,10 @@ bool MessageService::MaybeAddPendingLazyContextOpenChannelTask(
ChannelId channel_id = (*params)->receiver_port_id.GetChannelId(); ChannelId channel_id = (*params)->receiver_port_id.GetChannelId();
pending_lazy_context_channels_.emplace(channel_id, context_id); pending_lazy_context_channels_.emplace(channel_id, context_id);
int source_id = (*params)->source_process_id;
task_queue->AddPendingTask( task_queue->AddPendingTask(
context_id, base::BindOnce(&MessageService::PendingLazyContextOpenChannel, context_id,
weak_factory_.GetWeakPtr(), base::BindOnce(&MessageService::PendingLazyContextOpenChannel,
base::Passed(params), source_id)); weak_factory_.GetWeakPtr(), std::move(*params)));
for (const PendingMessage& message : pending_messages) { for (const PendingMessage& message : pending_messages) {
EnqueuePendingMessageForLazyBackgroundLoad(message.first, channel_id, EnqueuePendingMessageForLazyBackgroundLoad(message.first, channel_id,
...@@ -879,7 +878,6 @@ void MessageService::OnOpenChannelAllowed( ...@@ -879,7 +878,6 @@ void MessageService::OnOpenChannelAllowed(
void MessageService::PendingLazyContextOpenChannel( void MessageService::PendingLazyContextOpenChannel(
std::unique_ptr<OpenChannelParams> params, std::unique_ptr<OpenChannelParams> params,
int source_process_id,
std::unique_ptr<LazyContextTaskQueue::ContextInfo> context_info) { std::unique_ptr<LazyContextTaskQueue::ContextInfo> context_info) {
DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK_CURRENTLY_ON(BrowserThread::UI);
......
...@@ -206,7 +206,6 @@ class MessageService : public BrowserContextKeyedAPI, ...@@ -206,7 +206,6 @@ class MessageService : public BrowserContextKeyedAPI,
// use that argument. // use that argument.
void PendingLazyContextOpenChannel( void PendingLazyContextOpenChannel(
std::unique_ptr<OpenChannelParams> params, std::unique_ptr<OpenChannelParams> params,
int source_process_id,
std::unique_ptr<LazyContextTaskQueue::ContextInfo> context_info); std::unique_ptr<LazyContextTaskQueue::ContextInfo> context_info);
void PendingLazyContextClosePort( void PendingLazyContextClosePort(
const PortId& port_id, const PortId& port_id,
......
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