Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(771)

Unified Diff: chrome/browser/ui/cocoa/keystone_infobar_delegate.mm

Issue 10534093: TabContentsWrapper -> TabContents, part 37. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698