Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: chrome/installer/setup/install_worker.cc

Issue 11359133: Add default icon to app_host.exe, and use it in shortcuts during installation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Small comment change. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/installer/setup/install_worker.cc
diff --git a/chrome/installer/setup/install_worker.cc b/chrome/installer/setup/install_worker.cc
index 2ef5660e3141f79a088857e02643586f4d49fd5a..b80f2f85cd6bcfeca31c0feb9895a22a21a53bb2 100644
--- a/chrome/installer/setup/install_worker.cc
+++ b/chrome/installer/setup/install_worker.cc
@@ -621,12 +621,10 @@ void AddUninstallShortcutWorkItems(const InstallerState& installer_state,
install_path.value(),
true);
- // TODO(huangs): Generalize this, so app_host.exe can get its own icon,
- // and not rely on chrome.exe's.
- // DisplayIcon, NoModify and NoRepair
- string16 chrome_icon = ShellUtil::GetChromeIcon(
- product.distribution(),
- install_path.Append(installer::kChromeExe).value());
+ BrowserDistribution* dist = product.distribution();
+ string16 chrome_icon = ShellUtil::GetIconString(
+ install_path.Append(dist->GetIconFilename()).value(),
+ dist->GetIconIndex());
gab 2012/11/15 15:04:07 nit: indent to to fit with '(' in line above.
huangs 2012/11/15 16:05:19 dist->GetIconIndex() is a parameter to GetIconStri
gab 2012/11/15 16:24:16 Duh, indeed!
huangs 2012/11/15 16:51:39 So no change.
install_list->AddSetRegValueWorkItem(reg_root, uninstall_reg,
L"DisplayIcon", chrome_icon, true);
install_list->AddSetRegValueWorkItem(reg_root, uninstall_reg,

Powered by Google App Engine
This is Rietveld 408576698