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

Unified Diff: chrome/installer/util/google_chrome_sxs_distribution.cc

Issue 23258005: Give SxS distribution its own registration GUIDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move typedef 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: chrome/installer/util/google_chrome_sxs_distribution.cc
diff --git a/chrome/installer/util/google_chrome_sxs_distribution.cc b/chrome/installer/util/google_chrome_sxs_distribution.cc
index 1e623d995e45a689b1e0562fc96cdccab5614868..1925f30bcdac3c7fef7df24b0f1b2201b45b8c5a 100644
--- a/chrome/installer/util/google_chrome_sxs_distribution.cc
+++ b/chrome/installer/util/google_chrome_sxs_distribution.cc
@@ -16,7 +16,11 @@ namespace {
const wchar_t kChromeSxSGuid[] = L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}";
const wchar_t kChannelName[] = L"canary";
const wchar_t kBrowserAppId[] = L"ChromeCanary";
+const wchar_t kBrowserProgIdPrefix[] = L"ChromeSSHTM";
+const wchar_t kBrowserProgIdDesc[] = L"Chrome Canary HTML Document";
const int kSxSIconIndex = 4;
+const wchar_t kCommandExecuteImplUuid[] =
+ L"{1BEAC3E3-B852-44F4-B468-8906C062422E}";
// The Chrome App Launcher Canary icon is index 6; see chrome_exe.rc.
const int kSxSAppLauncherIconIndex = 6;
@@ -53,6 +57,14 @@ string16 GoogleChromeSxSDistribution::GetBaseAppId() {
return kBrowserAppId;
}
+string16 GoogleChromeSxSDistribution::GetBrowserProgIdPrefix() {
+ return kBrowserProgIdPrefix;
+}
+
+string16 GoogleChromeSxSDistribution::GetBrowserProgIdDesc() {
+ return kBrowserProgIdDesc;
+}
+
string16 GoogleChromeSxSDistribution::GetInstallSubDir() {
return GoogleChromeDistribution::GetInstallSubDir().append(
installer::kSxSSuffix);
@@ -82,7 +94,9 @@ bool GoogleChromeSxSDistribution::GetChromeChannel(string16* channel) {
bool GoogleChromeSxSDistribution::GetCommandExecuteImplClsid(
string16* handler_class_uuid) {
- return false;
+ if (handler_class_uuid)
+ *handler_class_uuid = kCommandExecuteImplUuid;
+ return true;
}
bool GoogleChromeSxSDistribution::AppHostIsSupported() {

Powered by Google App Engine
This is Rietveld 408576698