| 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..2ea564bb5a065803cb6842ed1bda2b050bce1dc8 100644
|
| --- a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc
|
| +++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc
|
| @@ -16,22 +16,13 @@
|
| // static
|
| void DataReductionProxyInfoBarDelegate::Create(
|
| content::WebContents* web_contents, const std::string& link_url) {
|
| - InfoBarService::FromWebContents(web_contents)->AddInfoBar(
|
| - DataReductionProxyInfoBarDelegate::CreateInfoBar(
|
| - scoped_ptr<DataReductionProxyInfoBarDelegate>(
|
| - new DataReductionProxyInfoBarDelegate(link_url))));
|
| + InfoBarService* infobar_service =
|
| + InfoBarService::FromWebContents(web_contents);
|
| + infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar(
|
| + scoped_ptr<DataReductionProxyInfoBarDelegate>(
|
| + new DataReductionProxyInfoBarDelegate(link_url))));
|
| }
|
|
|
| -#if !defined(OS_ANDROID)
|
| -// This infobar currently only supports Android.
|
| -
|
| -// static
|
| -scoped_ptr<infobars::InfoBar> DataReductionProxyInfoBarDelegate::CreateInfoBar(
|
| - scoped_ptr<DataReductionProxyInfoBarDelegate> delegate) {
|
| - return ConfirmInfoBarDelegate::CreateInfoBar(delegate.Pass());
|
| -}
|
| -#endif
|
| -
|
| DataReductionProxyInfoBarDelegate::~DataReductionProxyInfoBarDelegate() {
|
| }
|
|
|
|
|