diff options
Diffstat (limited to 'chrome/browser/app_icon_win.cc')
-rw-r--r-- | chrome/browser/app_icon_win.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/browser/app_icon_win.cc b/chrome/browser/app_icon_win.cc new file mode 100644 index 0000000..31059d7 --- /dev/null +++ b/chrome/browser/app_icon_win.cc @@ -0,0 +1,22 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/browser/app_icon_win.h" + +#include "chrome/app/chrome_dll_resource.h" +#include "chrome/common/chrome_constants.h" + +#if defined(GOOGLE_CHROME_BUILD) +#include "chrome/installer/util/browser_distribution.h" +#endif + +HICON GetAppIcon() { + int icon_id = IDR_MAINFRAME; +#if defined(GOOGLE_CHROME_BUILD) + if (BrowserDistribution::GetDistribution()->ShouldUseAlternateIcon()) + icon_id = IDI_SXS; +#endif + return LoadIcon(GetModuleHandle(chrome::kBrowserResourcesDll), + MAKEINTRESOURCE(icon_id)); +} |