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; |
} |