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

Issue 287103004: New avatar menu: For supervised users, show "(Supervised)" in the avatar button (Closed)

Created:
6 years, 7 months ago by Marc Treib
Modified:
6 years, 6 months ago
Reviewers:
msw, noms (inactive)
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : New mocks #

Total comments: 4

Patch Set 3 : Review comments #

Patch Set 4 : Add Mac implementation #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -12 lines) Patch
M chrome/app/generated_resources.grd View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm View 1 2 3 5 chunks +23 lines, -9 lines 4 comments Download
M chrome/browser/ui/views/profiles/new_avatar_button.cc View 1 2 3 chunks +10 lines, -3 lines 3 comments Download

Messages

Total messages: 14 (0 generated)
Marc Treib
PTAL! https://codereview.chromium.org/287103004/diff/20001/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/287103004/diff/20001/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode78 chrome/browser/ui/views/profiles/new_avatar_button.cc:78: : MenuButton(listener, GetButtonText(browser->profile()), NULL, true), @noms: Is there ...
6 years, 7 months ago (2014-05-21 16:19:55 UTC) #1
noms (inactive)
lgtm https://codereview.chromium.org/287103004/diff/20001/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/287103004/diff/20001/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode78 chrome/browser/ui/views/profiles/new_avatar_button.cc:78: : MenuButton(listener, GetButtonText(browser->profile()), NULL, true), None that I ...
6 years, 7 months ago (2014-05-21 17:00:57 UTC) #2
msw
https://codereview.chromium.org/287103004/diff/20001/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/287103004/diff/20001/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode64 chrome/browser/ui/views/profiles/new_avatar_button.cc:64: name = label + base::char16(' ') + name; Appending ...
6 years, 7 months ago (2014-05-21 17:20:25 UTC) #3
Marc Treib
https://codereview.chromium.org/287103004/diff/20001/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/287103004/diff/20001/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode64 chrome/browser/ui/views/profiles/new_avatar_button.cc:64: name = label + base::char16(' ') + name; On ...
6 years, 7 months ago (2014-05-26 09:17:52 UTC) #4
Marc Treib
Update: I've added the Mac implementation to the same CL, since it depends on the ...
6 years, 7 months ago (2014-05-26 14:31:00 UTC) #5
msw
https://codereview.chromium.org/287103004/diff/60001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm (right): https://codereview.chromium.org/287103004/diff/60001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode184 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:184: int maxTextWidth = kMaxButtonContentWidth - [[button_ image] size].width; nit: ...
6 years, 7 months ago (2014-05-27 17:16:41 UTC) #6
Marc Treib
https://codereview.chromium.org/287103004/diff/60001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm (right): https://codereview.chromium.org/287103004/diff/60001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode184 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:184: int maxTextWidth = kMaxButtonContentWidth - [[button_ image] size].width; On ...
6 years, 7 months ago (2014-05-28 11:04:04 UTC) #7
noms (inactive)
I think the GetElidedText implementations are different because the Mac/Win code didn't go into the ...
6 years, 6 months ago (2014-05-28 13:49:35 UTC) #8
noms (inactive)
I can shave the yak of consolidating the two functions in profiles_state.cc. There's already GetAvatarNameForProfile, ...
6 years, 6 months ago (2014-05-28 14:32:31 UTC) #9
msw
lgtm https://codereview.chromium.org/287103004/diff/60001/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/287103004/diff/60001/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode59 chrome/browser/ui/views/profiles/new_avatar_button.cc:59: base::string16 GetButtonText(Profile* profile) { On 2014/05/28 11:04:05, treib ...
6 years, 6 months ago (2014-05-28 20:13:23 UTC) #10
Marc Treib
The CQ bit was checked by treib@chromium.org
6 years, 6 months ago (2014-05-29 17:18:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/treib@chromium.org/287103004/60001
6 years, 6 months ago (2014-05-29 17:20:14 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-05-29 18:53:23 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-05-29 22:55:43 UTC) #14
Message was sent while issue was closed.
Change committed as 273640

Powered by Google App Engine
This is Rietveld 408576698