summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugin_installer_infobar_delegate.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 15:07:08 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 15:07:08 +0000
commit95a33ed6cb8688573249f7cd7032d23518879c6d (patch)
tree77c2f8d28412caa3aeb6cdb94de420bb811113d6 /chrome/browser/plugin_installer_infobar_delegate.cc
parent14ea9bf12826e740fd77fda742e67605df06ce4a (diff)
downloadchromium_src-95a33ed6cb8688573249f7cd7032d23518879c6d.zip
chromium_src-95a33ed6cb8688573249f7cd7032d23518879c6d.tar.gz
chromium_src-95a33ed6cb8688573249f7cd7032d23518879c6d.tar.bz2
Move infobar handling to a tab helper.
Part 2: - Removed TabContentsWrapper from core infobar classes - Made InfoBarTabHelper the owner of the infobar delegates - Removed all owner references from the delegate subclasses BUG=94741 TEST=no visible change Review URL: http://codereview.chromium.org/7862003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103463 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_installer_infobar_delegate.cc')
-rw-r--r--chrome/browser/plugin_installer_infobar_delegate.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/plugin_installer_infobar_delegate.cc b/chrome/browser/plugin_installer_infobar_delegate.cc
index a6e002e..e570a2a 100644
--- a/chrome/browser/plugin_installer_infobar_delegate.cc
+++ b/chrome/browser/plugin_installer_infobar_delegate.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/plugin_installer_infobar_delegate.h"
#include "chrome/browser/google/google_util.h"
+#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/common/view_messages.h"
@@ -16,9 +17,8 @@
#include "webkit/plugins/npapi/default_plugin_shared.h"
PluginInstallerInfoBarDelegate::PluginInstallerInfoBarDelegate(
- TabContents* tab_contents, gfx::NativeWindow window)
- : ConfirmInfoBarDelegate(tab_contents),
- tab_contents_(tab_contents),
+ InfoBarTabHelper* infobar_helper, gfx::NativeWindow window)
+ : ConfirmInfoBarDelegate(infobar_helper),
window_(window) {
}
@@ -69,7 +69,7 @@ string16 PluginInstallerInfoBarDelegate::GetLinkText() const {
bool PluginInstallerInfoBarDelegate::LinkClicked(
WindowOpenDisposition disposition) {
- tab_contents_->OpenURL(google_util::AppendGoogleLocaleParam(GURL(
+ owner()->tab_contents()->OpenURL(google_util::AppendGoogleLocaleParam(GURL(
"http://www.google.com/support/chrome/bin/answer.py?answer=95697&topic="
"14687")), GURL(),
(disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,