Commit 845c445e authored by Jason Lin's avatar Jason Lin Committed by Commit Bot

Remove terminal id in terminalPrivate.closeTerminalProcess()

Bug: 1145053
Change-Id: I99bcbf0afe97ddc8d2ad8486e8683b645668d4b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2536412
Commit-Queue: Jason Lin <lxj@google.com>
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Auto-Submit: Jason Lin <lxj@google.com>
Reviewed-by: default avatarJoel Hockey <joelhockey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#827068}
parent e7bd9a9b
...@@ -482,6 +482,8 @@ TerminalPrivateCloseTerminalProcessFunction::Run() { ...@@ -482,6 +482,8 @@ TerminalPrivateCloseTerminalProcessFunction::Run() {
LOG(ERROR) << "invalid terminal id " << params->id; LOG(ERROR) << "invalid terminal id " << params->id;
return RespondNow(Error("invalid terminal id")); return RespondNow(Error("invalid terminal id"));
} }
TerminalTabHelper::FromWebContents(GetSenderWebContents())
->RemoveTerminalId(params->id);
// Registry lives on its own task runner. // Registry lives on its own task runner.
chromeos::ProcessProxyRegistry::GetTaskRunner()->PostTask( chromeos::ProcessProxyRegistry::GetTaskRunner()->PostTask(
......
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