Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: chrome/browser/ui/cocoa/profiles/user_manager_mac.mm

Issue 1796273004: [Reland] Enable AutoResize for Constrained Web Dialogs for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
diff --git a/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm b/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
index 48a02249c65b03c656aa468c7e2a0f2419ba30f9..d7536b72a70957913e0fbc5c81a6bf6482e92030 100644
--- a/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
+++ b/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
@@ -203,9 +203,9 @@ class ReauthDialogDelegate : public UserManager::ReauthDialogObserver,
base::scoped_nsobject<CustomConstrainedWindowSheet> sheet(
[[CustomConstrainedWindowSheet alloc]
initWithCustomWindow:[self window]]);
- constrained_window_.reset(
- new ConstrainedWindowMac(
- webContentsDelegate_.get(), webContents_, sheet));
+ constrained_window_ =
+ CreateAndShowWebModalDialogMac(
+ webContentsDelegate_.get(), webContents_, sheet);
// The close button needs to call CloseWebContentsModalDialog() on the
// constrained window isntead of just [window close] so grab a reference to

Powered by Google App Engine
This is Rietveld 408576698