| 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..cd628b8c99b6d52fb2568668c5371a2eeefd900f 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,19 @@ 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,
|
|
|