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

Unified Diff: chrome/browser/shell_integration_win.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: Clean up to get Program and Features uninstall icon to work more generally. 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/browser/shell_integration_win.cc
diff --git a/chrome/browser/shell_integration_win.cc b/chrome/browser/shell_integration_win.cc
index 32790758ac80e8dca1611102a0d4ba660584e21b..cc03f2b0b91bfdbc324185f72b8649461c19e10d 100644
--- a/chrome/browser/shell_integration_win.cc
+++ b/chrome/browser/shell_integration_win.cc
@@ -434,11 +434,8 @@ string16 ShellIntegration::GetChromiumIconPath() {
return string16();
}
- string16 icon_path(app_path.value());
- icon_path.push_back(',');
- icon_path += base::IntToString16(
- BrowserDistribution::GetDistribution()->GetIconIndex());
- return icon_path;
+ return ShellUtil::GetChromeIcon(BrowserDistribution::GetDistribution(),
+ app_path.value());
gab 2012/11/13 14:15:12 If this call is going to be used this way (i.e. to
huangs 2012/11/13 20:41:54 Done, calling it GetResourceString() per F2F. Als
grt (UTC plus 2) 2012/11/14 15:55:14 What resource types other than icons are typically
grt (UTC plus 2) 2012/11/14 18:31:09 ping
huangs 2012/11/14 20:35:55 Yeah, GetIconString() sounds more appropriate. Al
}
void ShellIntegration::MigrateChromiumShortcuts() {

Powered by Google App Engine
This is Rietveld 408576698