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

Unified Diff: content/child/web_url_loader_impl_unittest.cc

Issue 1366883002: [Reland] Post loading tasks on the appropriate WebFrameScheduler's queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android compile Created 5 years, 3 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_unittest.cc
diff --git a/content/child/web_url_loader_impl_unittest.cc b/content/child/web_url_loader_impl_unittest.cc
index 1d98b3f10fe84fee9bee3948986e503fa0887029..fdb77c57624f637a37d48ccb01ff085ef6881408 100644
--- a/content/child/web_url_loader_impl_unittest.cc
+++ b/content/child/web_url_loader_impl_unittest.cc
@@ -13,6 +13,7 @@
#include "base/message_loop/message_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/time/time.h"
+#include "components/scheduler/child/web_task_runner_impl.h"
#include "content/child/request_extra_data.h"
#include "content/child/request_info.h"
#include "content/child/resource_dispatcher.h"
@@ -106,7 +107,10 @@ class TestWebURLLoaderClient : public blink::WebURLLoaderClient {
TestWebURLLoaderClient(
ResourceDispatcher* dispatcher,
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
- : loader_(new WebURLLoaderImpl(dispatcher, task_runner)),
+ : loader_(
+ new WebURLLoaderImpl(
+ dispatcher,
+ make_scoped_ptr(new scheduler::WebTaskRunnerImpl(task_runner)))),
expect_multipart_response_(false),
delete_on_receive_redirect_(false),
delete_on_receive_response_(false),

Powered by Google App Engine
This is Rietveld 408576698