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

Issue 605803002: [Mac] Redesign the new avatar button. (Closed)

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

Description

[Mac] Redesign the new avatar button. Screenshots: https://drive.google.com/open?id=0B1B1Up4p2NRMRXpYbGJ6emtlX0U&authuser=1 TL; DR: - never show a drop down arrow in the button. - this means that we no longer need to do the auth error drawing magic, as we can use the button's image. Also cleaned up ALL of that insane code. - if there is one local, non-signed in profile, show a tiny button with a generic avatar - in all other cases, show the avatar button with the profile name - increased the button height by 1px so that it's perfectly aligned with the new tab button BUG=410946 Committed: https://crrev.com/c86c1fcf7beec49a7b362208da99904e5aee13fd Cr-Commit-Position: refs/heads/master@{#297255}

Patch Set 1 : #

Total comments: 12

Patch Set 2 : review + added a test #

Patch Set 3 : add a \n. >.< #

Total comments: 17

Patch Set 4 : rachel comments #

Messages

Total messages: 18 (6 generated)
noms (inactive)
Soooo I think I made moar better all the weird padding code by accident! YAY! ...
6 years, 2 months ago (2014-09-25 21:06:00 UTC) #5
groby-ooo-7-16
https://codereview.chromium.org/605803002/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/605803002/diff/60001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode164 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:164: [cell setHasError:hasError_ withTitle:[button_ title]]; 1) Isn't [button title] empty ...
6 years, 2 months ago (2014-09-25 22:03:30 UTC) #6
noms (inactive)
https://codereview.chromium.org/605803002/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/605803002/diff/60001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode164 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:164: [cell setHasError:hasError_ withTitle:[button_ title]]; On 2014/09/25 22:03:30, groby wrote: ...
6 years, 2 months ago (2014-09-26 15:49:11 UTC) #7
noms (inactive)
ping :)
6 years, 2 months ago (2014-09-29 13:55:12 UTC) #8
groby-ooo-7-16
LGTM w/ a few nits. https://codereview.chromium.org/605803002/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/605803002/diff/60001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode240 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:240: HoverImageButton* button = base::mac::ObjCCast<HoverImageButton>(button_); ...
6 years, 2 months ago (2014-09-29 17:55:44 UTC) #9
noms (inactive)
https://codereview.chromium.org/605803002/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/605803002/diff/60001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode240 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:240: HoverImageButton* button = base::mac::ObjCCast<HoverImageButton>(button_); On 2014/09/29 17:55:43, groby wrote: ...
6 years, 2 months ago (2014-09-29 19:21:57 UTC) #10
groby-ooo-7-16
lgtm
6 years, 2 months ago (2014-09-29 20:29:41 UTC) #11
noms (inactive)
+ oshima for theme resources
6 years, 2 months ago (2014-09-29 20:33:51 UTC) #13
oshima
ui/resources lgtm
6 years, 2 months ago (2014-09-29 20:41:41 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/605803002/120001
6 years, 2 months ago (2014-09-29 20:47:28 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:120001) as 769a9608a50a637cdcd013fd5fad994721e2f814
6 years, 2 months ago (2014-09-29 21:00:49 UTC) #17
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 21:01:31 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c86c1fcf7beec49a7b362208da99904e5aee13fd
Cr-Commit-Position: refs/heads/master@{#297255}

Powered by Google App Engine
This is Rietveld 408576698