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

Unified Diff: chrome/browser/translate/translate_manager_browsertest.cc

Issue 7006010: Change InfoBar-related notifications to be sourced from a TabContentsWrapper, not a TabContents. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/translate/translate_manager_browsertest.cc
===================================================================
--- chrome/browser/translate/translate_manager_browsertest.cc (revision 87541)
+++ chrome/browser/translate/translate_manager_browsertest.cc (working copy)
@@ -138,7 +138,8 @@
const NotificationSource& source,
const NotificationDetails& details) {
DCHECK_EQ(NotificationType::TAB_CONTENTS_INFOBAR_REMOVED, type.value);
- removed_infobars_.insert(Details<InfoBarDelegate>(details).ptr());
+ removed_infobars_.insert(
+ Details<std::pair<InfoBarDelegate*, bool> >(details)->first);
}
protected:
@@ -161,7 +162,7 @@
notification_registrar_.Add(this,
NotificationType::TAB_CONTENTS_INFOBAR_REMOVED,
- Source<TabContents>(contents()));
+ Source<TabContentsWrapper>(contents_wrapper()));
}
virtual void TearDown() {
@@ -169,7 +170,7 @@
notification_registrar_.Remove(this,
NotificationType::TAB_CONTENTS_INFOBAR_REMOVED,
- Source<TabContents>(contents()));
+ Source<TabContentsWrapper>(contents_wrapper()));
TabContentsWrapperTestHarness::TearDown();

Powered by Google App Engine
This is Rietveld 408576698