| Index: chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
|
| diff --git a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
|
| index c08c60b73bed7a6b867ba145926cd78efb77fea4..0aa2c6e0d531064e653a55c07001b02e1e869c1e 100644
|
| --- a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
|
| +++ b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
|
| @@ -20,7 +20,7 @@
|
| #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/cocoa/last_active_browser_cocoa.h"
|
| -#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
|
| +#include "chrome/browser/ui/tab_contents/tab_contents.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "content/public/browser/navigation_details.h"
|
| @@ -191,17 +191,17 @@ bool KeystonePromotionInfoBarDelegate::Cancel() {
|
| [[KeystoneGlue defaultKeystoneGlue] needsPromotion]) {
|
| Browser* browser = browser::GetLastActiveBrowser();
|
| if (browser) {
|
| - TabContentsWrapper* wrapper = browser->GetSelectedTabContentsWrapper();
|
| + TabContents* tabContents = browser->GetActiveTabContents();
|
|
|
| // Only show if no other info bars are showing, because that's how the
|
| // default browser info bar works.
|
| - if (wrapper) {
|
| - InfoBarTabHelper* infobar_helper = wrapper->infobar_tab_helper();
|
| + if (tabContents) {
|
| + InfoBarTabHelper* infobar_helper = tabContents->infobar_tab_helper();
|
| if (infobar_helper->infobar_count() == 0) {
|
| infobar_helper->AddInfoBar(
|
| new KeystonePromotionInfoBarDelegate(
|
| infobar_helper,
|
| - wrapper->profile()->GetPrefs()));
|
| + tabContents->profile()->GetPrefs()));
|
| }
|
| }
|
| }
|
|
|