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

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

Issue 2785683003: views: implement width snapping for DialogDelegateViews (Closed)
Patch Set: Created 3 years, 9 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/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 eceb8c3a9d981c2f0eb5357a63b9cb8c5ba1f95c..a75685b9844d428c7a2626856a5503197c738cb4 100644
--- a/chrome/browser/ui/views/profiles/user_manager_view.cc
+++ b/chrome/browser/ui/views/profiles/user_manager_view.cc
@@ -72,7 +72,7 @@ UserManagerProfileDialogDelegate::UserManagerProfileDialogDelegate(
UserManagerProfileDialogDelegate::~UserManagerProfileDialogDelegate() {}
-gfx::Size UserManagerProfileDialogDelegate::GetPreferredSize() const {
+gfx::Size UserManagerProfileDialogDelegate::GetUnsnappedPreferredSize() const {
return switches::UsePasswordSeparatedSigninFlow()
Peter Kasting 2017/03/30 00:35:35 The cases in this file really should also have bug
? gfx::Size(UserManagerProfileDialog::kDialogWidth,
UserManagerProfileDialog::kDialogHeight)
@@ -407,7 +407,7 @@ bool UserManagerView::AcceleratorPressed(const ui::Accelerator& accelerator) {
return true;
}
-gfx::Size UserManagerView::GetPreferredSize() const {
+gfx::Size UserManagerView::GetUnsnappedPreferredSize() const {
return gfx::Size(UserManager::kWindowWidth, UserManager::kWindowHeight);
}

Powered by Google App Engine
This is Rietveld 408576698