Chromium Code Reviews| Index: win8/delegate_execute/chrome_util.cc |
| diff --git a/win8/delegate_execute/chrome_util.cc b/win8/delegate_execute/chrome_util.cc |
| index 6157dd3585049627702e340f7cafc0ae555ffe7d..458e891a1efa134216fe7fe307eb2578869cfa0f 100644 |
| --- a/win8/delegate_execute/chrome_util.cc |
| +++ b/win8/delegate_execute/chrome_util.cc |
| @@ -24,17 +24,12 @@ |
| #include "base/win/scoped_comptr.h" |
| #include "base/win/scoped_handle.h" |
| #include "base/win/win_util.h" |
| +#include "chrome/installer/util/install_util.h" |
| #include "google_update/google_update_idl.h" |
| namespace { |
| #if defined(GOOGLE_CHROME_BUILD) |
| -const wchar_t kAppUserModelId[] = L"Chrome"; |
| -#else // GOOGLE_CHROME_BUILD |
| -const wchar_t kAppUserModelId[] = L"Chromium"; |
| -#endif // GOOGLE_CHROME_BUILD |
| - |
| -#if defined(GOOGLE_CHROME_BUILD) |
| // TODO(grt): These constants live in installer_util. Consider moving them |
|
grt (UTC plus 2)
2013/09/04 03:33:36
how many of these constants can be replaced with c
zturner
2013/09/05 01:35:29
I was only able to replace one constant, the one f
|
| // into common_constants to allow for reuse. |
| @@ -257,7 +252,7 @@ void UpdateChromeIfNeeded(const base::FilePath& chrome_exe) { |
| // TODO(gab): This code also lives in shell_util. Refactor for reuse. |
| string16 GetAppId(const base::FilePath& chrome_exe) { |
|
gab
2013/09/03 21:05:19
All calls to this can be replaced by ShellUtil::Ge
zturner
2013/09/05 01:35:29
Done.
|
| - string16 app_id(kAppUserModelId); |
| + string16 app_id(InstallUtil::GetAppUserModelId()); |
| string16 suffix; |
| if (IsPerUserInstall(chrome_exe) && |
| !GetUserSpecificRegistrySuffix(&suffix)) { |