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

Issue 2922263002: Fix style of profile error dialog. (Closed)

Created:
3 years, 6 months ago by afakhry
Modified:
3 years, 6 months ago
Reviewers:
tapted, Peter Kasting, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix style of profile error dialog. Profile error dialog should show a blue button to match a material design look. BUG=729749 Review-Url: https://codereview.chromium.org/2922263002 Cr-Commit-Position: refs/heads/master@{#478352} Committed: https://chromium.googlesource.com/chromium/src/+/bfb873220a103ccee2cd0480782a7a238c55c95d

Patch Set 1 #

Patch Set 2 : Remove ShouldDefaultButtonBeBlue() #

Total comments: 1

Patch Set 3 : Self review #

Total comments: 2

Patch Set 4 : nit #

Total comments: 2

Patch Set 5 : Try to fix test on Mac #

Patch Set 6 : Fix test on Mac 2 #

Patch Set 7 : Avoid duplication #

Total comments: 8

Patch Set 8 : tapted's and pkasting's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -67 lines) Patch
M chrome/browser/ui/views/autofill/card_unmask_prompt_views.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/autofill/save_card_bubble_views.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/save_card_bubble_views.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/chrome_cleaner_dialog_win.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/chrome_cleaner_dialog_win.cc View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/global_error_bubble_view.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/global_error_bubble_view.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/ime/ime_warning_bubble_view.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/ime/ime_warning_bubble_view.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/passwords/account_chooser_dialog_view.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/passwords/account_chooser_dialog_view.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/settings_reset_prompt_dialog.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/settings_reset_prompt_dialog.cc View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M ui/base/models/dialog_model.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M ui/views/controls/button/md_text_button.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -3 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 1 chunk +2 lines, -7 lines 0 comments Download
M ui/views/window/dialog_delegate.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/window/dialog_delegate.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 46 (18 generated)
afakhry
pkasting, please take a look. Thank you!
3 years, 6 months ago (2017-06-05 22:23:08 UTC) #2
Peter Kasting
Apparently this is already fixed in Harmony: https://cs.chromium.org/chromium/src/ui/views/window/dialog_client_view.cc?l=286 So you can do one of a ...
3 years, 6 months ago (2017-06-05 22:28:09 UTC) #3
afakhry
On 2017/06/05 22:28:09, Peter Kasting wrote: > Apparently this is already fixed in Harmony: > ...
3 years, 6 months ago (2017-06-05 23:20:49 UTC) #4
Peter Kasting
On 2017/06/05 23:20:49, afakhry wrote: > Ah I see. I'm with removing ShouldDefaultButtonBeBlue() entirely. But ...
3 years, 6 months ago (2017-06-05 23:24:11 UTC) #5
afakhry
On 2017/06/05 23:24:11, Peter Kasting wrote: > On 2017/06/05 23:20:49, afakhry wrote: > > Ah ...
3 years, 6 months ago (2017-06-05 23:34:20 UTC) #6
afakhry
https://codereview.chromium.org/2922263002/diff/20001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2922263002/diff/20001/ui/views/window/dialog_client_view.cc#newcode288 ui/views/window/dialog_client_view.cc:288: : button = MdTextButton::CreateSecondaryUiButton(this, title); Oops .. fixed this.
3 years, 6 months ago (2017-06-05 23:45:30 UTC) #10
Peter Kasting
LGTM https://codereview.chromium.org/2922263002/diff/40001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2922263002/diff/40001/ui/views/window/dialog_client_view.cc#newcode285 ui/views/window/dialog_client_view.cc:285: // The default button is always blue in ...
3 years, 6 months ago (2017-06-05 23:46:12 UTC) #12
afakhry
sky@chromium.org: Please review changes in ui/. Thanks! https://codereview.chromium.org/2922263002/diff/40001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2922263002/diff/40001/ui/views/window/dialog_client_view.cc#newcode285 ui/views/window/dialog_client_view.cc:285: // The ...
3 years, 6 months ago (2017-06-05 23:49:00 UTC) #14
sky
LGTM https://codereview.chromium.org/2922263002/diff/60001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (left): https://codereview.chromium.org/2922263002/diff/60001/ui/views/window/dialog_client_view.cc#oldcode286 ui/views/window/dialog_client_view.cc:286: if (is_default && (ui::MaterialDesignController::IsSecondaryUiMaterial() || I'm assuming we ...
3 years, 6 months ago (2017-06-06 00:00:49 UTC) #15
afakhry
https://codereview.chromium.org/2922263002/diff/60001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (left): https://codereview.chromium.org/2922263002/diff/60001/ui/views/window/dialog_client_view.cc#oldcode286 ui/views/window/dialog_client_view.cc:286: if (is_default && (ui::MaterialDesignController::IsSecondaryUiMaterial() || On 2017/06/06 00:00:49, sky ...
3 years, 6 months ago (2017-06-06 00:20:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2922263002/60001
3 years, 6 months ago (2017-06-06 00:34:04 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/470452)
3 years, 6 months ago (2017-06-06 01:26:47 UTC) #21
afakhry
+tapted@, for some reason, this change results in the test DialogClientViewTest.UpdateButtons failing on Mac at ...
3 years, 6 months ago (2017-06-06 15:48:31 UTC) #23
Peter Kasting
On 2017/06/06 15:48:31, afakhry wrote: > The height of the client bounds seems to decrease ...
3 years, 6 months ago (2017-06-06 18:33:01 UTC) #24
tapted
On 2017/06/06 18:33:01, Peter Kasting wrote: > On 2017/06/06 15:48:31, afakhry wrote: > > The ...
3 years, 6 months ago (2017-06-07 01:18:49 UTC) #25
Peter Kasting
On 2017/06/07 01:18:49, tapted wrote: > On 2017/06/06 18:33:01, Peter Kasting wrote: > > On ...
3 years, 6 months ago (2017-06-07 01:30:43 UTC) #26
tapted
On 2017/06/07 01:30:43, Peter Kasting wrote: > On 2017/06/07 01:18:49, tapted wrote: > > On ...
3 years, 6 months ago (2017-06-07 01:39:51 UTC) #27
Peter Kasting
On 2017/06/07 01:39:51, tapted wrote: > On 2017/06/07 01:30:43, Peter Kasting wrote: > > On ...
3 years, 6 months ago (2017-06-07 01:44:49 UTC) #28
tapted
On 2017/06/07 01:44:49, Peter Kasting wrote: > On 2017/06/07 01:39:51, tapted wrote: > > On ...
3 years, 6 months ago (2017-06-07 01:55:53 UTC) #29
Peter Kasting
On 2017/06/07 01:55:53, tapted wrote: > On 2017/06/07 01:44:49, Peter Kasting wrote: > > On ...
3 years, 6 months ago (2017-06-07 01:59:16 UTC) #30
tapted
On 2017/06/07 01:59:16, Peter Kasting wrote: > On 2017/06/07 01:55:53, tapted wrote: > > On ...
3 years, 6 months ago (2017-06-07 02:45:33 UTC) #31
Peter Kasting
On 2017/06/07 02:45:33, tapted wrote: > Although, if my reasoning is sound, it could leave ...
3 years, 6 months ago (2017-06-07 02:49:32 UTC) #32
afakhry
Hi tapted and pkasting, Thank you both for your suggestions. The suggested solution seems to ...
3 years, 6 months ago (2017-06-08 17:28:25 UTC) #37
tapted
https://codereview.chromium.org/2922263002/diff/120001/ui/views/controls/button/md_text_button.cc File ui/views/controls/button/md_text_button.cc (right): https://codereview.chromium.org/2922263002/diff/120001/ui/views/controls/button/md_text_button.cc#newcode36 ui/views/controls/button/md_text_button.cc:36: #endif // !defined(OS_MACOSX) I try to avoid #ifdefs intertwining ...
3 years, 6 months ago (2017-06-09 01:43:48 UTC) #38
Peter Kasting
LGTM with Trent's comments (naming tweak suggested below). https://codereview.chromium.org/2922263002/diff/120001/ui/views/controls/button/md_text_button.cc File ui/views/controls/button/md_text_button.cc (right): https://codereview.chromium.org/2922263002/diff/120001/ui/views/controls/button/md_text_button.cc#newcode36 ui/views/controls/button/md_text_button.cc:36: #endif ...
3 years, 6 months ago (2017-06-09 02:21:47 UTC) #39
afakhry
https://codereview.chromium.org/2922263002/diff/120001/ui/views/controls/button/md_text_button.cc File ui/views/controls/button/md_text_button.cc (right): https://codereview.chromium.org/2922263002/diff/120001/ui/views/controls/button/md_text_button.cc#newcode36 ui/views/controls/button/md_text_button.cc:36: #endif // !defined(OS_MACOSX) On 2017/06/09 01:43:48, tapted wrote: > ...
3 years, 6 months ago (2017-06-09 17:32:11 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2922263002/140001
3 years, 6 months ago (2017-06-09 17:33:43 UTC) #43
commit-bot: I haz the power
3 years, 6 months ago (2017-06-09 18:48:23 UTC) #46
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/bfb873220a103ccee2cd0480782a...

Powered by Google App Engine
This is Rietveld 408576698