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

Unified Diff: chrome/browser/ui/apps/app_metro_infobar_delegate_win.cc

Issue 190063006: Infobar Componentization Proof of Concept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fixes Created 6 years, 9 months 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/ui/apps/app_metro_infobar_delegate_win.cc
diff --git a/chrome/browser/ui/apps/app_metro_infobar_delegate_win.cc b/chrome/browser/ui/apps/app_metro_infobar_delegate_win.cc
index f12628a2c92aae1729cc25380b26afcf7619afc2..384747e8e086f22db1a8e5e96da0cece29de7f14 100644
--- a/chrome/browser/ui/apps/app_metro_infobar_delegate_win.cc
+++ b/chrome/browser/ui/apps/app_metro_infobar_delegate_win.cc
@@ -47,7 +47,7 @@ void AppMetroInfoBarDelegateWin::Create(
content::WebContents* web_contents = displayer.browser()->OpenURL(params);
InfoBarService::FromWebContents(web_contents)->AddInfoBar(
ConfirmInfoBarDelegate::CreateInfoBar(scoped_ptr<ConfirmInfoBarDelegate>(
- new AppMetroInfoBarDelegateWin(mode, extension_id))));
+ new AppMetroInfoBarDelegateWin(web_contents, mode, extension_id))));
// Use PostTask because we can get here in a COM SendMessage, and
// ActivateApplication can not be sent nested (returns error
@@ -57,9 +57,10 @@ void AppMetroInfoBarDelegateWin::Create(
}
AppMetroInfoBarDelegateWin::AppMetroInfoBarDelegateWin(
+ content::WebContents* web_contents,
Mode mode,
const std::string& extension_id)
- : ConfirmInfoBarDelegate(),
+ : ContentConfirmInfoBarDelegate(web_contents),
mode_(mode),
extension_id_(extension_id) {
DCHECK_EQ(mode_ == SHOW_APP_LIST, extension_id_.empty());

Powered by Google App Engine
This is Rietveld 408576698