summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-11 17:28:41 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-11 17:28:41 +0000
commit6aa2ec212c4c1ed9db2bdc2bfd5bea51fc17046f (patch)
treed52ac769833fd70a109eae2ac7c63e1c4aa2669d /chrome/browser/views
parent68e12c0dbf815fabf489875c7c20be5971f02593 (diff)
downloadchromium_src-6aa2ec212c4c1ed9db2bdc2bfd5bea51fc17046f.zip
chromium_src-6aa2ec212c4c1ed9db2bdc2bfd5bea51fc17046f.tar.gz
chromium_src-6aa2ec212c4c1ed9db2bdc2bfd5bea51fc17046f.tar.bz2
Another fix for issue 13724: Don't hard code chrome.exe
Use chrome::kBrowserProcessExecutableName instead. BUG=13724 http://codereview.chromium.org/123022 (By Edward Crossman) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18172 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/tab_icon_view.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/views/tab_icon_view.cc b/chrome/browser/views/tab_icon_view.cc
index 7fdbdac..08f059f 100644
--- a/chrome/browser/views/tab_icon_view.cc
+++ b/chrome/browser/views/tab_icon_view.cc
@@ -17,6 +17,7 @@
#include "base/path_service.h"
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/browser/tab_contents/tab_contents.h"
+#include "chrome/common/chrome_constants.h"
#include "grit/app_resources.h"
#include "grit/theme_resources.h"
@@ -40,7 +41,9 @@ void TabIconView::InitializeIfNeeded() {
// favicon.
std::wstring exe_path;
PathService::Get(base::DIR_EXE, &exe_path);
- file_util::AppendToPath(&exe_path, L"chrome.exe");
+ file_util::AppendToPath(&exe_path,
+ chrome::kBrowserProcessExecutableName);
+
HICON app_icon = ExtractIcon(NULL, exe_path.c_str(), 0);
g_default_fav_icon =
IconUtil::CreateSkBitmapFromHICON(app_icon, gfx::Size(16, 16));