summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-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));