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

Unified Diff: chrome/browser/ui/collected_cookies_infobar_delegate.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/collected_cookies_infobar_delegate.cc
diff --git a/chrome/browser/ui/collected_cookies_infobar_delegate.cc b/chrome/browser/ui/collected_cookies_infobar_delegate.cc
index a0d5cfb54dd93ed47a6c20faf6e30b3fccac95e9..07569b4aeaafdbb4bd3fdbfe81a6666785020915 100644
--- a/chrome/browser/ui/collected_cookies_infobar_delegate.cc
+++ b/chrome/browser/ui/collected_cookies_infobar_delegate.cc
@@ -12,17 +12,16 @@
#include "grit/theme_resources.h"
#include "ui/base/l10n/l10n_util.h"
-
// static
void CollectedCookiesInfoBarDelegate::Create(InfoBarService* infobar_service) {
infobar_service->AddInfoBar(ConfirmInfoBarDelegate::CreateInfoBar(
- scoped_ptr<ConfirmInfoBarDelegate>(
- new CollectedCookiesInfoBarDelegate())));
+ scoped_ptr<ConfirmInfoBarDelegate>(new CollectedCookiesInfoBarDelegate(
+ infobar_service->web_contents()))));
}
-CollectedCookiesInfoBarDelegate::CollectedCookiesInfoBarDelegate()
- : ConfirmInfoBarDelegate() {
-}
+CollectedCookiesInfoBarDelegate::CollectedCookiesInfoBarDelegate(
+ content::WebContents* web_contents)
+ : ContentConfirmInfoBarDelegate(web_contents) {}
CollectedCookiesInfoBarDelegate::~CollectedCookiesInfoBarDelegate() {
}

Powered by Google App Engine
This is Rietveld 408576698