Index: Source/web/tests/ChromeClientImplTest.cpp |
diff --git a/Source/web/tests/ChromeClientImplTest.cpp b/Source/web/tests/ChromeClientImplTest.cpp |
index 5e1b4652de65a5b262811e6b635a5dcc8df5d05a..3615a5befbf74a64cc44125b741368ddf5ba2c86 100644 |
--- a/Source/web/tests/ChromeClientImplTest.cpp |
+++ b/Source/web/tests/ChromeClientImplTest.cpp |
@@ -90,7 +90,7 @@ protected: |
m_webView = toWebViewImpl(WebView::create(&m_webViewClient)); |
m_mainFrame = WebFrame::create(&m_webFrameClient); |
m_webView->setMainFrame(m_mainFrame); |
- m_chromeClientImpl = static_cast<ChromeClientImpl*>(&m_webView->page()->chrome().client()); |
+ m_chromeClientImpl = toChromeClientImpl(m_webView->page()->chrome().client()); |
m_result = WebNavigationPolicyIgnore; |
} |