Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1637)

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc

Issue 812823002: Remove dependency of infobars component on the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compilation Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {
}

Powered by Google App Engine
This is Rietveld 408576698