| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 82188aaaca93d231e4cd101b4dd07f1e3e9b98b7..af125f6c0b0c10482b4fb8cef2ccc83eb912e94e 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -2597,11 +2597,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
|
|
|