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

Unified Diff: chrome/browser/alternate_nav_url_fetcher.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/alternate_nav_url_fetcher.cc
===================================================================
--- chrome/browser/alternate_nav_url_fetcher.cc (revision 175396)
+++ chrome/browser/alternate_nav_url_fetcher.cc (working copy)
@@ -142,10 +142,9 @@
void AlternateNavURLFetcher::ShowInfobarIfPossible() {
if (navigated_to_entry_ && (state_ == SUCCEEDED)) {
- InfoBarService* infobar_service =
- InfoBarService::FromWebContents(controller_->GetWebContents());
- infobar_service->AddInfoBar(
- new AlternateNavInfoBarDelegate(infobar_service, alternate_nav_url_));
+ AlternateNavInfoBarDelegate::Create(
+ InfoBarService::FromWebContents(controller_->GetWebContents()),
+ alternate_nav_url_);
} else if (state_ != FAILED) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698