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

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

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/website_settings/website_settings.cc
===================================================================
--- chrome/browser/ui/website_settings/website_settings.cc (revision 175396)
+++ chrome/browser/ui/website_settings/website_settings.cc (working copy)
@@ -220,10 +220,8 @@
}
void WebsiteSettings::OnUIClosing() {
- if (show_info_bar_) {
- infobar_service_->AddInfoBar(
- new WebsiteSettingsInfobarDelegate(infobar_service_));
- }
+ if (show_info_bar_)
+ WebsiteSettingsInfobarDelegate::Create(infobar_service_);
}
void WebsiteSettings::Init(Profile* profile,

Powered by Google App Engine
This is Rietveld 408576698