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

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

Issue 2646933002: Move PerformanceBase to TaskRunnerTimer. (Closed)
Patch Set: unneeded includes 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/Performance.cpp
diff --git a/third_party/WebKit/Source/core/timing/Performance.cpp b/third_party/WebKit/Source/core/timing/Performance.cpp
index be8ca988df6026ca8dcce36cc0795cb4392c98e0..73e47a0bbbf924537b63adc815000e870c0dcefc 100644
--- a/third_party/WebKit/Source/core/timing/Performance.cpp
+++ b/third_party/WebKit/Source/core/timing/Performance.cpp
@@ -35,6 +35,7 @@
#include "bindings/core/v8/V8ObjectBuilder.h"
#include "core/dom/Document.h"
#include "core/dom/QualifiedName.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/frame/DOMWindow.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/UseCounter.h"
@@ -100,7 +101,9 @@ static double toTimeOrigin(LocalFrame* frame) {
}
Performance::Performance(LocalFrame* frame)
- : PerformanceBase(toTimeOrigin(frame)),
+ : PerformanceBase(
+ toTimeOrigin(frame),
+ TaskRunnerHelper::get(TaskType::PerformanceTimeline, frame)),
ContextLifecycleObserver(frame ? frame->document() : nullptr) {}
Performance::~Performance() {
« no previous file with comments | « third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp ('k') | third_party/WebKit/Source/core/timing/PerformanceBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698