diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-18 00:18:09 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-18 00:18:09 +0000 |
commit | 7abc95294fd6bfd2bdd60733fa24de640b9f0bb2 (patch) | |
tree | 9ee1f42e6a0b4405b6f26957e0ec9514a3eb6ac3 /chrome/browser/extensions/extension_install_ui_browsertest.cc | |
parent | 41b946d3b39411c505f66a9dba6dc052d80dde88 (diff) | |
download | chromium_src-7abc95294fd6bfd2bdd60733fa24de640b9f0bb2.zip chromium_src-7abc95294fd6bfd2bdd60733fa24de640b9f0bb2.tar.gz chromium_src-7abc95294fd6bfd2bdd60733fa24de640b9f0bb2.tar.bz2 |
Move the little infobar code from TabContents to TabContentsWrapper.
BUG=76792
Review URL: http://codereview.chromium.org/7010017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85703 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_install_ui_browsertest.cc')
-rw-r--r-- | chrome/browser/extensions/extension_install_ui_browsertest.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/extensions/extension_install_ui_browsertest.cc b/chrome/browser/extensions/extension_install_ui_browsertest.cc index 721685d..ee04530 100644 --- a/chrome/browser/extensions/extension_install_ui_browsertest.cc +++ b/chrome/browser/extensions/extension_install_ui_browsertest.cc @@ -8,6 +8,7 @@ #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/ui/browser.h" +#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" #include "chrome/browser/themes/theme_service_factory.h" #include "chrome/test/ui_test_utils.h" #include "content/browser/tab_contents/tab_contents.h" @@ -21,14 +22,14 @@ class ExtensionInstallUIBrowserTest : public ExtensionBrowserTest { // Checks that a theme info bar is currently visible and issues an undo to // revert to the previous theme. void VerifyThemeInfoBarAndUndoInstall() { - TabContents* tab_contents = browser()->GetSelectedTabContents(); - ASSERT_TRUE(tab_contents); - ASSERT_EQ(1U, tab_contents->infobar_count()); + TabContentsWrapper* tab = browser()->GetSelectedTabContentsWrapper(); + ASSERT_TRUE(tab); + ASSERT_EQ(1U, tab->infobar_count()); ConfirmInfoBarDelegate* delegate = - tab_contents->GetInfoBarDelegateAt(0)->AsConfirmInfoBarDelegate(); + tab->GetInfoBarDelegateAt(0)->AsConfirmInfoBarDelegate(); ASSERT_TRUE(delegate); delegate->Cancel(); - ASSERT_EQ(0U, tab_contents->infobar_count()); + ASSERT_EQ(0U, tab->infobar_count()); } const Extension* GetTheme() const { |