From 4b7a2aa9bec6d0930a964880aec6d1fa3e044272 Mon Sep 17 00:00:00 2001 From: "stevet@chromium.org" Date: Tue, 6 Dec 2011 03:46:22 +0000 Subject: 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 --- ui/gfx/icon_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') 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 -- cgit v1.1