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

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

Issue 2922263002: Fix style of profile error dialog. (Closed)
Patch Set: Self review Created 3 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 | « ui/base/models/dialog_model.h ('k') | ui/views/window/dialog_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a9414fb419fdfd6e68bf511993ba4fda84e86a7d..e83f83c47e05353fcc7ac752fb4a29747c948d3b 100644
--- a/ui/views/window/dialog_client_view.cc
+++ b/ui/views/window/dialog_client_view.cc
@@ -283,12 +283,8 @@ void DialogClientView::UpdateDialogButton(LabelButton** member,
PlatformStyle::kDialogDefaultButtonCanBeCancel);
// The default button is always blue in Harmony.
Peter Kasting 2017/06/05 23:46:11 Nit: Comment is no longer accurate (or necessary)
afakhry 2017/06/05 23:49:00 Done.
- if (is_default && (ui::MaterialDesignController::IsSecondaryUiMaterial() ||
- delegate->ShouldDefaultButtonBeBlue())) {
- button = MdTextButton::CreateSecondaryUiBlueButton(this, title);
- } else {
- button = MdTextButton::CreateSecondaryUiButton(this, title);
- }
+ button = is_default ? MdTextButton::CreateSecondaryUiBlueButton(this, title)
+ : MdTextButton::CreateSecondaryUiButton(this, title);
const int minimum_width = LayoutProvider::Get()->GetDistanceMetric(
views::DISTANCE_DIALOG_BUTTON_MINIMUM_WIDTH);
« no previous file with comments | « ui/base/models/dialog_model.h ('k') | ui/views/window/dialog_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698