Index: content/renderer/render_view.cc |
=================================================================== |
--- content/renderer/render_view.cc (revision 98657) |
+++ content/renderer/render_view.cc (working copy) |
@@ -653,7 +653,6 @@ |
IPC_MESSAGE_HANDLER(ViewMsg_UpdateTargetURL_ACK, OnUpdateTargetURLAck) |
IPC_MESSAGE_HANDLER(ViewMsg_UpdateWebPreferences, OnUpdateWebPreferences) |
IPC_MESSAGE_HANDLER(ViewMsg_SetAltErrorPageURL, OnSetAltErrorPageURL) |
- IPC_MESSAGE_HANDLER(ViewMsg_InstallMissingPlugin, OnInstallMissingPlugin) |
IPC_MESSAGE_HANDLER(ViewMsg_EnumerateDirectoryResponse, |
OnEnumerateDirectoryResponse) |
IPC_MESSAGE_HANDLER(ViewMsg_RunFileChooserResponse, OnFileChooserResponse) |
@@ -1328,32 +1327,6 @@ |
return Send(message); |
} |
-void RenderView::OnMissingPluginStatus( |
- WebPluginDelegateProxy* delegate, |
- int status) { |
-#if defined(OS_WIN) |
- if (!first_default_plugin_) { |
- // Show the InfoBar for the first available plugin. |
- if (status == webkit::npapi::default_plugin::MISSING_PLUGIN_AVAILABLE) { |
- first_default_plugin_ = delegate->AsWeakPtr(); |
- Send(new ViewHostMsg_MissingPluginStatus(routing_id_, status)); |
- } |
- } else { |
- // Closes the InfoBar if user clicks on the plugin (instead of the InfoBar) |
- // to start the download/install. |
- if (status == |
- webkit::npapi::default_plugin::MISSING_PLUGIN_USER_STARTED_DOWNLOAD) { |
- Send(new ViewHostMsg_MissingPluginStatus(routing_id_, status)); |
- } |
- } |
-#else |
- // TODO(port): Implement the infobar that accompanies the default plugin. |
- // Linux: http://crbug.com/10952 |
- // Mac: http://crbug.com/17392 |
- NOTIMPLEMENTED(); |
-#endif |
-} |
- |
// WebKit::WebViewClient ------------------------------------------------------ |
WebView* RenderView::createView( |
@@ -1513,9 +1486,6 @@ |
} |
is_loading_ = true; |
- // Clear the pointer so that we can assign it only when there is an unknown |
- // plugin on a page. |
- first_default_plugin_.reset(); |
Send(new ViewHostMsg_DidStartLoading(routing_id_)); |
@@ -3627,12 +3597,6 @@ |
webview()->performCustomContextMenuAction(action); |
} |
-void RenderView::OnInstallMissingPlugin() { |
- // This could happen when the first default plugin is deleted. |
- if (first_default_plugin_) |
- first_default_plugin_->InstallMissingPlugin(); |
-} |
- |
void RenderView::OnEnumerateDirectoryResponse( |
int id, |
const std::vector<FilePath>& paths) { |