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

Issue 2023093002: Reflow of the profile items in desktop user menu (Closed)

Created:
4 years, 6 months ago by Jane
Modified:
4 years, 5 months ago
CC:
chromium-reviews, tfarina, anthonyvd
Base URL:
https://chromium.googlesource.com/chromium/src.git@move-profile-icon
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reflow of the profile items in desktop user menu. Specifically: 1. Moved and resized the avatar icon as well as icon badges 1. Moved avatar name up to be on the right of the profile icon 2. Moved username and "Your accounts" link up and below the avatar name 3. Other dimension and padding changes See design doc here ("Reflow the items in the first section"): https://docs.google.com/document/d/17yHrKd_EU6WoIAgljnZmNCSJLRlbM3O2Pxr7aPEnqik/edit?ts=57445a70#heading=h.6xesoh23gozz See redlines here: https://folio.googleplex.com/chrome-ux-specs-and-sources/Chrome%20Desktop%20Sign%20In/user_menu# See screenshots here (marked with "3.*"): https://drive.google.com/corp/drive/folders/0B7Fvv7JszRyGY2NrSEhheHptdG8 Downstream CL: https://codereview.chromium.org/2052473003/ BUG=615893 Committed: https://crrev.com/f9860fa8491d8f794cfeaa0f05d7240d3d89357e Cr-Commit-Position: refs/heads/master@{#403190}

Patch Set 1 #

Patch Set 2 : Added flags #

Patch Set 3 : Consolidated with upstream CL #

Total comments: 7

Patch Set 4 : Addressed comments #

Total comments: 12

Patch Set 5 : Addressed formatting & naming comments #

Total comments: 18

Patch Set 6 : Rebased and addressed comments #

Total comments: 2

Patch Set 7 : Moved variables #

Patch Set 8 : Box layout #

Total comments: 48

Patch Set 9 : More comments #

Patch Set 10 : More comments x 2 #

Total comments: 2

Patch Set 11 : Clean up layout (and rebased) #

Total comments: 22

Patch Set 12 : More comments #

Patch Set 13 : More comments x 2 #

Total comments: 8

Patch Set 14 : Clean up profile badge #

Total comments: 11

Patch Set 15 : Some cleanup #

Total comments: 3

Patch Set 16 : Profile badge clipping and color fixes #

Patch Set 17 : Rebased and few changes in PaintChildren of EditableProfilePhoto #

Patch Set 18 : Removed redundancy #

Total comments: 8

Patch Set 19 : Minor comments #

Total comments: 4

Patch Set 20 : Final nits #

Patch Set 21 : Test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -134 lines) Patch
M chrome/browser/ui/views/profiles/profile_chooser_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 28 chunks +275 lines, -130 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 74 (26 generated)
Jane
https://codereview.chromium.org/2023093002/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode86 chrome/browser/ui/views/profiles/profile_chooser_view.cc:86: const int kFixedMenuWidth = 240; I couldn't figure out ...
4 years, 6 months ago (2016-06-06 16:56:46 UTC) #6
Roger Tawa OOO till Jul 10th
lgtm Thanks for uploading the screenshots. https://codereview.chromium.org/2023093002/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode86 chrome/browser/ui/views/profiles/profile_chooser_view.cc:86: const int kFixedMenuWidth ...
4 years, 6 months ago (2016-06-07 14:20:48 UTC) #7
Jane
https://codereview.chromium.org/2023093002/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode86 chrome/browser/ui/views/profiles/profile_chooser_view.cc:86: const int kFixedMenuWidth = 240; On 2016/06/07 14:20:48, Roger ...
4 years, 6 months ago (2016-06-07 17:32:45 UTC) #10
sky
+estade for ui/views/layout/layout_constants.h https://codereview.chromium.org/2023093002/diff/60001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/60001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode315 chrome/browser/ui/views/profiles/profile_chooser_view.cc:315: const int kIconImageSide = switches::IsMaterialDesignUserMenu() Don't ...
4 years, 6 months ago (2016-06-07 17:50:29 UTC) #12
Jane
https://codereview.chromium.org/2023093002/diff/60001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/60001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode315 chrome/browser/ui/views/profiles/profile_chooser_view.cc:315: const int kIconImageSide = switches::IsMaterialDesignUserMenu() On 2016/06/07 17:50:29, sky ...
4 years, 6 months ago (2016-06-07 18:37:37 UTC) #15
sky
LGTM - but wait for Evan
4 years, 6 months ago (2016-06-07 19:57:49 UTC) #16
Evan Stade
there are an alarming number of hardcoded constants in this file https://codereview.chromium.org/2023093002/diff/120001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): ...
4 years, 6 months ago (2016-06-10 17:39:47 UTC) #17
Jane
Thanks! https://codereview.chromium.org/2023093002/diff/120001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/120001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode107 chrome/browser/ui/views/profiles/profile_chooser_view.cc:107: views::GridLayout* CreateSingleColumnLayout(views::View* view, int width) { On 2016/06/10 ...
4 years, 6 months ago (2016-06-10 18:49:16 UTC) #19
Jane
On 2016/06/10 17:39:47, Evan Stade wrote: > there are an alarming number of hardcoded constants ...
4 years, 6 months ago (2016-06-10 18:54:04 UTC) #20
Evan Stade
> I forgot to ask - can you be more specific on which hardcoded constants ...
4 years, 6 months ago (2016-06-10 19:53:35 UTC) #21
Jane
On 2016/06/10 19:53:35, Evan Stade wrote: > > I forgot to ask - can you ...
4 years, 6 months ago (2016-06-10 21:09:26 UTC) #22
Jane
https://codereview.chromium.org/2023093002/diff/120001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/120001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode107 chrome/browser/ui/views/profiles/profile_chooser_view.cc:107: views::GridLayout* CreateSingleColumnLayout(views::View* view, int width) { On 2016/06/10 19:53:34, ...
4 years, 6 months ago (2016-06-10 21:09:43 UTC) #23
Evan Stade
> Your explanation on keeping constants organized makes sense, and I did try to > ...
4 years, 6 months ago (2016-06-13 16:36:02 UTC) #24
Jane
On 2016/06/13 16:36:02, Evan Stade wrote: > > Your explanation on keeping constants organized makes ...
4 years, 6 months ago (2016-06-13 20:42:45 UTC) #25
Jane
> I understand the reason so many new ones are being added. I don't believe ...
4 years, 6 months ago (2016-06-13 20:46:05 UTC) #26
Evan Stade
https://codereview.chromium.org/2023093002/diff/180001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/180001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode95 chrome/browser/ui/views/profiles/profile_chooser_view.cc:95: const int kProfileHorizontalSpacing = 16; pretty sure you should ...
4 years, 6 months ago (2016-06-13 23:14:41 UTC) #27
Jane
https://codereview.chromium.org/2023093002/diff/180001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/180001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode95 chrome/browser/ui/views/profiles/profile_chooser_view.cc:95: const int kProfileHorizontalSpacing = 16; On 2016/06/13 23:14:41, Evan ...
4 years, 6 months ago (2016-06-14 14:47:21 UTC) #29
Evan Stade
https://codereview.chromium.org/2023093002/diff/180001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/180001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode425 chrome/browser/ui/views/profiles/profile_chooser_view.cc:425: label_->SetBorder(views::Border::CreateEmptyBorder(2, 0, 2, 0)); On 2016/06/14 14:47:21, Jane wrote: ...
4 years, 6 months ago (2016-06-14 15:16:26 UTC) #30
Jane
Thanks again for the elaborate comments! I should point out that the only way I ...
4 years, 6 months ago (2016-06-14 21:39:57 UTC) #32
Roger Tawa OOO till Jul 10th
Jane: you can assign any bugs you are working to me. Thanks, Roger On Jun ...
4 years, 6 months ago (2016-06-15 12:46:25 UTC) #33
Evan Stade
https://codereview.chromium.org/2023093002/diff/180001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/180001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1504 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1504: int column_width = On 2016/06/14 21:39:57, Jane wrote: > ...
4 years, 6 months ago (2016-06-16 21:56:34 UTC) #34
Jane
https://codereview.chromium.org/2023093002/diff/180001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/180001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1504 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1504: int column_width = On 2016/06/16 21:56:34, Evan Stade wrote: ...
4 years, 6 months ago (2016-06-17 19:52:23 UTC) #36
Evan Stade
sorry, only had time for an incomplete review. Hopefully this is enough for now for ...
4 years, 6 months ago (2016-06-20 17:51:12 UTC) #37
Jane
Thanks! https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode92 chrome/browser/ui/views/profiles/profile_chooser_view.cc:92: const int kMediumImageSide = 40; On 2016/06/20 17:51:11, ...
4 years, 6 months ago (2016-06-20 18:53:26 UTC) #38
Evan Stade
https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode364 chrome/browser/ui/views/profiles/profile_chooser_view.cc:364: views::LabelButton::OnPaint(canvas); canvas->Save(); // current fn body canvas->Restore(); if (browser_->profile()->IsSupervised()) ...
4 years, 6 months ago (2016-06-21 21:55:16 UTC) #39
Jane
https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode364 chrome/browser/ui/views/profiles/profile_chooser_view.cc:364: views::LabelButton::OnPaint(canvas); On 2016/06/21 21:55:16, Evan Stade wrote: > canvas->Save(); ...
4 years, 6 months ago (2016-06-22 15:38:33 UTC) #41
Evan Stade
https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode364 chrome/browser/ui/views/profiles/profile_chooser_view.cc:364: views::LabelButton::OnPaint(canvas); On 2016/06/22 15:38:33, Jane wrote: > On 2016/06/21 ...
4 years, 6 months ago (2016-06-22 17:15:44 UTC) #42
Jane
https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode364 chrome/browser/ui/views/profiles/profile_chooser_view.cc:364: views::LabelButton::OnPaint(canvas); On 2016/06/22 17:15:43, Evan Stade wrote: > On ...
4 years, 6 months ago (2016-06-22 22:02:32 UTC) #44
Evan Stade
https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode364 chrome/browser/ui/views/profiles/profile_chooser_view.cc:364: views::LabelButton::OnPaint(canvas); On 2016/06/22 22:02:32, Jane wrote: > On 2016/06/22 ...
4 years, 6 months ago (2016-06-24 18:25:26 UTC) #45
Jane
Thanks! https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/300001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode364 chrome/browser/ui/views/profiles/profile_chooser_view.cc:364: views::LabelButton::OnPaint(canvas); On 2016/06/24 18:25:26, Evan Stade wrote: > ...
4 years, 5 months ago (2016-06-27 18:08:57 UTC) #47
Evan Stade
https://codereview.chromium.org/2023093002/diff/400001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/400001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode409 chrome/browser/ui/views/profiles/profile_chooser_view.cc:409: canvas->DrawCircle(center_point, On 2016/06/27 18:08:56, Jane wrote: > On 2016/06/24 ...
4 years, 5 months ago (2016-06-28 03:02:50 UTC) #48
Jane
Thanks! https://codereview.chromium.org/2023093002/diff/400001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/400001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode409 chrome/browser/ui/views/profiles/profile_chooser_view.cc:409: canvas->DrawCircle(center_point, On 2016/06/28 03:02:49, Evan Stade wrote: > ...
4 years, 5 months ago (2016-06-28 14:59:22 UTC) #50
Jane
https://codereview.chromium.org/2023093002/diff/400001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/400001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode417 chrome/browser/ui/views/profiles/profile_chooser_view.cc:417: SkColorSetRGB(0, 0x66, 0xff)); On 2016/06/28 14:59:22, Jane wrote: > ...
4 years, 5 months ago (2016-06-28 15:33:11 UTC) #52
Evan Stade
https://codereview.chromium.org/2023093002/diff/400001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/400001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode409 chrome/browser/ui/views/profiles/profile_chooser_view.cc:409: canvas->DrawCircle(center_point, On 2016/06/28 14:59:22, Jane wrote: > On 2016/06/28 ...
4 years, 5 months ago (2016-06-28 23:32:09 UTC) #53
Jane
Thanks! https://codereview.chromium.org/2023093002/diff/400001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/400001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode409 chrome/browser/ui/views/profiles/profile_chooser_view.cc:409: canvas->DrawCircle(center_point, On 2016/06/28 23:32:09, Evan Stade wrote: > ...
4 years, 5 months ago (2016-06-29 15:39:36 UTC) #54
Evan Stade
On 2016/06/29 15:39:36, Jane wrote: > Thanks! > > https://codereview.chromium.org/2023093002/diff/400001/chrome/browser/ui/views/profiles/profile_chooser_view.cc > File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): > ...
4 years, 5 months ago (2016-06-29 22:28:32 UTC) #55
Jane
Point taken. The background would not be drawn for the profile badge in the new ...
4 years, 5 months ago (2016-06-30 02:50:58 UTC) #56
Evan Stade
thanks for bearing with this review. Mostly LG with a few minor changes left. https://codereview.chromium.org/2023093002/diff/540001/chrome/browser/ui/views/profiles/profile_chooser_view.cc ...
4 years, 5 months ago (2016-06-30 13:32:39 UTC) #57
Jane
Thanks! https://codereview.chromium.org/2023093002/diff/540001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/540001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode392 chrome/browser/ui/views/profiles/profile_chooser_view.cc:392: // them are ready, which be inverted as ...
4 years, 5 months ago (2016-06-30 14:06:30 UTC) #58
Evan Stade
https://codereview.chromium.org/2023093002/diff/560001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/560001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode441 chrome/browser/ui/views/profiles/profile_chooser_view.cc:441: static int badge_spacing() { can you document the meaning ...
4 years, 5 months ago (2016-06-30 14:36:45 UTC) #59
Evan Stade
with those nits, lgtm
4 years, 5 months ago (2016-06-30 14:37:00 UTC) #60
Jane
https://codereview.chromium.org/2023093002/diff/560001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2023093002/diff/560001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode441 chrome/browser/ui/views/profiles/profile_chooser_view.cc:441: static int badge_spacing() { On 2016/06/30 14:36:45, Evan Stade ...
4 years, 5 months ago (2016-06-30 14:47:34 UTC) #61
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/2023093002/580001
4 years, 5 months ago (2016-06-30 14:53:39 UTC) #64
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/118536)
4 years, 5 months ago (2016-06-30 15:07:20 UTC) #66
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/2023093002/600001
4 years, 5 months ago (2016-06-30 15:46:27 UTC) #69
commit-bot: I haz the power
Committed patchset #21 (id:600001)
4 years, 5 months ago (2016-06-30 16:15:49 UTC) #71
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 16:15:56 UTC) #72
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 16:17:40 UTC) #74
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/f9860fa8491d8f794cfeaa0f05d7240d3d89357e
Cr-Commit-Position: refs/heads/master@{#403190}

Powered by Google App Engine
This is Rietveld 408576698