summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/infobar_container_controller.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/infobar_container_controller.mm')
-rw-r--r--chrome/browser/cocoa/infobar_container_controller.mm9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/cocoa/infobar_container_controller.mm b/chrome/browser/cocoa/infobar_container_controller.mm
index 06eaf67..4acc324 100644
--- a/chrome/browser/cocoa/infobar_container_controller.mm
+++ b/chrome/browser/cocoa/infobar_container_controller.mm
@@ -4,7 +4,6 @@
#include "base/logging.h"
#include "base/mac_util.h"
-#import "chrome/browser/cocoa/browser_window_controller.h"
#include "chrome/browser/cocoa/infobar.h"
#import "chrome/browser/cocoa/infobar_container_controller.h"
#import "chrome/browser/cocoa/infobar_controller.h"
@@ -64,11 +63,11 @@ class InfoBarNotificationObserver : public NotificationObserver {
@implementation InfoBarContainerController
- (id)initWithTabStripModel:(TabStripModel*)model
- browserWindowController:(BrowserWindowController*)controller {
- DCHECK(controller);
+ resizeDelegate:(id<ViewResizer>)resizeDelegate {
+ DCHECK(resizeDelegate);
if ((self = [super initWithNibName:@"InfoBarContainer"
bundle:mac_util::MainAppBundle()])) {
- browserController_ = controller;
+ resizeDelegate_ = resizeDelegate;
tabObserver_.reset(new TabStripModelObserverBridge(model, self));
infoBarObserver_.reset(new InfoBarNotificationObserver(self));
@@ -185,7 +184,7 @@ class InfoBarNotificationObserver : public NotificationObserver {
[view setFrame:frame];
}
- [browserController_ infoBarResized:[self desiredHeight]];
+ [resizeDelegate_ resizeView:[self view] newHeight:[self desiredHeight]];
}
@end