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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 1675633002: WebTaskRunnerImpl to take a TaskQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 10 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
« no previous file with comments | « content/child/web_url_loader_impl_unittest.cc ('k') | content/test/fake_renderer_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index bf4afb7bcacccedb04e184fd7a8070584eecded7..5033ec6fc586f3554b21bbfcfff44775a4ddeb9d 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -292,13 +292,9 @@ blink::WebURLLoader* RendererBlinkPlatformImpl::createURLLoader() {
ChildThreadImpl* child_thread = ChildThreadImpl::current();
// There may be no child thread in RenderViewTests. These tests can still use
// data URLs to bypass the ResourceDispatcher.
- scoped_ptr<scheduler::WebTaskRunnerImpl> task_runner(
- new scheduler::WebTaskRunnerImpl(
- loading_task_runner_->BelongsToCurrentThread()
- ? loading_task_runner_ : base::ThreadTaskRunnerHandle::Get()));
return new content::WebURLLoaderImpl(
child_thread ? child_thread->resource_dispatcher() : NULL,
- std::move(task_runner));
+ make_scoped_ptr(currentThread()->taskRunner()->clone()));
}
blink::WebThread* RendererBlinkPlatformImpl::currentThread() {
« no previous file with comments | « content/child/web_url_loader_impl_unittest.cc ('k') | content/test/fake_renderer_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698