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

Issue 268073005: Bring back support for 38x31 avatars. (Closed)

Created:
6 years, 7 months ago by Mike Lerman
Modified:
6 years, 7 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, tfarina, arv+watch_chromium.org, Ben Goodger (Google)
Visibility:
Public.

Description

Bring back support for 38x31 avatars. The avatar icons should not look skewed in any setting. This CL is a partial revert of https://codereview.chromium.org/212603011/ (specifically, the portions that changed the dimensions of the avatar icons). BUG=367022, 369495, 341608 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270008

Patch Set 1 #

Total comments: 5

Patch Set 2 : Refactor crop/squaring code into ProfileAvatarIconUtil #

Total comments: 1

Patch Set 3 : Nits #

Total comments: 8

Patch Set 4 : Change return and singature of GetAvatarIconAsSquare #

Patch Set 5 : Moved the call to profiles:: namespace outside the task thread. #

Total comments: 9

Patch Set 6 : Nits and refactor GetAvatarIconAsSquare to have a return value. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -24 lines) Patch
M chrome/browser/profiles/profile_avatar_icon_util.h View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_avatar_icon_util.cc View 1 2 3 4 5 4 chunks +23 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.cc View 1 2 3 4 5 2 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/resources/options/browser_options.css View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/manage_profile_overlay.css View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/taskbar_decorator_win.cc View 1 2 3 4 5 4 chunks +14 lines, -11 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Mike Lerman
Hi Monica, Can you take a review of this, before I send it out to ...
6 years, 7 months ago (2014-05-05 15:44:30 UTC) #1
noms (inactive)
If I understand this correctly, this CL is mostly reverting changes from a previous CL? ...
6 years, 7 months ago (2014-05-05 16:10:53 UTC) #2
gab
https://codereview.chromium.org/268073005/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/268073005/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode75 chrome/browser/profiles/profile_shortcut_manager_win.cc:75: const int kCurrentProfileIconVersion = 2; As calamity@ mentioned on ...
6 years, 7 months ago (2014-05-05 22:58:09 UTC) #3
noms (inactive)
https://codereview.chromium.org/268073005/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/268073005/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode75 chrome/browser/profiles/profile_shortcut_manager_win.cc:75: const int kCurrentProfileIconVersion = 2; Gab: Mike is actually ...
6 years, 7 months ago (2014-05-06 00:30:03 UTC) #4
Mike Lerman
https://codereview.chromium.org/268073005/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/268073005/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode115 chrome/browser/profiles/profile_shortcut_manager_win.cc:115: // avatar_menu_button::DrawTaskBarDecoration. On 2014/05/05 16:10:53, Monica Dinculescu wrote: > ...
6 years, 7 months ago (2014-05-06 12:43:15 UTC) #5
noms (inactive)
LGTM % nits. I think the refactor looks fine, but you should ask the taskbar_decorator_win.cc ...
6 years, 7 months ago (2014-05-06 15:32:30 UTC) #6
Mike Lerman
Hi Ben@ and Estade@, Could I get reviews on: ben - c/b/ui/views/frame estade - c/n/resources/options ...
6 years, 7 months ago (2014-05-06 15:40:06 UTC) #7
Evan Stade
css lgtm
6 years, 7 months ago (2014-05-06 17:26:13 UTC) #8
gab
https://codereview.chromium.org/268073005/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/268073005/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode75 chrome/browser/profiles/profile_shortcut_manager_win.cc:75: const int kCurrentProfileIconVersion = 2; On 2014/05/06 00:30:03, Monica ...
6 years, 7 months ago (2014-05-06 18:34:59 UTC) #9
Mike Lerman
Swapping reviewers. - ben + sky Sky, can you please review c/b/ui/views/frame? Thanks!
6 years, 7 months ago (2014-05-08 12:41:38 UTC) #10
sky
https://codereview.chromium.org/268073005/diff/80001/chrome/browser/profiles/profile_avatar_icon_util.cc File chrome/browser/profiles/profile_avatar_icon_util.cc (right): https://codereview.chromium.org/268073005/diff/80001/chrome/browser/profiles/profile_avatar_icon_util.cc#newcode281 chrome/browser/profiles/profile_avatar_icon_util.cc:281: } else { nit: no else after a return ...
6 years, 7 months ago (2014-05-08 16:04:35 UTC) #11
Mike Lerman
Thanks for the feedback, sky. Addressed in the latest patch. https://codereview.chromium.org/268073005/diff/80001/chrome/browser/profiles/profile_avatar_icon_util.cc File chrome/browser/profiles/profile_avatar_icon_util.cc (right): https://codereview.chromium.org/268073005/diff/80001/chrome/browser/profiles/profile_avatar_icon_util.cc#newcode281 ...
6 years, 7 months ago (2014-05-08 18:46:39 UTC) #12
sky
https://codereview.chromium.org/268073005/diff/80001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc File chrome/browser/ui/views/frame/taskbar_decorator_win.cc (right): https://codereview.chromium.org/268073005/diff/80001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc#newcode43 chrome/browser/ui/views/frame/taskbar_decorator_win.cc:43: const SkBitmap source_bitmap = On 2014/05/08 18:46:39, Mike Lerman ...
6 years, 7 months ago (2014-05-08 19:09:55 UTC) #13
Mike Lerman
https://codereview.chromium.org/268073005/diff/80001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc File chrome/browser/ui/views/frame/taskbar_decorator_win.cc (right): https://codereview.chromium.org/268073005/diff/80001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc#newcode44 chrome/browser/ui/views/frame/taskbar_decorator_win.cc:44: profiles::GetAvatarIconAsSquare(*bitmap.get(), 1); I'm unsure about the threading issues you're ...
6 years, 7 months ago (2014-05-08 20:07:31 UTC) #14
sky
https://codereview.chromium.org/268073005/diff/80001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc File chrome/browser/ui/views/frame/taskbar_decorator_win.cc (right): https://codereview.chromium.org/268073005/diff/80001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc#newcode44 chrome/browser/ui/views/frame/taskbar_decorator_win.cc:44: profiles::GetAvatarIconAsSquare(*bitmap.get(), 1); On 2014/05/08 20:07:32, Mike Lerman wrote: > ...
6 years, 7 months ago (2014-05-08 20:23:50 UTC) #15
Mike Lerman
On 2014/05/08 20:23:50, sky wrote: > https://codereview.chromium.org/268073005/diff/80001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc > File chrome/browser/ui/views/frame/taskbar_decorator_win.cc (right): > > https://codereview.chromium.org/268073005/diff/80001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc#newcode44 > ...
6 years, 7 months ago (2014-05-09 19:31:33 UTC) #16
Mike Lerman
https://codereview.chromium.org/268073005/diff/80001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc File chrome/browser/ui/views/frame/taskbar_decorator_win.cc (right): https://codereview.chromium.org/268073005/diff/80001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc#newcode44 chrome/browser/ui/views/frame/taskbar_decorator_win.cc:44: profiles::GetAvatarIconAsSquare(*bitmap.get(), 1); On 2014/05/08 20:23:51, sky wrote: > On ...
6 years, 7 months ago (2014-05-09 19:32:06 UTC) #17
sky
https://codereview.chromium.org/268073005/diff/120001/chrome/browser/profiles/profile_avatar_icon_util.h File chrome/browser/profiles/profile_avatar_icon_util.h (right): https://codereview.chromium.org/268073005/diff/120001/chrome/browser/profiles/profile_avatar_icon_util.h#newcode95 chrome/browser/profiles/profile_avatar_icon_util.h:95: SkBitmap& square_bitmap); Style guide says refs passed to functions ...
6 years, 7 months ago (2014-05-09 20:52:18 UTC) #18
Mike Lerman
https://codereview.chromium.org/268073005/diff/120001/chrome/browser/profiles/profile_avatar_icon_util.h File chrome/browser/profiles/profile_avatar_icon_util.h (right): https://codereview.chromium.org/268073005/diff/120001/chrome/browser/profiles/profile_avatar_icon_util.h#newcode95 chrome/browser/profiles/profile_avatar_icon_util.h:95: SkBitmap& square_bitmap); On 2014/05/09 20:52:19, sky wrote: > Style ...
6 years, 7 months ago (2014-05-12 15:35:47 UTC) #19
sky
LGTM https://codereview.chromium.org/268073005/diff/120001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc File chrome/browser/ui/views/frame/taskbar_decorator_win.cc (right): https://codereview.chromium.org/268073005/diff/120001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc#newcode89 chrome/browser/ui/views/frame/taskbar_decorator_win.cc:89: SkBitmap* square_bitmap = new SkBitmap(); On 2014/05/12 15:35:47, ...
6 years, 7 months ago (2014-05-12 16:29:42 UTC) #20
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 7 months ago (2014-05-12 20:20:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/268073005/140001
6 years, 7 months ago (2014-05-12 20:21:39 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-13 02:18:09 UTC) #23
commit-bot: I haz the power
6 years, 7 months ago (2014-05-13 04:07:50 UTC) #24
Message was sent while issue was closed.
Change committed as 270008

Powered by Google App Engine
This is Rietveld 408576698