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

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

Issue 1430023002: Enable AutoResize for Constrained Web Dialogs for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per erikchen@'s comments. Created 5 years, 1 month 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 e5bf1c25d50a7d97f1b32c42156725e7f5967ae0..8cf1c97cd4780e6157092e0a7c1a5c2d368ce5ff 100644
--- a/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
+++ b/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
@@ -203,8 +203,8 @@ class ReauthDialogDelegate : public UserManager::ReauthDialogObserver,
[[CustomConstrainedWindowSheet alloc]
initWithCustomWindow:[self window]]);
constrained_window_.reset(
- new ConstrainedWindowMac(
- webContentsDelegate_.get(), webContents_, sheet));
+ 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