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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2266443002: Optimize posting of WTF::Closure and improve scheduler test mocks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix FakeWebTaskRunner leak 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
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 98e9fa4ad0183d358ce45b6c66e210cac62e589f..09d78372653cf3ca5ea7a26b5009600caea41bc4 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -1167,7 +1167,7 @@ void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority,
void WebURLLoaderImpl::setLoadingTaskRunner(
blink::WebTaskRunner* loading_task_runner) {
- context_->SetTaskRunner(loading_task_runner->taskRunner());
+ context_->SetTaskRunner(loading_task_runner->toSingleThreadTaskRunner());
}
// This function is implemented here because it uses net functions. it is

Powered by Google App Engine
This is Rietveld 408576698