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); |
+} |