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

Unified Diff: chrome/browser/ui/views/profiles/user_manager_view.cc

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 | « chrome/browser/ui/user_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/user_manager_view.cc
diff --git a/chrome/browser/ui/views/profiles/user_manager_view.cc b/chrome/browser/ui/views/profiles/user_manager_view.cc
index 662cc005de82aab07a34a0a134275a834c54c7ce..a494f6f1e348695c9cb3327ad4bf6bb88048b8f1 100644
--- a/chrome/browser/ui/views/profiles/user_manager_view.cc
+++ b/chrome/browser/ui/views/profiles/user_manager_view.cc
@@ -25,6 +25,7 @@
#include "chrome/grit/chromium_strings.h"
#include "chrome/grit/generated_resources.h"
#include "components/guest_view/browser/guest_view_manager.h"
+#include "components/signin/core/common/profile_management_switches.h"
#include "content/public/browser/navigation_details.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
@@ -85,8 +86,11 @@ ReauthDelegate::ReauthDelegate(UserManagerView* parent,
ReauthDelegate::~ReauthDelegate() {}
gfx::Size ReauthDelegate::GetPreferredSize() const {
- return gfx::Size(UserManager::kReauthDialogWidth,
- UserManager::kReauthDialogHeight);
+ return switches::UsePasswordSeparatedSigninFlow() ?
+ gfx::Size(UserManager::kReauthDialogWidth,
+ UserManager::kReauthDialogHeight) :
+ gfx::Size(UserManager::kPasswordCombinedReauthDialogWidth,
+ UserManager::kPasswordCombinedReauthDialogHeight);
}
bool ReauthDelegate::CanResize() const {
« no previous file with comments | « chrome/browser/ui/user_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698