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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 228293004: InfoBarService inherits from InfoBarManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: format 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/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 6349faeaa50ddf694e68b7aeef4377284716d234..343045b15452a73dbf0cd4b6cc78a2ff965cfc69 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -832,9 +832,8 @@ void BrowserView::OnActiveTabChanged(content::WebContents* old_contents,
devtools_web_view_->SetWebContents(NULL);
}
- InfoBarManager* infobar_manager =
- InfoBarService::InfoBarManagerFromWebContents(new_contents);
- infobar_container_->ChangeInfoBarManager(infobar_manager);
+ infobar_container_->ChangeInfoBarManager(
+ InfoBarService::FromWebContents(new_contents));
if (old_contents && PermissionBubbleManager::FromWebContents(old_contents))
PermissionBubbleManager::FromWebContents(old_contents)->SetView(NULL);

Powered by Google App Engine
This is Rietveld 408576698