Commit 60368373 authored by David Black's avatar David Black Committed by Commit Bot

Handle NavigableContentsFactory already bound in Assistant.

Fixes DCHECK.

Bug: b:136113743
Change-Id: I10cb6587b1017d8c734e91399b8792ab7dbd9fdc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1679063Reviewed-by: default avatarTao Wu <wutao@chromium.org>
Commit-Queue: David Black <dmblack@google.com>
Cr-Commit-Position: refs/heads/master@{#672726}
parent 5cd50abf
......@@ -121,8 +121,10 @@ void AssistantWebView::OnDeepLinkReceived(
RemoveContents();
delegate_->GetNavigableContentsFactoryForView(
contents_factory_.BindNewPipeAndPassReceiver());
if (!contents_factory_.is_bound()) {
delegate_->GetNavigableContentsFactoryForView(
contents_factory_.BindNewPipeAndPassReceiver());
}
auto contents_params = content::mojom::NavigableContentsParams::New();
contents_params->suppress_navigations = true;
......
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