Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 67bbbb92b35b051f9b34740f93e4521a1d554b4f..c45a349a338e2e5e865644f17a59d9147371999b 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -2493,11 +2493,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 |