summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugin_installer_infobar_delegate.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-28 02:09:33 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-28 02:09:33 +0000
commit53a0afa4218c19221e2df65b664a7d42f72fc2e0 (patch)
tree5655172bbc9f1d756c5d2c2cf65119679255715c /chrome/browser/plugin_installer_infobar_delegate.cc
parentf4d5e1ae2530667dc52bcce555e70e47bdc37371 (diff)
downloadchromium_src-53a0afa4218c19221e2df65b664a7d42f72fc2e0.zip
chromium_src-53a0afa4218c19221e2df65b664a7d42f72fc2e0.tar.gz
chromium_src-53a0afa4218c19221e2df65b664a7d42f72fc2e0.tar.bz2
Move a few Chrome messages out of RenderViewHost. I added ChromeRenderViewHostObserver, to be the browser equivalent of the renderer's ChromeRenderViewObserver, where we have a place to dispatch RV messages specific to Chrome.
Review URL: http://codereview.chromium.org/6883177 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83283 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_installer_infobar_delegate.cc')
-rw-r--r--chrome/browser/plugin_installer_infobar_delegate.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/plugin_installer_infobar_delegate.cc b/chrome/browser/plugin_installer_infobar_delegate.cc
index 2eac72e..1fca1fb 100644
--- a/chrome/browser/plugin_installer_infobar_delegate.cc
+++ b/chrome/browser/plugin_installer_infobar_delegate.cc
@@ -6,6 +6,7 @@
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/tab_contents/tab_contents.h"
+#include "content/common/view_messages.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
#include "grit/theme_resources.h"
@@ -46,7 +47,8 @@ string16 PluginInstallerInfoBarDelegate::GetButtonLabel(
}
bool PluginInstallerInfoBarDelegate::Accept() {
- tab_contents_->render_view_host()->InstallMissingPlugin();
+ RenderViewHost* host = tab_contents_->render_view_host();
+ host->Send(new ViewMsg_InstallMissingPlugin(host->routing_id()));
return true;
}