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

Unified Diff: win8/delegate_execute/chrome_util.cc

Issue 23258005: Give SxS distribution its own registration GUIDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add linker dependency from metro_driver to installer_util Created 7 years, 3 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: 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)) {

Powered by Google App Engine
This is Rietveld 408576698