summaryrefslogtreecommitdiffstats
path: root/chrome/browser/app_icon_win.cc
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-23 00:20:44 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-23 00:20:44 +0000
commitf7be2197bdd73fa0249a005c72112e982a6520d5 (patch)
tree9aed6a5c6839017a1bf466914c2f97b91a180801 /chrome/browser/app_icon_win.cc
parentc9f8a4f1c96ffa319698778e53aa08d9ea39a91d (diff)
downloadchromium_src-f7be2197bdd73fa0249a005c72112e982a6520d5.zip
chromium_src-f7be2197bdd73fa0249a005c72112e982a6520d5.tar.gz
chromium_src-f7be2197bdd73fa0249a005c72112e982a6520d5.tar.bz2
Win: Use different icon for SxS
BUG=37119 TEST=build official exe, run with --chrome-sxs Review URL: http://codereview.chromium.org/1727006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_icon_win.cc')
-rw-r--r--chrome/browser/app_icon_win.cc22
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));
+}