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

Issue 15932008: Add managed user avatar menu for mac. (Closed)

Created:
7 years, 7 months ago by Adrian Kuegel
Modified:
7 years, 6 months ago
Reviewers:
Robert Sesek, sail
CC:
chromium-reviews, pam+watch_chromium.org, sail+watch_chromium.org
Visibility:
Public.

Description

Add managed user avatar menu (cocoa). The mocks for this can be found at the beginning of the bug description. Please look at the screenshots at the end of the bug description. The colors do not correspond to the mocks yet, they will be added as a theme. BUG=241387 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204934

Patch Set 1 : First step. #

Patch Set 2 : Add avatar label and fix compile errors. #

Patch Set 3 : Fix bugs and add theme support. #

Patch Set 4 : Rebase to ToT. #

Total comments: 3

Patch Set 5 : Remove ifdef. #

Patch Set 6 : Address review comments. #

Total comments: 25

Patch Set 7 : Address review comments. #

Total comments: 4

Patch Set 8 : Use container for avatar button and avatar label. #

Total comments: 3

Patch Set 9 : Add unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -94 lines) Patch
M chrome/browser/ui/cocoa/browser/avatar_button_controller.h View 1 2 3 4 5 6 7 4 chunks +20 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/avatar_button_controller.mm View 1 2 3 4 5 6 7 9 chunks +83 lines, -27 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm View 1 2 3 4 5 6 7 8 4 chunks +25 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.mm View 1 2 3 4 5 6 7 5 chunks +195 lines, -58 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
Adrian Kuegel
Sailesh, can you please review this CL? Btw, the compile error of the tryjob is ...
7 years, 6 months ago (2013-05-31 17:11:40 UTC) #1
sail
https://codereview.chromium.org/15932008/diff/24035/chrome/browser/ui/cocoa/browser_window_controller.mm File chrome/browser/ui/cocoa/browser_window_controller.mm (right): https://codereview.chromium.org/15932008/diff/24035/chrome/browser/ui/cocoa/browser_window_controller.mm#newcode84 chrome/browser/ui/cocoa/browser_window_controller.mm:84: #if defined(ENABLE_MANAGED_USERS) Can we get rid of this ifdef ...
7 years, 6 months ago (2013-05-31 17:25:11 UTC) #2
Adrian Kuegel
https://codereview.chromium.org/15932008/diff/24035/chrome/browser/ui/cocoa/browser_window_controller.mm File chrome/browser/ui/cocoa/browser_window_controller.mm (right): https://codereview.chromium.org/15932008/diff/24035/chrome/browser/ui/cocoa/browser_window_controller.mm#newcode84 chrome/browser/ui/cocoa/browser_window_controller.mm:84: #if defined(ENABLE_MANAGED_USERS) Yes. I removed it, and it looks ...
7 years, 6 months ago (2013-05-31 20:28:16 UTC) #3
sail
https://codereview.chromium.org/15932008/diff/24035/chrome/browser/ui/cocoa/browser_window_controller.mm File chrome/browser/ui/cocoa/browser_window_controller.mm (right): https://codereview.chromium.org/15932008/diff/24035/chrome/browser/ui/cocoa/browser_window_controller.mm#newcode84 chrome/browser/ui/cocoa/browser_window_controller.mm:84: #if defined(ENABLE_MANAGED_USERS) On 2013/05/31 20:28:16, Adrian Kuegel wrote: > ...
7 years, 6 months ago (2013-05-31 20:41:44 UTC) #4
Adrian Kuegel
It cannot be killed so fast, since it is used in many places. But it ...
7 years, 6 months ago (2013-05-31 20:48:12 UTC) #5
Adrian Kuegel
As you have probably seen, I have started removing those ifdefs in another CL. Since ...
7 years, 6 months ago (2013-06-03 16:18:32 UTC) #6
Robert Sesek
Some high-level comments: * I think it'd be better to encapsulate AvatarLabelController in AvatarButtonController. BrowserWindowController ...
7 years, 6 months ago (2013-06-03 19:10:57 UTC) #7
Adrian Kuegel
@Robert: Thanks for your review. Sorry for not including you as a reviewer. I asked ...
7 years, 6 months ago (2013-06-04 15:49:14 UTC) #8
Robert Sesek
On 2013/06/04 15:49:14, Adrian Kuegel wrote: > @Robert: Thanks for your review. Sorry for not ...
7 years, 6 months ago (2013-06-04 20:59:09 UTC) #9
Adrian Kuegel
Yes, I forgot to change the font for the managed user info in the avatar ...
7 years, 6 months ago (2013-06-05 16:01:38 UTC) #10
Robert Sesek
This looks pretty good. I'd like to see screenshots again, though. I'm also OOO tomorrow, ...
7 years, 6 months ago (2013-06-05 20:59:17 UTC) #11
Adrian Kuegel
I uploaded new screenshots to the bug description. Please take another look. I will add ...
7 years, 6 months ago (2013-06-07 15:31:26 UTC) #12
Robert Sesek
Nice work! Just needs a test now. https://codereview.chromium.org/15932008/diff/75002/chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm File chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm (right): https://codereview.chromium.org/15932008/diff/75002/chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm#newcode78 chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm:78: } Can ...
7 years, 6 months ago (2013-06-07 16:06:15 UTC) #13
Adrian Kuegel
https://codereview.chromium.org/15932008/diff/75002/chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm File chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm (right): https://codereview.chromium.org/15932008/diff/75002/chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm#newcode78 chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm:78: } On 2013/06/07 16:06:15, rsesek wrote: > Can you ...
7 years, 6 months ago (2013-06-07 16:14:09 UTC) #14
Adrian Kuegel
https://codereview.chromium.org/15932008/diff/75002/chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm File chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm (right): https://codereview.chromium.org/15932008/diff/75002/chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm#newcode78 chrome/browser/ui/cocoa/browser/avatar_button_controller_unittest.mm:78: } On 2013/06/07 16:14:10, Adrian Kuegel wrote: > On ...
7 years, 6 months ago (2013-06-07 16:49:56 UTC) #15
Robert Sesek
LGTM
7 years, 6 months ago (2013-06-07 17:07:00 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akuegel@chromium.org/15932008/32011
7 years, 6 months ago (2013-06-07 17:10:05 UTC) #17
commit-bot: I haz the power
7 years, 6 months ago (2013-06-07 21:24:32 UTC) #18
Message was sent while issue was closed.
Change committed as 204934

Powered by Google App Engine
This is Rietveld 408576698