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

Unified Diff: chrome/browser/shell_integration_win.cc

Issue 13864015: Move app launcher and chrome apps shortcut strings into the installer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@migrate_app_id_fix
Patch Set: Created 7 years, 8 months 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 5dd80834c0ab7b81ce673f99f255d24c920ac2c2..f974e8978055020f4ae9c4d4d1f46f17b1b103f6 100644
--- a/chrome/browser/shell_integration_win.cc
+++ b/chrome/browser/shell_integration_win.cc
@@ -83,6 +83,22 @@ string16 GetAppListAppName() {
BrowserDistribution* dist = BrowserDistribution::GetDistribution();
string16 app_name(dist->GetBaseAppId());
app_name.append(kAppListAppNameSuffix);
+
+ // Append user specific suffix to app id.
+ base::FilePath chrome_exe;
+ if (!PathService::Get(base::FILE_EXE, &chrome_exe)) {
+ NOTREACHED();
+ return app_name;
+ }
+ bool is_per_user_install =
+ InstallUtil::IsPerUserInstall(chrome_exe.value().c_str());
+ string16 suffix;
+ if (is_per_user_install
+ && !ShellUtil::GetUserSpecificRegistrySuffix(&suffix)) {
+ NOTREACHED();
+ return app_name;
+ }
+ app_name.append(suffix);
gab 2013/04/26 15:21:03 The reason for Chrome that the suffix is attached
calamity 2013/04/29 07:20:05 Ah ok, cool. Part of the reason I was asking was t
return app_name;
}

Powered by Google App Engine
This is Rietveld 408576698