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

Unified Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 228293004: InfoBarService inherits from InfoBarManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace Created 6 years, 8 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/browser_window_gtk.cc
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc
index b4001e454590e1052b729054dbadda18f7f56245..cc6928c790efa5e4bc71e908dccea2710752c4db 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -802,9 +802,8 @@ void BrowserWindowGtk::OnActiveTabChanged(WebContents* old_contents,
// Update various elements that are interested in knowing the current
// WebContents.
- InfoBarManager* infobar_manager =
- InfoBarService::InfoBarManagerFromWebContents(new_contents);
- infobar_container_->ChangeInfoBarManager(infobar_manager);
+ infobar_container_->ChangeInfoBarManager(
+ InfoBarService::FromWebContents(new_contents));
contents_container_->SetTab(new_contents);
UpdateDevToolsForContents(new_contents);

Powered by Google App Engine
This is Rietveld 408576698