Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index 562484e7fd1a4d3ed832efc95f0109442bc1a05a..133d12150b95424e70535b2050011b6892bd42b7 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -409,7 +409,7 @@ HashSet<WebViewImpl*>& WebViewImpl::allInstances() |
WebViewImpl::WebViewImpl(WebViewClient* client) |
: m_client(client) |
, m_spellCheckClient(0) |
- , m_chromeClientImpl(this) |
+ , m_chromeClientImpl(ChromeClientImpl::create(this)) |
, m_contextMenuClientImpl(this) |
, m_dragClientImpl(this) |
, m_editorClientImpl(this) |
@@ -457,7 +457,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client) |
, m_elasticOverscroll(FloatSize()) |
{ |
Page::PageClients pageClients; |
- pageClients.chromeClient = &m_chromeClientImpl; |
+ pageClients.chromeClient = m_chromeClientImpl.get(); |
pageClients.contextMenuClient = &m_contextMenuClientImpl; |
pageClients.editorClient = &m_editorClientImpl; |
pageClients.dragClient = &m_dragClientImpl; |