| Index: chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm
|
| diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm b/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm
|
| index df302dfc573a304edc28ad3654dce2d31280323b..4f7e1da2013e89cabb58176ed013e262410709a8 100644
|
| --- a/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm
|
| +++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm
|
| @@ -78,6 +78,14 @@ NativeWebContentsModalDialog ConstrainedWindowMac::GetNativeDialog() {
|
| return this;
|
| }
|
|
|
| +void ConstrainedWindowMac::SetInhibitCloseOnLoadStart(bool inhibit) {
|
| + WebContentsModalDialogManager* web_contents_modal_dialog_manager =
|
| + WebContentsModalDialogManager::FromWebContents(web_contents_);
|
| + web_contents_modal_dialog_manager->SetInhibitCloseOnLoadStart(
|
| + GetNativeDialog(),
|
| + inhibit);
|
| +}
|
| +
|
| NSWindow* ConstrainedWindowMac::GetParentWindow() const {
|
| // Tab contents in a tabbed browser may not be inside a window. For this
|
| // reason use a browser window if possible.
|
|
|