Index: Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp |
=================================================================== |
--- Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp (revision 127631) |
+++ Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp (working copy) |
@@ -1491,9 +1491,8 @@ |
// (e.g., acrobat reader). |
void FrameLoaderClientImpl::redirectDataToPlugin(Widget* pluginWidget) |
{ |
- if (pluginWidget->isPluginContainer()) |
- m_pluginWidget = static_cast<WebPluginContainerImpl*>(pluginWidget); |
- ASSERT(m_pluginWidget); |
+ ASSERT(!pluginWidget || pluginWidget->isPluginContainer()); |
+ m_pluginWidget = static_cast<WebPluginContainerImpl*>(pluginWidget); |
} |
PassRefPtr<Widget> FrameLoaderClientImpl::createJavaAppletWidget( |