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

Unified Diff: chrome/browser/app_icon_win.cc

Issue 8785006: Badge Windows profile shortcuts with multi-user avatar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/app_icon_win.cc
===================================================================
--- chrome/browser/app_icon_win.cc (revision 112717)
+++ chrome/browser/app_icon_win.cc (working copy)
@@ -20,3 +20,17 @@
return LoadIcon(GetModuleHandle(chrome::kBrowserResourcesDll),
MAKEINTRESOURCE(icon_id));
}
+
+HICON GetAppIconForSize(int size) {
+ int icon_id = IDR_MAINFRAME;
+#if defined(GOOGLE_CHROME_BUILD)
+ if (BrowserDistribution::GetDistribution()->GetIconIndex())
robertshield 2011/12/03 02:42:31 The more correct way to check for the canary build
SteveT 2011/12/03 03:19:15 Done, and above.
+ icon_id = IDR_SXS;
+#endif
+ return (HICON)LoadImage(GetModuleHandle(chrome::kBrowserResourcesDll),
robertshield 2011/12/03 02:42:31 no c-style casts
SteveT 2011/12/03 03:19:15 Oops. Fixed.
+ MAKEINTRESOURCE(icon_id),
+ IMAGE_ICON,
+ size,
+ size,
+ LR_DEFAULTCOLOR | LR_DEFAULTSIZE);
+}

Powered by Google App Engine
This is Rietveld 408576698