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

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 compilation on Android 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..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

Powered by Google App Engine
This is Rietveld 408576698