| 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 9ef87e6b73aa7350a02eaa7dd2a93749a4a357a0..1b04e21d8a534c94350405a7ccd0242a0e98a850 100644
|
| --- a/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm
|
| +++ b/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm
|
| @@ -245,6 +245,18 @@ ConstrainedWebDialogDelegate* ShowConstrainedWebDialog(
|
| return constrained_delegate;
|
| }
|
|
|
| +ConstrainedWebDialogDelegate* ShowTopLevelConstrainedWebDialog(
|
| + content::BrowserContext* browser_context,
|
| + WebDialogDelegate* delegate,
|
| + content::WebContents* web_contents) {
|
| + // Deleted when the dialog closes.
|
| + NOTREACHED(); // This is not needed on Mac since Mac uses sheets.
|
| + ConstrainedWebDialogDelegateViewMac* constrained_delegate =
|
| + new ConstrainedWebDialogDelegateViewMac(
|
| + browser_context, delegate, web_contents, gfx::Size(), gfx::Size());
|
| + return constrained_delegate;
|
| +}
|
| +
|
| ConstrainedWebDialogDelegate* ShowConstrainedWebDialogWithAutoResize(
|
| content::BrowserContext* browser_context,
|
| WebDialogDelegate* delegate,
|
|
|