| 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..3ed23b051a22a2d5bf6d3467a10c785b9d929ead 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,24 @@ ConstrainedWebDialogDelegate* ShowConstrainedWebDialog(
|
| return constrained_delegate;
|
| }
|
|
|
| +ConstrainedWebDialogDelegate* ShowTopLevelConstrainedWebDialog(
|
| + content::BrowserContext* browser_context,
|
| + WebDialogDelegate* delegate,
|
| + content::WebContents* web_contents) {
|
| + // Mac uses sheets, so we can just use the normal ShowConstrainedWebDialog.
|
| + return ShowConstrainedWebDialog(browser_context, delegate, web_contents);
|
| +}
|
| +
|
| +// Mac uses sheets so there is no need for this function. Use the normal
|
| +// ShowConstrainedWebDialog.
|
| +ConstrainedWebDialogDelegate* ShowTopLevelConstrainedWebDialogInWindow(
|
| + content::BrowserContext* browser_context,
|
| + ui::WebDialogDelegate* delegate,
|
| + content::WebContents* web_contents,
|
| + gfx::NativeView dialog_host_window) {
|
| + return ShowConstrainedWebDialog(browser_context, delegate, web_contents);
|
| +}
|
| +
|
| ConstrainedWebDialogDelegate* ShowConstrainedWebDialogWithAutoResize(
|
| content::BrowserContext* browser_context,
|
| WebDialogDelegate* delegate,
|
|
|