| Index: chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc
|
| diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc
|
| index beae67f65e81b505e325abaa092d5a0a31c3bb54..86e0309d8e196fa287971ab5654a35651c917769 100644
|
| --- a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc
|
| +++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc
|
| @@ -16,8 +16,11 @@
|
| // static
|
| void DataReductionProxyInfoBarDelegate::Create(
|
| content::WebContents* web_contents, const std::string& link_url) {
|
| - InfoBarService::FromWebContents(web_contents)->AddInfoBar(
|
| + InfoBarService* infobar_service =
|
| + InfoBarService::FromWebContents(web_contents);
|
| + infobar_service->AddInfoBar(
|
| DataReductionProxyInfoBarDelegate::CreateInfoBar(
|
| + infobar_service,
|
| scoped_ptr<DataReductionProxyInfoBarDelegate>(
|
| new DataReductionProxyInfoBarDelegate(link_url))));
|
| }
|
| @@ -27,8 +30,9 @@ void DataReductionProxyInfoBarDelegate::Create(
|
|
|
| // static
|
| scoped_ptr<infobars::InfoBar> DataReductionProxyInfoBarDelegate::CreateInfoBar(
|
| + infobars::InfoBarManager* infobar_manager,
|
| scoped_ptr<DataReductionProxyInfoBarDelegate> delegate) {
|
| - return ConfirmInfoBarDelegate::CreateInfoBar(delegate.Pass());
|
| + return infobar_manager->CreateConfirmInfoBar(delegate.Pass());
|
| }
|
| #endif
|
|
|
|
|