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
PTAL. A couple caveats:
- There is one TODO in there which I will refactor ASAP after this is all in.
- There is still one odd bug that I am looking into where after setting the
GAIA photo as your avatar, the desktop shortcut stops accepting any future
updates. I hope to fix this before we commit this patch.
Thanks!
SteveT
R+cpu Carlos, can you look at the shell_util* and app_icon_win.* changes?
LGTM
The profile_info_cache code is getting very hard to read now. I don't think
there's much you can do to fix that in this CL though. I can't wait to delete
all that code and clean things up.
http://codereview.chromium.org/8785006/diff/6005/chrome/browser/profiles/prof...
File chrome/browser/profiles/profile_shortcut_manager_win.cc (right):
http://codereview.chromium.org/8785006/diff/6005/chrome/browser/profiles/prof...
chrome/browser/profiles/profile_shortcut_manager_win.cc:264: const gfx::Image*
avatar_image) {
gfx::Image isn't thread safe. Also, I don't think you guarantee that this value
will won't be deleted by now.
It's probably better to do a deep copy and send it to this function. This
function would then delete the copy.
SteveT
R+rsesek Hi Robert, Could you PTAL at the profile_shortcut_manager_win* changes? You reviewed Miranda's original patch ...
R+rsesek
Hi Robert,
Could you PTAL at the profile_shortcut_manager_win* changes? You reviewed
Miranda's original patch for that code, I believe.
Thanks!
Steve
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 ...
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 ...
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()) : ...
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 ...
Presubmit check for 8785006-15006 failed and returned exit status 1.
Running presubmit commit checks ...
** Presubmit Messages **
--tbr was specified, skipping OWNERS check
** Presubmit Warnings **
New code should not use wstrings. If you are calling an API that accepts a
wstring, fix the API.
chrome/installer/util/shell_util.cc:550
chrome/installer/util/shell_util.cc:1065
chrome/installer/util/shell_util.h:116
chrome/installer/util/shell_util.h:299
Presubmit checks took 1.3s to calculate.
SteveT
FYI this is committed as r113104. Waiting on a TBR from rsesek.
Issue 8785006: Badge Windows profile shortcuts with multi-user avatar.
(Closed)
Created 9 years ago by SteveT
Modified 9 years ago
Reviewers: sail, cpu_(ooo_6.6-7.5), robertshield, Robert Sesek, grt (UTC plus 2)
Base URL: svn://svn.chromium.org/chrome/trunk/src/
Comments: 69