Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2511)

Unified Diff: chrome/browser/plugin_installer_infobar_delegate.cc

Issue 7812020: Moved the following IPC messages used by the chrome NPAPI plugin installer out of content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/plugin_installer_infobar_delegate.h ('k') | chrome/browser/plugin_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_installer_infobar_delegate.cc
===================================================================
--- chrome/browser/plugin_installer_infobar_delegate.cc (revision 98657)
+++ chrome/browser/plugin_installer_infobar_delegate.cc (working copy)
@@ -13,11 +13,13 @@
#include "grit/theme_resources_standard.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
+#include "webkit/plugins/npapi/default_plugin_shared.h"
PluginInstallerInfoBarDelegate::PluginInstallerInfoBarDelegate(
- TabContents* tab_contents)
+ TabContents* tab_contents, gfx::NativeWindow window)
: ConfirmInfoBarDelegate(tab_contents),
- tab_contents_(tab_contents) {
+ tab_contents_(tab_contents),
+ window_(window) {
}
PluginInstallerInfoBarDelegate::~PluginInstallerInfoBarDelegate() {
@@ -48,8 +50,13 @@
}
bool PluginInstallerInfoBarDelegate::Accept() {
- RenderViewHost* host = tab_contents_->render_view_host();
- host->Send(new ViewMsg_InstallMissingPlugin(host->routing_id()));
+ // TODO(PORT) for other platforms.
+#ifdef OS_WIN
+ ::PostMessage(window_,
+ webkit::npapi::default_plugin::kInstallMissingPluginMessage,
+ 0,
+ 0);
+#endif // OS_WIN
return true;
}
« no previous file with comments | « chrome/browser/plugin_installer_infobar_delegate.h ('k') | chrome/browser/plugin_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698