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

Unified Diff: chrome/browser/ui/views/infobars/infobar_container.cc

Issue 4767001: Make TabContents own its infobar delegates.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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/views/infobars/infobar_container.cc
===================================================================
--- chrome/browser/ui/views/infobars/infobar_container.cc (revision 65711)
+++ chrome/browser/ui/views/infobars/infobar_container.cc (working copy)
@@ -104,9 +104,9 @@
} else if (type == NotificationType::TAB_CONTENTS_INFOBAR_REMOVED) {
RemoveInfoBar(Details<InfoBarDelegate>(details).ptr(), true); // animated
} else if (type == NotificationType::TAB_CONTENTS_INFOBAR_REPLACED) {
- std::pair<InfoBarDelegate*, InfoBarDelegate*>* delegates =
- Details<std::pair<InfoBarDelegate*, InfoBarDelegate*> >(details).ptr();
- ReplaceInfoBar(delegates->first, delegates->second);
+ typedef std::pair<InfoBarDelegate*, InfoBarDelegate*> DelegatePair;
+ DelegatePair* delegate_pair = Details<DelegatePair>(details).ptr();
+ ReplaceInfoBar(delegate_pair->first, delegate_pair->second);
} else {
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698