1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/app_icon_win.h"
7 #include "chrome/app/chrome_dll_resource.h"
8 #include "chrome/common/chrome_constants.h"
10 #if defined(GOOGLE_CHROME_BUILD)
11 #include "chrome/installer/util/install_util.h"
15 int icon_id
= IDR_MAINFRAME
;
16 #if defined(GOOGLE_CHROME_BUILD)
17 if (InstallUtil::IsChromeSxSProcess())
20 return LoadIcon(GetModuleHandle(chrome::kBrowserResourcesDll
),
21 MAKEINTRESOURCE(icon_id
));
24 HICON
GetAppIconForSize(int size
) {
25 int icon_id
= IDR_MAINFRAME
;
26 #if defined(GOOGLE_CHROME_BUILD)
27 if (InstallUtil::IsChromeSxSProcess())
30 return static_cast<HICON
>(
31 LoadImage(GetModuleHandle(chrome::kBrowserResourcesDll
),
32 MAKEINTRESOURCE(icon_id
),
36 LR_DEFAULTCOLOR
| LR_DEFAULTSIZE
));