summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorstevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-06 03:46:22 +0000
committerstevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-06 03:46:22 +0000
commit4b7a2aa9bec6d0930a964880aec6d1fa3e044272 (patch)
treea53220dc95be462855e904a4f74205dc37f465b3 /ui
parent87a58d935007a0077082ea113bbd996375a07fa3 (diff)
downloadchromium_src-4b7a2aa9bec6d0930a964880aec6d1fa3e044272.zip
chromium_src-4b7a2aa9bec6d0930a964880aec6d1fa3e044272.tar.gz
chromium_src-4b7a2aa9bec6d0930a964880aec6d1fa3e044272.tar.bz2
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 Review URL: http://codereview.chromium.org/8785006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/gfx/icon_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gfx/icon_util.cc b/ui/gfx/icon_util.cc
index 27cc357..bfb5d50 100644
--- a/ui/gfx/icon_util.cc
+++ b/ui/gfx/icon_util.cc
@@ -243,7 +243,7 @@ bool IconUtil::CreateIconFileFromSkBitmap(const SkBitmap& bitmap,
base::win::ScopedHandle icon_file(::CreateFile(icon_path.value().c_str(),
GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL));
- if (icon_file.Get() == INVALID_HANDLE_VALUE)
+ if (!icon_file.IsValid())
return false;
// Creating a set of bitmaps corresponding to the icon images we'll end up