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(); |
} |