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

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

Issue 1446623003: [Reland] Enable AutoResize for Constrained Web Dialogs for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix browser tests. Created 4 years, 11 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..33425495410ee3c235462095a8f4668e5d2bc519 100644
--- a/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
+++ b/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
@@ -204,8 +204,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