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

Unified Diff: chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.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/extensions/extension_installed_bubble_bridge.mm
diff --git a/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm b/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm
index a19bee41997396d5b1641ce7cdb75d7a258ec6f3..2f21dfab8dcc9785db486462260cbd6faac10e2a 100644
--- a/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm
+++ b/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm
@@ -15,7 +15,7 @@
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_action.h"
#include "grit/chromium_strings.h"
@@ -35,8 +35,8 @@ static void ShowGenericExtensionInstalledInfoBar(
if (!browser)
return;
- TabContentsWrapper* wrapper = browser->GetSelectedTabContentsWrapper();
- if (!wrapper)
+ TabContents* tab_contents = browser->GetActiveTabContents();
+ if (!tab_contents)
return;
string16 extension_name = UTF8ToUTF16(new_extension->name());
@@ -46,7 +46,7 @@ static void ShowGenericExtensionInstalledInfoBar(
+ UTF8ToUTF16(" ")
+ l10n_util::GetStringUTF16(
IDS_EXTENSION_INSTALLED_MANAGE_INFO_MAC);
- InfoBarTabHelper* infobar_helper = wrapper->infobar_tab_helper();
+ InfoBarTabHelper* infobar_helper = tab_contents->infobar_tab_helper();
InfoBarDelegate* delegate = new SimpleAlertInfoBarDelegate(
infobar_helper, new gfx::Image(icon), msg, true);
infobar_helper->AddInfoBar(delegate);

Powered by Google App Engine
This is Rietveld 408576698