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

Unified Diff: chrome/browser/ui/gtk/infobars/alternate_nav_infobar_gtk.cc

Issue 12017031: infobars: Remove the downcast AsAlternateNavInfoBarDelegate() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/gtk/infobars/alternate_nav_infobar_gtk.cc
diff --git a/chrome/browser/ui/gtk/infobars/alternate_nav_infobar_gtk.cc b/chrome/browser/ui/gtk/infobars/alternate_nav_infobar_gtk.cc
index d5d0369e18f0f35baee195e745b1932bfaa730b1..eb6d716c90374b1cff86dd47c18148ce6c4cd3da 100644
--- a/chrome/browser/ui/gtk/infobars/alternate_nav_infobar_gtk.cc
+++ b/chrome/browser/ui/gtk/infobars/alternate_nav_infobar_gtk.cc
@@ -36,5 +36,5 @@ void AlternateNavInfoBarGtk::OnLinkClicked(GtkWidget* button) {
}
AlternateNavInfoBarDelegate* AlternateNavInfoBarGtk::GetDelegate() {
- return delegate()->AsAlternateNavInfoBarDelegate();
+ return static_cast<AlternateNavInfoBarDelegate*>(delegate());
}

Powered by Google App Engine
This is Rietveld 408576698