WebHelperPlugin* WebHelperPlugin::create(const WebString& pluginType, WebLocalFrame* frame) { OwnPtr<WebHelperPlugin> plugin = adoptPtr<WebHelperPlugin>(new WebHelperPluginImpl()); if (!toWebHelperPluginImpl(plugin.get())->initialize(pluginType, toWebLocalFrameImpl(frame))) return 0; return plugin.leakPtr(); }
WebHelperPlugin* WebHelperPlugin::create(const WebString& pluginType, WebLocalFrame* frame) { WebHelperPluginUniquePtr plugin(new WebHelperPluginImpl()); if (!toWebHelperPluginImpl(plugin.get())->initialize(pluginType, toWebLocalFrameImpl(frame))) return 0; return plugin.release(); }