Index: Source/WebKit/chromium/src/WebViewImpl.cpp |
=================================================================== |
--- Source/WebKit/chromium/src/WebViewImpl.cpp (revision 145645) |
+++ Source/WebKit/chromium/src/WebViewImpl.cpp (working copy) |
@@ -1592,13 +1592,13 @@ |
} |
} |
-WebHelperPluginImpl* WebViewImpl::createHelperPlugin(const String& pluginType) |
+WebHelperPluginImpl* WebViewImpl::createHelperPlugin(const String& pluginType, const WebDocument& hostDocument) |
{ |
WebWidget* popupWidget = m_client->createPopupMenu(WebPopupTypeHelperPlugin); |
ASSERT(popupWidget); |
WebHelperPluginImpl* helperPlugin = static_cast<WebHelperPluginImpl*>(popupWidget); |
- if (!helperPlugin->initialize(this, pluginType)) { |
+ if (!helperPlugin->initialize(pluginType, hostDocument, this)) { |
helperPlugin->closeHelperPlugin(); |
helperPlugin = 0; |
} |