| Index: chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc
|
| diff --git a/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc b/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc
|
| index ad395cef32b824775dc44c3fb5495165780980d9..e3686d7dc383bc0c615cb4b86295a389c5504c3f 100644
|
| --- a/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc
|
| +++ b/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc
|
| @@ -23,12 +23,12 @@ void PopupBlockedInfoBarDelegate::Create(content::WebContents* web_contents,
|
| const GURL& url = web_contents->GetURL();
|
| Profile* profile =
|
| Profile::FromBrowserContext(web_contents->GetBrowserContext());
|
| - scoped_ptr<infobars::InfoBar> infobar(ConfirmInfoBarDelegate::CreateInfoBar(
|
| + InfoBarService* infobar_service =
|
| + InfoBarService::FromWebContents(web_contents);
|
| + scoped_ptr<infobars::InfoBar> infobar(infobar_service->CreateConfirmInfoBar(
|
| scoped_ptr<ConfirmInfoBarDelegate>(new PopupBlockedInfoBarDelegate(
|
| num_popups, url, profile->GetHostContentSettingsMap()))));
|
|
|
| - InfoBarService* infobar_service =
|
| - InfoBarService::FromWebContents(web_contents);
|
| // See if there is an existing popup infobar already.
|
| // TODO(dfalcantara) When triggering more than one popup the infobar
|
| // will be shown once, then hide then be shown again.
|
|
|