summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/frame/performance_monitor_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/frame/performance_monitor_test.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/frame/performance_monitor_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/frame/performance_monitor_test.cc b/chromium/third_party/blink/renderer/core/frame/performance_monitor_test.cc
index 692c8ddcec7..349beab1d42 100644
--- a/chromium/third_party/blink/renderer/core/frame/performance_monitor_test.cc
+++ b/chromium/third_party/blink/renderer/core/frame/performance_monitor_test.cc
@@ -25,13 +25,13 @@ class PerformanceMonitorTest : public testing::Test {
return page_holder_->GetDocument().GetFrame();
}
ExecutionContext* GetExecutionContext() const {
- return &page_holder_->GetDocument();
+ return page_holder_->GetDocument().ToExecutionContext();
}
LocalFrame* AnotherFrame() const {
return another_page_holder_->GetDocument().GetFrame();
}
ExecutionContext* AnotherExecutionContext() const {
- return &another_page_holder_->GetDocument();
+ return another_page_holder_->GetDocument().ToExecutionContext();
}
void WillExecuteScript(ExecutionContext* execution_context) {
@@ -91,7 +91,7 @@ String PerformanceMonitorTest::FrameContextURL() {
// This is reported only if there is a single frameContext URL.
if (monitor_->task_has_multiple_contexts_)
return g_empty_string;
- return To<Document>(monitor_->task_execution_context_.Get())
+ return Document::From(monitor_->task_execution_context_.Get())
->location()
->toString();
}