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

Unified Diff: third_party/WebKit/Source/platform/TimerTest.cpp

Issue 1402103002: Revert of Revert "Post loading tasks on the appropriate WebFrameScheduler's queue." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: third_party/WebKit/Source/platform/TimerTest.cpp
diff --git a/third_party/WebKit/Source/platform/TimerTest.cpp b/third_party/WebKit/Source/platform/TimerTest.cpp
index 91b62dc0532fbe3bc2e12e02736b04d25862f5a3..a75a16ac143064d2072a94504b2fafdf8245a838 100644
--- a/third_party/WebKit/Source/platform/TimerTest.cpp
+++ b/third_party/WebKit/Source/platform/TimerTest.cpp
@@ -77,7 +77,7 @@
explicit MockWebTaskRunner(std::priority_queue<DelayedTask>* timerTasks) : m_timerTasks(timerTasks) { }
~MockWebTaskRunner() override { }
- virtual void postTask(const WebTraceLocation&, Task* task)
+ void postTask(const WebTraceLocation&, Task* task) override
{
m_timerTasks->push(DelayedTask(task, 0));
}
@@ -85,6 +85,12 @@
void postDelayedTask(const WebTraceLocation&, Task* task, double delayMs) override
{
m_timerTasks->push(DelayedTask(task, delayMs * 0.001));
+ }
+
+ WebTaskRunner* clone() override
+ {
+ ASSERT_NOT_REACHED();
+ return nullptr;
}
std::priority_queue<DelayedTask>* m_timerTasks; // NOT OWNED

Powered by Google App Engine
This is Rietveld 408576698