diff options
Diffstat (limited to 'chrome/browser/plugin_installer_infobar_delegate.cc')
-rw-r--r-- | chrome/browser/plugin_installer_infobar_delegate.cc | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/chrome/browser/plugin_installer_infobar_delegate.cc b/chrome/browser/plugin_installer_infobar_delegate.cc index 8a035ed..3898e0c 100644 --- a/chrome/browser/plugin_installer_infobar_delegate.cc +++ b/chrome/browser/plugin_installer_infobar_delegate.cc @@ -11,7 +11,6 @@ #include "grit/theme_resources.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) @@ -20,27 +19,6 @@ PluginInstallerInfoBarDelegate::PluginInstallerInfoBarDelegate( } PluginInstallerInfoBarDelegate::~PluginInstallerInfoBarDelegate() { - // Remove any InfoBars we may be showing. - tab_contents_->RemoveInfoBar(this); -} - -void PluginInstallerInfoBarDelegate::OnMissingPluginStatus(int status) { - switch (status) { - case webkit::npapi::default_plugin::MISSING_PLUGIN_AVAILABLE: { - tab_contents_->AddInfoBar(this); - break; - } - case webkit::npapi::default_plugin::MISSING_PLUGIN_USER_STARTED_DOWNLOAD: { - // Hide the InfoBar if user already started download/install of the - // missing plugin. - tab_contents_->RemoveInfoBar(this); - break; - } - default: { - NOTREACHED(); - break; - } - } } SkBitmap* PluginInstallerInfoBarDelegate::GetIcon() const { @@ -48,6 +26,11 @@ SkBitmap* PluginInstallerInfoBarDelegate::GetIcon() const { IDR_INFOBAR_PLUGIN_INSTALL); } +PluginInstallerInfoBarDelegate* + PluginInstallerInfoBarDelegate::AsPluginInstallerInfoBarDelegate() { + return this; +} + string16 PluginInstallerInfoBarDelegate::GetMessageText() const { return l10n_util::GetStringUTF16(IDS_PLUGININSTALLER_MISSINGPLUGIN_PROMPT); } |