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

Unified Diff: content/test/test_blink_web_unit_test_support.cc

Issue 1084173002: Patch 3/3 to get WebScheduler via WebThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 8 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/test/test_blink_web_unit_test_support.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_blink_web_unit_test_support.cc
diff --git a/content/test/test_blink_web_unit_test_support.cc b/content/test/test_blink_web_unit_test_support.cc
index 26c784d49f1b8d3d38119b057a256d90286ad49a..3b2470188d3abd1f16f28ec03d1860eaaf20a16c 100644
--- a/content/test/test_blink_web_unit_test_support.cc
+++ b/content/test/test_blink_web_unit_test_support.cc
@@ -9,7 +9,6 @@
#include "base/files/scoped_temp_dir.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
-#include "content/child/scheduler/web_scheduler_impl.h"
#include "content/renderer/scheduler/renderer_scheduler.h"
#include "content/renderer/scheduler/webthread_impl_for_renderer_scheduler.h"
#include "content/test/mock_webclipboard_impl.h"
@@ -58,10 +57,6 @@ TestBlinkWebUnitTestSupport::TestBlinkWebUnitTestSupport() {
if (base::MessageLoopProxy::current()) {
renderer_scheduler_ = RendererScheduler::Create();
- web_scheduler_.reset(new WebSchedulerImpl(
- renderer_scheduler_.get(), renderer_scheduler_->IdleTaskRunner(),
- renderer_scheduler_->LoadingTaskRunner(),
- renderer_scheduler_->TimerTaskRunner()));
web_thread_.reset(
new WebThreadImplForRendererScheduler(renderer_scheduler_.get()));
}
@@ -318,10 +313,6 @@ bool TestBlinkWebUnitTestSupport::getBlobItems(
return blob_registry_.GetBlobItems(uuid, items);
}
-blink::WebScheduler* TestBlinkWebUnitTestSupport::scheduler() {
- return web_scheduler_.get();
-}
-
blink::WebThread* TestBlinkWebUnitTestSupport::currentThread() {
if (web_thread_ && web_thread_->isCurrentThread())
return web_thread_.get();
« no previous file with comments | « content/test/test_blink_web_unit_test_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698