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

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 UAF in BackgroundHTMLParser Created 5 years, 2 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 6fb686e4ce9e8013bf24c4e008462e3745ecb291..00354dde33c1d4fbea7ed8c1f61887f341aa5e0f 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