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

Unified Diff: chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm

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/cocoa/infobars/infobar_container_controller.mm
diff --git a/chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm b/chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm
index f33638c44ee604ff395e1fad1dd76bc7075b294a..b5e7aed2814a6f2600e9eac607ad9632f397c239 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm
@@ -68,10 +68,9 @@
- (void)changeWebContents:(content::WebContents*)contents {
currentWebContents_ = contents;
- InfoBarManager* infobar_manager = NULL;
- if (contents)
- infobar_manager = InfoBarService::InfoBarManagerFromWebContents(contents);
- containerCocoa_->ChangeInfoBarManager(infobar_manager);
+ InfoBarService* infobar_service =
+ contents ? InfoBarService::FromWebContents(contents) : NULL;
+ containerCocoa_->ChangeInfoBarManager(infobar_service);
}
- (void)tabDetachedWithContents:(content::WebContents*)contents {

Powered by Google App Engine
This is Rietveld 408576698