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

Issue 8785006: Badge Windows profile shortcuts with multi-user avatar. (Closed)

Created:
9 years ago by SteveT
Modified:
9 years ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Badge Windows profile shortcuts with multi-user avatar. BUG=105110 TEST=Ensure that when Chrome on Windows creates a desktop icon for a new Profile, the icon image has the user avatar in it. Ensure that changing the Avatar changes the image in the icon. TBR=rsesek Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113104

Patch Set 1 : '' #

Total comments: 8

Patch Set 2 : addressed sail's comment. removed fix for crbug.com/106261 #

Total comments: 5

Patch Set 3 : '' #

Total comments: 10

Patch Set 4 : addressed grt@s driveby comments and installer_util compile issues #

Total comments: 8

Patch Set 5 : addressed robertshield's nits #

Patch Set 6 : 'Fixed #

Patch Set 7 : Added a missing NULL check to icon_util. #

Total comments: 16

Patch Set 8 : Applied some grt memory suggestions. #

Total comments: 10

Patch Set 9 : Addressed rsesek's comments. #

Total comments: 7

Patch Set 10 : Merged to TOT. Fixed cpu's nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -138 lines) Patch
M chrome/browser/app_icon_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/app_icon_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -2 lines 0 comments Download
M chrome/browser/first_run/first_run_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 3 4 5 6 7 8 9 4 chunks +35 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache_observer.h View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -23 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.cc View 1 2 3 4 5 6 7 8 9 8 chunks +203 lines, -79 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 5 6 7 8 9 2 chunks +17 lines, -20 lines 0 comments Download
M chrome/installer/util/shell_util.h View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 5 6 7 8 9 8 chunks +20 lines, -7 lines 0 comments Download
M chrome/installer/util/shell_util_unittest.cc View 1 2 3 4 5 6 7 8 9 11 chunks +22 lines, -0 lines 0 comments Download
M ui/gfx/icon_util.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
SteveT
PTAL. A couple caveats: - There is one TODO in there which I will refactor ...
9 years ago (2011-12-02 22:48:08 UTC) #1
SteveT
R+cpu Carlos, can you look at the shell_util* and app_icon_win.* changes?
9 years ago (2011-12-02 23:35:36 UTC) #2
SteveT
R+robertsheild Robert, can you take a quick look at installer.cc and first_run_win.cc? Might involve a ...
9 years ago (2011-12-02 23:38:09 UTC) #3
sail
LGTM The profile_info_cache code is getting very hard to read now. I don't think there's ...
9 years ago (2011-12-02 23:47:54 UTC) #4
SteveT
R+rsesek Hi Robert, Could you PTAL at the profile_shortcut_manager_win* changes? You reviewed Miranda's original patch ...
9 years ago (2011-12-02 23:55:30 UTC) #5
SteveT
Incorporated sail@'s suggestion.
9 years ago (2011-12-03 00:39:22 UTC) #6
robertshield
http://codereview.chromium.org/8785006/diff/6005/chrome/browser/app_icon_win.cc File chrome/browser/app_icon_win.cc (right): http://codereview.chromium.org/8785006/diff/6005/chrome/browser/app_icon_win.cc#newcode27 chrome/browser/app_icon_win.cc:27: if (BrowserDistribution::GetDistribution()->GetIconIndex()) The more correct way to check for ...
9 years ago (2011-12-03 02:42:31 UTC) #7
SteveT
Addressed all of Robert's nits. Thanks for the look. I was cleaning up some in-between ...
9 years ago (2011-12-03 03:19:14 UTC) #8
grt (UTC plus 2)
drive-by on installer code. looks good overall. http://codereview.chromium.org/8785006/diff/7036/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): http://codereview.chromium.org/8785006/diff/7036/chrome/installer/setup/install.cc#newcode182 chrome/installer/setup/install.cc:182: if (installer_state.system_install()) ...
9 years ago (2011-12-03 04:14:00 UTC) #9
SteveT
Appreciate the drive-by. Fixed all your concerns.. let me know if that's good now. Thanks. ...
9 years ago (2011-12-03 05:07:09 UTC) #10
SteveT
One more thing... http://codereview.chromium.org/8785006/diff/7036/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): http://codereview.chromium.org/8785006/diff/7036/chrome/installer/util/shell_util.cc#newcode1073 chrome/installer/util/shell_util.cc:1073: prefs.GetInt(installer::master_preferences::kChromeShortcutIconIndex, Yup, that makes sense. I ...
9 years ago (2011-12-03 05:09:53 UTC) #11
robertshield
lgtm, with a few more nits http://codereview.chromium.org/8785006/diff/4028/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): http://codereview.chromium.org/8785006/diff/4028/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode246 chrome/browser/profiles/profile_shortcut_manager_win.cc:246: new gfx::Image(avatar_image->CopySkBitmap()) : ...
9 years ago (2011-12-04 05:02:02 UTC) #12
SteveT
Nits addressed http://codereview.chromium.org/8785006/diff/4028/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): http://codereview.chromium.org/8785006/diff/4028/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode246 chrome/browser/profiles/profile_shortcut_manager_win.cc:246: new gfx::Image(avatar_image->CopySkBitmap()) : NULL; Done here and ...
9 years ago (2011-12-04 17:27:50 UTC) #13
grt (UTC plus 2)
two last comments: a tweak to scoped handle use, and better memory management for the ...
9 years ago (2011-12-05 14:48:27 UTC) #14
SteveT
All done. Thanks for the review. PTAL. Mostly waiting on cpu@ and rsesek@ now. http://codereview.chromium.org/8785006/diff/15001/chrome/browser/profiles/profile_shortcut_manager_win.cc ...
9 years ago (2011-12-05 15:24:45 UTC) #15
grt (UTC plus 2)
LGTM
9 years ago (2011-12-05 15:57:02 UTC) #16
Robert Sesek
http://codereview.chromium.org/8785006/diff/17006/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8785006/diff/17006/chrome/browser/profiles/profile_info_cache.cc#newcode208 chrome/browser/profiles/profile_info_cache.cc:208: gfx::Image& avatar_img = ResourceBundle::GetSharedInstance().GetImageNamed( GetNativeImageNamed() http://codereview.chromium.org/8785006/diff/17006/chrome/browser/profiles/profile_info_cache.cc#newcode440 chrome/browser/profiles/profile_info_cache.cc:440: gfx::Image& avatar_img ...
9 years ago (2011-12-05 18:03:28 UTC) #17
SteveT
Addressed rsesek's comments. PTAL. Mostly waiting on cpu@'s review, now. http://codereview.chromium.org/8785006/diff/17006/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8785006/diff/17006/chrome/browser/profiles/profile_info_cache.cc#newcode208 ...
9 years ago (2011-12-05 20:33:17 UTC) #18
cpu_(ooo_6.6-7.5)
lgtm Below nits and a question. http://codereview.chromium.org/8785006/diff/22006/chrome/browser/app_icon_win.cc File chrome/browser/app_icon_win.cc (right): http://codereview.chromium.org/8785006/diff/22006/chrome/browser/app_icon_win.cc#newcode17 chrome/browser/app_icon_win.cc:17: if (InstallUtil::IsChromeSxSProcess()) sorry ...
9 years ago (2011-12-05 21:37:34 UTC) #19
robertshield
http://codereview.chromium.org/8785006/diff/22006/chrome/browser/app_icon_win.cc File chrome/browser/app_icon_win.cc (right): http://codereview.chromium.org/8785006/diff/22006/chrome/browser/app_icon_win.cc#newcode17 chrome/browser/app_icon_win.cc:17: if (InstallUtil::IsChromeSxSProcess()) On 2011/12/05 21:37:34, cpu wrote: > sorry ...
9 years ago (2011-12-05 22:55:17 UTC) #20
SteveT
Question answered (and by Robert, it seems), one nit addressed. Thanks! Just waiting on trybots, ...
9 years ago (2011-12-05 22:58:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/8785006/15006
9 years ago (2011-12-06 03:26:02 UTC) #22
commit-bot: I haz the power
Presubmit check for 8785006-15006 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-06 03:26:08 UTC) #23
SteveT
FYI this is committed as r113104. Waiting on a TBR from rsesek.
9 years ago (2011-12-06 03:47:06 UTC) #24
Robert Sesek
9 years ago (2011-12-06 22:43:33 UTC) #25
lgtm

Powered by Google App Engine
This is Rietveld 408576698