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

Unified Diff: chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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/ui/website_settings/website_settings_infobar_delegate.cc
===================================================================
--- chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc (revision 238220)
+++ chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
+#include "chrome/browser/infobars/infobar.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "content/public/browser/web_contents.h"
#include "grit/generated_resources.h"
@@ -15,13 +16,13 @@
// static
void WebsiteSettingsInfoBarDelegate::Create(InfoBarService* infobar_service) {
- infobar_service->AddInfoBar(scoped_ptr<InfoBarDelegate>(
- new WebsiteSettingsInfoBarDelegate(infobar_service)));
+ infobar_service->AddInfoBar(ConfirmInfoBarDelegate::CreateInfoBar(
+ scoped_ptr<ConfirmInfoBarDelegate>(
+ new WebsiteSettingsInfoBarDelegate())));
}
-WebsiteSettingsInfoBarDelegate::WebsiteSettingsInfoBarDelegate(
- InfoBarService* infobar_service)
- : ConfirmInfoBarDelegate(infobar_service) {
+WebsiteSettingsInfoBarDelegate::WebsiteSettingsInfoBarDelegate()
+ : ConfirmInfoBarDelegate() {
}
WebsiteSettingsInfoBarDelegate::~WebsiteSettingsInfoBarDelegate() {

Powered by Google App Engine
This is Rietveld 408576698