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

Unified Diff: chrome/browser/ui/cocoa/login_prompt_cocoa.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: Rebase. Created 4 years, 10 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/login_prompt_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/login_prompt_cocoa.mm b/chrome/browser/ui/cocoa/login_prompt_cocoa.mm
index 2c24253b334721bc3a2796c18c224ea5a2dd3e6e..4d7278255c858cae23fa9a78dc1f53d7781d9ee2 100644
--- a/chrome/browser/ui/cocoa/login_prompt_cocoa.mm
+++ b/chrome/browser/ui/cocoa/login_prompt_cocoa.mm
@@ -80,8 +80,8 @@ class LoginHandlerMac : public LoginHandler,
base::scoped_nsobject<CustomConstrainedWindowSheet> sheet(
[[CustomConstrainedWindowSheet alloc]
initWithCustomWindow:[sheet_controller_ window]]);
- constrained_window_.reset(new ConstrainedWindowMac(
- this, requesting_contents, sheet));
+ constrained_window_ = CreateAndShowWebModalDialogMac(
+ this, requesting_contents, sheet);
NotifyAuthNeeded();
}
@@ -126,7 +126,7 @@ class LoginHandlerMac : public LoginHandler,
// The Cocoa controller of the GUI.
base::scoped_nsobject<LoginHandlerSheet> sheet_controller_;
- scoped_ptr<ConstrainedWindowMac> constrained_window_;
+ std::unique_ptr<ConstrainedWindowMac> constrained_window_;
DISALLOW_COPY_AND_ASSIGN(LoginHandlerMac);
};

Powered by Google App Engine
This is Rietveld 408576698