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

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

Issue 211273007: Split InfoBarService core code into InfoBarManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + comments Created 6 years, 9 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 3c8e71cc3902c653e9f06e9b3aaf0fc917609d9e..f33638c44ee604ff395e1fad1dd76bc7075b294a 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm
@@ -68,12 +68,10 @@
- (void)changeWebContents:(content::WebContents*)contents {
currentWebContents_ = contents;
- if (contents) {
- containerCocoa_->ChangeInfoBarService(
- InfoBarService::FromWebContents(contents));
- } else {
- containerCocoa_->ChangeInfoBarService(NULL);
- }
+ InfoBarManager* infobar_manager = NULL;
+ if (contents)
+ infobar_manager = InfoBarService::InfoBarManagerFromWebContents(contents);
+ containerCocoa_->ChangeInfoBarManager(infobar_manager);
}
- (void)tabDetachedWithContents:(content::WebContents*)contents {
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm ('k') | chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698