Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index ffec67caca232279866e909c97ad0d3362429209..8ca8745971926c94884fe7e0cacc8f7eaded7d54 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -2593,11 +2593,10 @@ void Browser::RegisterIntentHandlerHelper(TabContents* tab, |
service.title = title; |
service.setDisposition(disposition); |
- 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 |