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

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

Issue 23258005: Give SxS distribution its own registration GUIDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove magic key combo from browser_options_handler.cc 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/browser_distribution.cc
diff --git a/chrome/installer/util/browser_distribution.cc b/chrome/installer/util/browser_distribution.cc
index 8a249272c802c84b96462548f3bf4ed1c7956b8a..4b1160dc3252c2578ae46b071d4fdcb8b7c7c5eb 100644
--- a/chrome/installer/util/browser_distribution.cc
+++ b/chrome/installer/util/browser_distribution.cc
@@ -36,9 +36,12 @@ namespace {
const wchar_t kChromiumActiveSetupGuid[] =
L"{7D2B3E1D-D096-4594-9D8F-A6667F12E0AC}";
-const wchar_t kCommandExecuteImplUuid[] =
+const wchar_t kCommandExecuteImplUuidString[] =
L"{A2DF06F9-A21A-44A8-8A99-8B9C84F29160}";
+const GUID kCommandExecuteImplUuid = {0xA2DF06F9, 0xA21A, 0x44A8,
+ {0x8A, 0x99, 0x8B, 0x9C, 0x84, 0xF2, 0x91, 0x60}};
+
// The Chromium App Launcher icon is index 1; see chrome_exe.rc.
const int kAppLauncherIconIndex = 1;
@@ -199,6 +202,22 @@ string16 BrowserDistribution::GetBaseAppId() {
return L"Chromium";
}
+string16 BrowserDistribution::GetBrowserProgIdPrefix() {
+ // This used to be "ChromiumHTML", but was forced to become "ChromiumHTM"
+ // because of http://crbug.com/153349 as with the '.' and 26 characters
+ // suffix added on user-level installs, the generated progid for Chromium
+ // was 39 characters long which, according to MSDN (
+ // http://msdn.microsoft.com/library/aa911706.aspx), is the maximum length
+ // for a progid. It was however determined through experimentation that the
+ // 39character limit mentioned on MSDN includes the NULL character...
gab 2013/09/06 18:40:08 The generic part of this comment should go in the
zturner 2013/09/06 20:53:16 Done.
zturner 2013/09/06 20:53:16 Done.
+ return L"ChromiumHTM";
+}
+
+string16 BrowserDistribution::GetBrowserProgIdDesc() {
+ return L"Chromium HTML Document";
+}
+
+
string16 BrowserDistribution::GetInstallSubDir() {
return L"Chromium";
}
@@ -253,10 +272,17 @@ string16 BrowserDistribution::GetVersionKey() {
return L"Software\\Chromium";
}
+bool BrowserDistribution::IsSetAsDefaultSupported() {
+ return true;
gab 2013/09/06 18:40:08 How about having this return CanSetAsDefault() unl
zturner 2013/09/06 20:53:16 If we follow Greg's suggestion of deleting this me
gab 2013/09/09 19:34:17 Meh, I prefer having two virtual functions with a
+}
+
bool BrowserDistribution::CanSetAsDefault() {
return true;
}
+void BrowserDistribution::DebugEnableSetAsDefault() {
+}
+
bool BrowserDistribution::CanCreateDesktopShortcuts() {
return true;
}
@@ -265,9 +291,16 @@ bool BrowserDistribution::GetChromeChannel(string16* channel) {
return false;
}
-bool BrowserDistribution::GetCommandExecuteImplClsid(
+bool BrowserDistribution::GetCommandExecuteImplClsidString(
string16* handler_class_uuid) {
if (handler_class_uuid)
+ *handler_class_uuid = kCommandExecuteImplUuidString;
+ return true;
+}
+
+bool BrowserDistribution::GetCommandExecuteImplClsid(
+ CLSID* handler_class_uuid) {
+ if (handler_class_uuid)
*handler_class_uuid = kCommandExecuteImplUuid;
return true;
}

Powered by Google App Engine
This is Rietveld 408576698