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

Issue 24647003: Redesign of the avatar menu button. (Closed)

Created:
7 years, 2 months ago by noms (inactive)
Modified:
7 years, 2 months ago
CC:
chromium-reviews, tfarina, dcheng, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Redesign of the avatar menu button. Screenshots: https://drive.google.com/folderview?id=0B1B1Up4p2NRMYm8zRzFhQkpCTUE&usp=sharing This is behind the --new-profile-management flag, and shows the avatar switcher as a menu button in the caption area. The button shows the user's name, rather than an image. There will be an upcoming CL to ensure that the correct button is displayed for Metro (Win8) browsers (this CL would display the Aero button for Win8 as well). BUG=287883 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228293 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229082

Patch Set 1 : . #

Patch Set 2 : fix RTL button #

Total comments: 27

Patch Set 3 : review comments #

Patch Set 4 : rebase #

Patch Set 5 : ++tests #

Patch Set 6 : moar review comments #

Total comments: 2

Patch Set 7 : rebase + correct resource names from trunk #

Patch Set 8 : erg comments + fix glass rtl #

Patch Set 9 : unbork test #

Total comments: 30

Patch Set 10 : reabse #

Patch Set 11 : sky + erg comments #

Patch Set 12 : sky comments #

Patch Set 13 : rebase #

Total comments: 8

Patch Set 14 : sky nits #

Total comments: 4

Patch Set 15 : erg nits #

Patch Set 16 : fix button border code #

Patch Set 17 : fix unit_tests compile #

Patch Set 18 : fix chromeos browser test #

Patch Set 19 : rebase #

Patch Set 20 : fix crash for app/popup browsers #

Patch Set 21 : better fix for app/popup browser crash #

Unified diffs Side-by-side diffs Delta from patch set Stats (+529 lines, -193 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profiles_state.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profiles_state.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +24 lines, -2 lines 0 comments Download
M chrome/browser/ui/view_ids.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/avatar_menu_bubble_view.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/avatar_menu_button_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +6 lines, -83 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +43 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 8 chunks +69 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +33 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_delegate.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +35 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/new_avatar_button.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/new_avatar_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +96 lines, -0 lines 0 comments Download
A + chrome/browser/ui/views/new_avatar_menu_button_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +26 lines, -77 lines 0 comments Download
M chrome/browser/ui/views/profile_chooser_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +3 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/button/text_button.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 42 (0 generated)
noms (inactive)
Hi Scott, Here's a first try at moving the avatar menu button from the status ...
7 years, 2 months ago (2013-09-26 14:42:57 UTC) #1
sky
+erg for opaque_browser_frame_view_layout.h And how about a test in opaque_browser_frame_view_unittest? https://codereview.chromium.org/24647003/diff/6001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view.cc (right): https://codereview.chromium.org/24647003/diff/6001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc#newcode50 ...
7 years, 2 months ago (2013-09-26 20:21:39 UTC) #2
Elliot Glaysher
Tests? Looking this over, I suspect this is all badly busted on Linux. https://codereview.chromium.org/24647003/diff/6001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc File ...
7 years, 2 months ago (2013-09-26 21:05:43 UTC) #3
noms (inactive)
I think I have addressed all but one of the review comments. I've added a ...
7 years, 2 months ago (2013-10-01 17:42:21 UTC) #4
Elliot Glaysher
https://codereview.chromium.org/24647003/diff/6001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc (right): https://codereview.chromium.org/24647003/diff/6001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc#newcode367 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc:367: void OpaqueBrowserFrameViewLayout::LayoutNewStyleAvatar() { On 2013/10/01 17:42:21, Monica Dinculescu wrote: ...
7 years, 2 months ago (2013-10-01 18:12:56 UTC) #5
noms (inactive)
Scott: ping! https://codereview.chromium.org/24647003/diff/6001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc (right): https://codereview.chromium.org/24647003/diff/6001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc#newcode367 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc:367: void OpaqueBrowserFrameViewLayout::LayoutNewStyleAvatar() { After offline conversation, I've ...
7 years, 2 months ago (2013-10-03 19:30:14 UTC) #6
Elliot Glaysher
https://codereview.chromium.org/24647003/diff/81001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc (right): https://codereview.chromium.org/24647003/diff/81001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc#newcode333 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc:333: switches::kNewProfileManagement); Isn't this permanently changing the command line? If ...
7 years, 2 months ago (2013-10-03 21:52:52 UTC) #7
sky
https://codereview.chromium.org/24647003/diff/81001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view.cc (right): https://codereview.chromium.org/24647003/diff/81001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc#newcode129 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc:129: if (browser_view_->IsGuestSession()) { Can this making of profile to ...
7 years, 2 months ago (2013-10-03 23:23:11 UTC) #8
noms (inactive)
https://codereview.chromium.org/24647003/diff/81001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view.cc (right): https://codereview.chromium.org/24647003/diff/81001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc#newcode129 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc:129: if (browser_view_->IsGuestSession()) { On 2013/10/03 23:23:11, sky wrote: > ...
7 years, 2 months ago (2013-10-07 21:18:15 UTC) #9
sky
https://codereview.chromium.org/24647003/diff/81001/chrome/browser/ui/views/frame/browser_non_client_frame_view.h File chrome/browser/ui/views/frame/browser_non_client_frame_view.h (right): https://codereview.chromium.org/24647003/diff/81001/chrome/browser/ui/views/frame/browser_non_client_frame_view.h#newcode38 chrome/browser/ui/views/frame/browser_non_client_frame_view.h:38: NewAvatarButton* new_avatar_button() const { return new_avatar_button_; } On 2013/10/07 ...
7 years, 2 months ago (2013-10-08 01:56:04 UTC) #10
noms (inactive)
Addressed all the comments. Please take a look. https://codereview.chromium.org/24647003/diff/81001/chrome/browser/ui/views/frame/browser_non_client_frame_view.h File chrome/browser/ui/views/frame/browser_non_client_frame_view.h (right): https://codereview.chromium.org/24647003/diff/81001/chrome/browser/ui/views/frame/browser_non_client_frame_view.h#newcode38 chrome/browser/ui/views/frame/browser_non_client_frame_view.h:38: NewAvatarButton* ...
7 years, 2 months ago (2013-10-08 18:21:14 UTC) #11
sky
https://codereview.chromium.org/24647003/diff/150001/chrome/browser/ui/views/new_avatar_button.cc File chrome/browser/ui/views/new_avatar_button.cc (right): https://codereview.chromium.org/24647003/diff/150001/chrome/browser/ui/views/new_avatar_button.cc#newcode23 chrome/browser/ui/views/new_avatar_button.cc:23: class AvatarGlassButtonBorder : public views::TextButtonDefaultBorder { Can you make ...
7 years, 2 months ago (2013-10-08 21:29:25 UTC) #12
noms (inactive)
https://codereview.chromium.org/24647003/diff/150001/chrome/browser/ui/views/new_avatar_button.cc File chrome/browser/ui/views/new_avatar_button.cc (right): https://codereview.chromium.org/24647003/diff/150001/chrome/browser/ui/views/new_avatar_button.cc#newcode23 chrome/browser/ui/views/new_avatar_button.cc:23: class AvatarGlassButtonBorder : public views::TextButtonDefaultBorder { Do you mean ...
7 years, 2 months ago (2013-10-09 15:12:46 UTC) #13
Elliot Glaysher
frame layout lgtm https://codereview.chromium.org/24647003/diff/158001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc (right): https://codereview.chromium.org/24647003/diff/158001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc#newcode371 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc:371: button_x = host->width() - trailing_button_start_ - ...
7 years, 2 months ago (2013-10-09 17:43:50 UTC) #14
noms (inactive)
Elliot, would you mind looking over chrome/browser/profiles/* for an OWNERS stamp as well, please? Thanks! ...
7 years, 2 months ago (2013-10-09 17:50:47 UTC) #15
Elliot Glaysher
lgtm https://codereview.chromium.org/24647003/diff/158001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/24647003/diff/158001/chrome/browser/profiles/profiles_state.cc#newcode72 chrome/browser/profiles/profiles_state.cc:72: size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); nit: this api feels ...
7 years, 2 months ago (2013-10-09 17:56:33 UTC) #16
noms (inactive)
+ oshima for OWNERS stamp on chrome/app/theme/theme_resources.grd https://codereview.chromium.org/24647003/diff/158001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/24647003/diff/158001/chrome/browser/profiles/profiles_state.cc#newcode72 chrome/browser/profiles/profiles_state.cc:72: size_t index ...
7 years, 2 months ago (2013-10-09 18:17:51 UTC) #17
oshima
chrome/app/theme lgtm
7 years, 2 months ago (2013-10-09 18:38:59 UTC) #18
sky
https://codereview.chromium.org/24647003/diff/150001/chrome/browser/ui/views/new_avatar_button.cc File chrome/browser/ui/views/new_avatar_button.cc (right): https://codereview.chromium.org/24647003/diff/150001/chrome/browser/ui/views/new_avatar_button.cc#newcode23 chrome/browser/ui/views/new_avatar_button.cc:23: class AvatarGlassButtonBorder : public views::TextButtonDefaultBorder { I mean rather ...
7 years, 2 months ago (2013-10-09 20:22:48 UTC) #19
noms (inactive)
https://codereview.chromium.org/24647003/diff/150001/chrome/browser/ui/views/new_avatar_button.cc File chrome/browser/ui/views/new_avatar_button.cc (right): https://codereview.chromium.org/24647003/diff/150001/chrome/browser/ui/views/new_avatar_button.cc#newcode23 chrome/browser/ui/views/new_avatar_button.cc:23: class AvatarGlassButtonBorder : public views::TextButtonDefaultBorder { Oh that is ...
7 years, 2 months ago (2013-10-09 21:26:31 UTC) #20
sky
LGTM
7 years, 2 months ago (2013-10-09 21:56:06 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/24647003/167030
7 years, 2 months ago (2013-10-10 01:05:05 UTC) #22
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
7 years, 2 months ago (2013-10-10 01:06:10 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/24647003/167030
7 years, 2 months ago (2013-10-10 01:29:04 UTC) #24
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-10 09:56:47 UTC) #25
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 2 months ago (2013-10-10 13:33:14 UTC) #26
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 2 months ago (2013-10-10 13:34:23 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/24647003/197001
7 years, 2 months ago (2013-10-11 13:36:58 UTC) #28
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=163713
7 years, 2 months ago (2013-10-11 16:36:23 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/24647003/203001
7 years, 2 months ago (2013-10-11 18:06:33 UTC) #30
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-11 18:17:06 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/24647003/203001
7 years, 2 months ago (2013-10-11 20:26:50 UTC) #32
commit-bot: I haz the power
Change committed as 228293
7 years, 2 months ago (2013-10-12 00:46:16 UTC) #33
noms (inactive)
Hi Elliot or Scott, I fixed the crash from crbug.com/307111, which happened because we were ...
7 years, 2 months ago (2013-10-16 17:02:24 UTC) #34
sky
What should I diff between to see the changes?
7 years, 2 months ago (2013-10-16 20:03:54 UTC) #35
noms
I would diff with 19, as that's where I rebased. The tl;dr is that I ...
7 years, 2 months ago (2013-10-16 20:08:05 UTC) #36
Elliot Glaysher
I will opine that you don't need my lgtm since you aren't touching the OBFVL.
7 years, 2 months ago (2013-10-16 20:11:03 UTC) #37
sky
LGTM
7 years, 2 months ago (2013-10-16 22:03:48 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/24647003/266001
7 years, 2 months ago (2013-10-17 01:28:35 UTC) #39
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-17 02:46:54 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/24647003/266001
7 years, 2 months ago (2013-10-17 04:33:08 UTC) #41
commit-bot: I haz the power
7 years, 2 months ago (2013-10-17 08:56:45 UTC) #42
Message was sent while issue was closed.
Change committed as 229082

Powered by Google App Engine
This is Rietveld 408576698