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

Issue 212603011: Newly created profiles should have the grey silhouette as avatar. (Closed)

Created:
6 years, 9 months ago by Mike Lerman
Modified:
6 years, 8 months ago
CC:
chromium-reviews, oshima+watch_chromium.org
Visibility:
Public.

Description

Newly created profiles should have the grey silhouette as avatar. The name should still be automatically generated. Also, all the avatar icons are becoming squares (31x38 -> 38x38). New resources will be committed and necessary code changes have been made. BUG=337986 TEST=When creating a new profile from anywhere except the settings. Also, verify avatar icons are still rendered correctly, whether GAIA, the placeholder or a cartoon icon. page, the automatically assigned avatar should the grey placeholder (silhouette). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263262 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265645

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Remove duplicate references to resource for grey avatar. #

Total comments: 10

Patch Set 4 : Nits and name/variables fixes. #

Patch Set 5 : Rebase #

Patch Set 6 : Avatar Icons are now square 38x38 resources. #

Patch Set 7 : Rebase (and merge) #

Patch Set 8 : Handle square avatars correctly; mostly Windows fixes. #

Patch Set 9 : Undo changes to (.png) image resources. #

Total comments: 4

Patch Set 10 : Nits #

Patch Set 11 : Rebase #

Patch Set 12 : Rebase #

Patch Set 13 : Rebase #

Patch Set 14 : Post-Rebase merge. #

Total comments: 4

Patch Set 15 : Rebase #

Total comments: 4

Patch Set 16 : Refactor parallel arrays; trungl's suggestions #

Total comments: 4

Patch Set 17 : Nits #

Patch Set 18 : Remove extraneous const, caused error on mac build. #

Patch Set 19 : Remove const from .cc function #

Patch Set 20 : Rebase #

Patch Set 21 : Rebase #

Patch Set 22 : Rebase reviewed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -136 lines) Patch
M build/ios/grit_whitelist.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/app/theme/chrome_unscaled_resources.grd View 1 chunk +1 line, -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 19 4 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_avatar_icon_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_avatar_icon_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +71 lines, -70 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_list_desktop.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/profile_metrics.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +7 lines, -16 lines 0 comments Download
M chrome/browser/profiles/profile_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/browser_options.css View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/manage_profile_overlay.css View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_icon_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 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 12 13 14 15 16 17 18 19 2 chunks +3 lines, -1 line 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 19 1 chunk +0 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 19 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/taskbar_decorator_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +5 lines, -22 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 51 (0 generated)
Mike Lerman
Hello, I have modified the default avatar icon when you create a new profile to ...
6 years, 9 months ago (2014-03-27 19:58:05 UTC) #1
Scott Hess - ex-Googler
lgtm for cocoa/
6 years, 9 months ago (2014-03-27 20:11:09 UTC) #2
noms (inactive)
https://codereview.chromium.org/212603011/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/212603011/diff/40001/chrome/app/generated_resources.grd#newcode11732 chrome/app/generated_resources.grd:11732: + </message> Hmm, I don't think the name should ...
6 years, 9 months ago (2014-03-27 20:19:31 UTC) #3
noms (inactive)
https://codereview.chromium.org/212603011/diff/40001/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/212603011/diff/40001/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode127 chrome/browser/profiles/profile_shortcut_manager_win.cc:127: if (avatar_bitmap.width() != avatar_bitmap.height()) { nit: no brackets. Also: ...
6 years, 9 months ago (2014-03-27 20:39:53 UTC) #4
oshima
Sounds like CL is not ready yet? I'm holding this off for the time being. ...
6 years, 9 months ago (2014-03-27 23:00:27 UTC) #5
Mike Lerman
https://codereview.chromium.org/212603011/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/212603011/diff/40001/chrome/app/generated_resources.grd#newcode11732 chrome/app/generated_resources.grd:11732: + </message> I've changed the name in the .grd ...
6 years, 8 months ago (2014-04-02 17:46:25 UTC) #6
Mike Lerman
For reviewers, Please note that the .png files will be landed separately. Oshima, MSW, this ...
6 years, 8 months ago (2014-04-04 20:24:33 UTC) #7
Peter Kasting
LGTM https://codereview.chromium.org/212603011/diff/160001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc File chrome/browser/ui/views/frame/taskbar_decorator_win.cc (right): https://codereview.chromium.org/212603011/diff/160001/chrome/browser/ui/views/frame/taskbar_decorator_win.cc#newcode29 chrome/browser/ui/views/frame/taskbar_decorator_win.cc:29: const size_t kOverlayIconSize = 16; Nit: Leave this ...
6 years, 8 months ago (2014-04-04 20:27:15 UTC) #8
msw
c/b/ui/views lgtm with a nit https://codereview.chromium.org/212603011/diff/160001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/212603011/diff/160001/chrome/browser/ui/views/frame/browser_view.cc#newcode585 chrome/browser/ui/views/frame/browser_view.cc:585: int BrowserView::GetGuestIconResourceID() const { ...
6 years, 8 months ago (2014-04-04 20:52:48 UTC) #9
noms (inactive)
lgtm for profiles/signin, with the same nit as msw :)
6 years, 8 months ago (2014-04-04 20:54:52 UTC) #10
noms (inactive)
lgtm for profiles/signin, with the same nit as msw :)
6 years, 8 months ago (2014-04-04 20:54:53 UTC) #11
Mike Lerman
Nits Done. https://codereview.chromium.org/212603011/diff/160001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/212603011/diff/160001/chrome/browser/ui/views/frame/browser_view.cc#newcode585 chrome/browser/ui/views/frame/browser_view.cc:585: int BrowserView::GetGuestIconResourceID() const { On 2014/04/04 20:52:49, ...
6 years, 8 months ago (2014-04-04 21:09:07 UTC) #12
James Hawkins
lgtm
6 years, 8 months ago (2014-04-04 21:52:06 UTC) #13
oshima
c/a/theme lgtm. (sorry for delay)
6 years, 8 months ago (2014-04-09 17:25:13 UTC) #14
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 8 months ago (2014-04-10 14:58:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/212603011/220001
6 years, 8 months ago (2014-04-10 14:59:00 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-10 14:59:14 UTC) #17
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/cocoa/browser/avatar_icon_controller.mm: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 8 months ago (2014-04-10 14:59:15 UTC) #18
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 8 months ago (2014-04-11 13:14:29 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/212603011/240001
6 years, 8 months ago (2014-04-11 13:18:14 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-11 14:13:52 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_compile_dbg
6 years, 8 months ago (2014-04-11 14:13:52 UTC) #22
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 8 months ago (2014-04-11 14:34:19 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/212603011/260001
6 years, 8 months ago (2014-04-11 14:34:30 UTC) #24
commit-bot: I haz the power
Change committed as 263262
6 years, 8 months ago (2014-04-11 16:51:31 UTC) #25
viettrungluu
This adds static initializers.... https://codereview.chromium.org/212603011/diff/260001/chrome/browser/profiles/profile_avatar_icon_util.cc File chrome/browser/profiles/profile_avatar_icon_util.cc (right): https://codereview.chromium.org/212603011/diff/260001/chrome/browser/profiles/profile_avatar_icon_util.cc#newcode220 chrome/browser/profiles/profile_avatar_icon_util.cc:220: const char* kNoHighResAvatar = "NothingToDownload"; ...
6 years, 8 months ago (2014-04-11 18:08:19 UTC) #26
viettrungluu
On 2014/04/11 18:08:19, viettrungluu wrote: > This adds static initializers.... > > https://codereview.chromium.org/212603011/diff/260001/chrome/browser/profiles/profile_avatar_icon_util.cc > File ...
6 years, 8 months ago (2014-04-11 18:12:22 UTC) #27
Mike Lerman
+viettrungluu, I've removed the static initializers. Can you review? https://codereview.chromium.org/212603011/diff/260001/chrome/browser/profiles/profile_avatar_icon_util.cc File chrome/browser/profiles/profile_avatar_icon_util.cc (right): https://codereview.chromium.org/212603011/diff/260001/chrome/browser/profiles/profile_avatar_icon_util.cc#newcode220 chrome/browser/profiles/profile_avatar_icon_util.cc:220: ...
6 years, 8 months ago (2014-04-14 18:51:29 UTC) #28
viettrungluu
Rubberstamp LGTM, but here's my opinion below.... (You may want to ask your other reviewers ...
6 years, 8 months ago (2014-04-14 20:34:46 UTC) #29
Mike Lerman
trungl, I made many of the suggestions you proposed. Thanks again! noms, can you have ...
6 years, 8 months ago (2014-04-15 15:15:29 UTC) #30
noms (inactive)
profiles lgtm with nits https://codereview.chromium.org/212603011/diff/300001/chrome/browser/profiles/profile_avatar_icon_util.cc File chrome/browser/profiles/profile_avatar_icon_util.cc (right): https://codereview.chromium.org/212603011/diff/300001/chrome/browser/profiles/profile_avatar_icon_util.cc#newcode216 chrome/browser/profiles/profile_avatar_icon_util.cc:216: // GAIA images get a ...
6 years, 8 months ago (2014-04-15 15:26:47 UTC) #31
Mike Lerman
https://codereview.chromium.org/212603011/diff/300001/chrome/browser/profiles/profile_avatar_icon_util.cc File chrome/browser/profiles/profile_avatar_icon_util.cc (right): https://codereview.chromium.org/212603011/diff/300001/chrome/browser/profiles/profile_avatar_icon_util.cc#newcode216 chrome/browser/profiles/profile_avatar_icon_util.cc:216: // GAIA images get a border. On 2014/04/15 15:26:48, ...
6 years, 8 months ago (2014-04-15 17:56:45 UTC) #32
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 8 months ago (2014-04-15 17:56:53 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/212603011/320001
6 years, 8 months ago (2014-04-15 17:57:50 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-15 20:11:53 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 8 months ago (2014-04-15 20:11:55 UTC) #36
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 8 months ago (2014-04-16 16:00:18 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/212603011/360001
6 years, 8 months ago (2014-04-16 16:01:21 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-16 16:36:09 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 8 months ago (2014-04-16 16:36:09 UTC) #40
viettrungluu
The CQ bit was checked by viettrungluu@chromium.org
6 years, 8 months ago (2014-04-17 17:27:57 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/212603011/360001
6 years, 8 months ago (2014-04-17 17:30:42 UTC) #42
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-17 17:31:19 UTC) #43
commit-bot: I haz the power
Failed to apply patch for chrome/browser/profiles/profile_window.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-17 17:31:19 UTC) #44
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 8 months ago (2014-04-23 00:32:20 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/212603011/380001
6 years, 8 months ago (2014-04-23 00:33:09 UTC) #46
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-23 00:33:39 UTC) #47
commit-bot: I haz the power
Failed to apply patch for chrome/browser/profiles/profile_avatar_icon_util.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-23 00:33:39 UTC) #48
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 8 months ago (2014-04-23 14:17:35 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/212603011/410001
6 years, 8 months ago (2014-04-23 14:18:06 UTC) #50
commit-bot: I haz the power
6 years, 8 months ago (2014-04-23 15:34:40 UTC) #51
Message was sent while issue was closed.
Change committed as 265645

Powered by Google App Engine
This is Rietveld 408576698