Index: chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm |
diff --git a/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm b/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm |
index 0589797853c3c93cfbd9d4b10ddf01a155b565ef..629439c272055e024874cb54dd798f2658c8dce9 100644 |
--- a/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm |
+++ b/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm |
@@ -7,7 +7,7 @@ |
#import <Cocoa/Cocoa.h> |
#include "base/mac/scoped_nsobject.h" |
-#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.h" |
+#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_web_dialog_sheet.h" |
#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_window.h" |
#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" |
#include "content/public/browser/web_contents.h" |
@@ -117,10 +117,13 @@ ConstrainedWebDialogDelegateViewMac::ConstrainedWebDialogDelegateViewMac( |
window_.reset( |
[[ConstrainedWindowCustomWindow alloc] initWithContentRect:frame]); |
[GetWebContents()->GetNativeView() setFrame:frame]; |
+ [GetWebContents()->GetNativeView() setAutoresizingMask: |
+ NSViewWidthSizable|NSViewHeightSizable]; |
[[window_ contentView] addSubview:GetWebContents()->GetNativeView()]; |
- base::scoped_nsobject<CustomConstrainedWindowSheet> sheet( |
- [[CustomConstrainedWindowSheet alloc] initWithCustomWindow:window_]); |
+ base::scoped_nsobject<WebDialogConstrainedWindowSheet> sheet( |
+ [[WebDialogConstrainedWindowSheet alloc] initWithCustomWindow:window_ |
+ webDialogDelegate:delegate]); |
constrained_window_.reset(new ConstrainedWindowMac( |
this, web_contents, sheet)); |