Chromium Code Reviews| Index: chrome/browser/ui/views/infobars/infobar_container.cc |
| =================================================================== |
| --- chrome/browser/ui/views/infobars/infobar_container.cc (revision 65558) |
| +++ chrome/browser/ui/views/infobars/infobar_container.cc (working copy) |
| @@ -104,8 +104,8 @@ |
| } 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(); |
| + typedef std::pair<InfoBarDelegate*, InfoBarDelegate*> Delegates; |
|
tfarina
2010/11/10 13:11:57
Was this change really necessary? What is wrong wi
|
| + Delegates* delegates = Details<Delegates>(details).ptr(); |
| ReplaceInfoBar(delegates->first, delegates->second); |
| } else { |
| NOTREACHED(); |