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

Unified Diff: chrome/browser/cocoa/infobar_container_controller.mm

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/cocoa/infobar_container_controller.mm
===================================================================
--- chrome/browser/cocoa/infobar_container_controller.mm (revision 65711)
+++ chrome/browser/cocoa/infobar_container_controller.mm (working copy)
@@ -38,12 +38,10 @@
animate:YES];
break;
case NotificationType::TAB_CONTENTS_INFOBAR_REPLACED: {
- typedef std::pair<InfoBarDelegate*, InfoBarDelegate*>
- InfoBarDelegatePair;
- InfoBarDelegatePair* delegates =
- Details<InfoBarDelegatePair>(details).ptr();
- [controller_
- replaceInfoBarsForDelegate:delegates->first with:delegates->second];
+ typedef std::pair<InfoBarDelegate*, InfoBarDelegate*> DelegatePair;
+ DelegatePair* delegate_pair = Details<DelegatePair>(details).ptr();
+ [controller_ replaceInfoBarsForDelegate:delegate_pair->first
+ with:delegate_pair->second];
break;
}
default:

Powered by Google App Engine
This is Rietveld 408576698