Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp

Issue 2945093002: Use WebViewHelper::LocalMainFrame where possible. (Closed)
Patch Set: Rebasing... Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp b/third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp
index 75ce3f12563f00609932979b70816b0b252a1c52..000d9991d122812f51ad9cfcf7b6228e1caa589d 100644
--- a/third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp
+++ b/third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp
@@ -104,8 +104,8 @@ class ScreenWakeLockTest : public ::testing::Test {
LocalFrame* GetFrame() {
DCHECK(web_view_helper_.WebView());
- DCHECK(web_view_helper_.WebView()->MainFrameImpl());
- return web_view_helper_.WebView()->MainFrameImpl()->GetFrame();
+ DCHECK(web_view_helper_.LocalMainFrame());
+ return web_view_helper_.LocalMainFrame()->GetFrame();
}
Screen* GetScreen() {

Powered by Google App Engine