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

Unified Diff: ui/views/window/dialog_client_view.cc

Issue 14646037: Enable the new dialog style by default; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix LabelButton preferred size calculations; stack overflow for STYLE_BUTTON. Created 7 years, 7 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: ui/views/window/dialog_client_view.cc
diff --git a/ui/views/window/dialog_client_view.cc b/ui/views/window/dialog_client_view.cc
index 72f550eb946a42fcff299ff472a7858967aa6af7..ef10fc4a4529e79c0c438c63df713c387b516218 100644
--- a/ui/views/window/dialog_client_view.cc
+++ b/ui/views/window/dialog_client_view.cc
@@ -146,11 +146,6 @@ const DialogClientView* DialogClientView::AsDialogClientView() const {
void DialogClientView::OnWillChangeFocus(View* focused_before,
View* focused_now) {
- // New style dialogs do not move the default button with the focus.
- // TODO(msw|wittman): Remove this functionality once the new style has landed.
- if (DialogDelegate::UseNewStyle())
- return;
-
// Make the newly focused button default or restore the dialog's default.
const int default_button = GetDialogDelegate()->GetDefaultDialogButton();
LabelButton* new_default_button = NULL;
« ui/views/controls/button/label_button.cc ('K') | « ui/views/controls/button/label_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698