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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp

Issue 2646933002: Move PerformanceBase to TaskRunnerTimer. (Closed)
Patch Set: Created 3 years, 11 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/core/timing/PerformanceBaseTest.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp b/third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp
index 78ac9997ac67ec5fa01482e22b802f37df0c81e2..049856642ec60b6d1dff718e2fa26e12b52475fe 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp
@@ -13,13 +13,18 @@
#include "core/timing/PerformanceObserver.h"
#include "core/timing/PerformanceObserverInit.h"
#include "platform/network/ResourceResponse.h"
+#include "public/platform/Platform.h"
+#include "public/platform/WebThread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
class TestPerformanceBase : public PerformanceBase {
public:
- TestPerformanceBase() : PerformanceBase(0) {}
+ TestPerformanceBase()
+ : PerformanceBase(
+ 0,
+ Platform::current()->currentThread()->getWebTaskRunner()) {}
haraken 2017/01/20 02:30:25 I'd prefer using TaskType::PerformanceTimeline (ju
jbroman 2017/01/20 02:33:35 With which LocalFrame/Document/ExecutionContext/Sc
~TestPerformanceBase() {}
ExecutionContext* getExecutionContext() const override { return nullptr; }

Powered by Google App Engine
This is Rietveld 408576698