Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 6d0b4358beacdeda3c4f9a2ba36b136790940519..8d8c1c09c9e38e2eec3b987b326748a42962cd05 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -2504,11 +2504,10 @@ void Browser::RegisterIntentHandlerHelper(TabContents* tab, |
service.action = action; |
service.type = type; |
service.title = title; |
- InfoBarTabHelper* infobar_helper = tcw->infobar_tab_helper(); |
- infobar_helper->AddInfoBar(new RegisterIntentHandlerInfoBarDelegate( |
- infobar_helper, |
+ RegisterIntentHandlerInfoBarDelegate::MaybeShowIntentInfoBar( |
+ tcw->infobar_tab_helper(), |
WebIntentsRegistryFactory::GetForProfile(tcw->profile()), |
- service)); |
+ service); |
} |
// static |