Commit 424ef89f authored by Kinuko Yasuda's avatar Kinuko Yasuda Committed by Commit Bot

Don't repost a task on UI thread on ReceivedResponse in NavigationURLLoaderImpl

Change-Id: I0fad75959c29514e06083bffab9d05a0952d3ed3
Bug: 824840
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1728310
Commit-Queue: Clark DuVall <cduvall@chromium.org>
Auto-Submit: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: default avatarClark DuVall <cduvall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682728}
parent 4ddfd765
...@@ -1039,8 +1039,8 @@ class NavigationURLLoaderImpl::URLLoaderRequestController ...@@ -1039,8 +1039,8 @@ class NavigationURLLoaderImpl::URLLoaderRequestController
// TODO(davidben): This copy could be avoided if ResourceResponse weren't // TODO(davidben): This copy could be avoided if ResourceResponse weren't
// reference counted and the loader stack passed unique ownership of the // reference counted and the loader stack passed unique ownership of the
// response. https://crbug.com/416050 // response. https://crbug.com/416050
base::PostTaskWithTraits( RunOrPostTaskIfNecessary(
FROM_HERE, {BrowserThread::UI}, FROM_HERE, BrowserThread::UI,
base::BindOnce(&NavigationURLLoaderImpl::OnReceiveResponse, owner_, base::BindOnce(&NavigationURLLoaderImpl::OnReceiveResponse, owner_,
response->DeepCopy(), response->DeepCopy(),
std::move(url_loader_client_endpoints), std::move(url_loader_client_endpoints),
......
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