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

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

Issue 2064233002: MD User Manager: Larger dimensions for the password-separated reauth dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/user_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2fe319ce82c8cdab599107117a3ba1c3b6eb4645..177a6df9f626e4d74a3aa3c6bb674ac1fdbedce4 100644
--- a/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
+++ b/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
@@ -22,6 +22,7 @@
#include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
#include "chrome/browser/ui/user_manager.h"
#include "chrome/grit/chromium_strings.h"
+#include "components/signin/core/common/profile_management_switches.h"
#include "components/web_modal/web_contents_modal_dialog_host.h"
#include "components/web_modal/web_contents_modal_dialog_manager.h"
#include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
@@ -66,8 +67,11 @@ class UserManagerModalHost : public web_modal::WebContentsModalDialogHost {
: host_view_(host_view) {}
gfx::Size GetMaximumDialogSize() override {
- return gfx::Size(
- UserManager::kReauthDialogWidth, UserManager::kReauthDialogHeight);
+ return switches::UsePasswordSeparatedSigninFlow() ?
+ gfx::Size(UserManager::kReauthDialogWidth,
+ UserManager::kReauthDialogHeight) :
+ gfx::Size(UserManager::kPasswordCombinedReauthDialogWidth,
+ UserManager::kPasswordCombinedReauthDialogHeight);
}
~UserManagerModalHost() override {}
« no previous file with comments | « no previous file | chrome/browser/ui/user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698