Index: chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm |
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm b/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm |
index 1731bb358a7bb9912b072e4b66789630e4d7f0e5..4a80bbde542f95c97c96a67acf5fe63f554e3ff2 100644 |
--- a/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm |
+++ b/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm |
@@ -38,8 +38,8 @@ |
base::scoped_nsobject<CustomConstrainedWindowSheet> sheet( |
[[CustomConstrainedWindowSheet alloc] |
initWithCustomWindow:[sheet_delegate_ window]]); |
- constrained_window_ = |
- CreateAndShowWebModalDialogMac(this, delegate_->GetWebContents(), sheet); |
+ constrained_window_.reset( |
+ new ConstrainedWindowMac(this, delegate_->GetWebContents(), sheet)); |
[sheet_delegate_ show]; |
} |