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

Unified Diff: chrome/install_static/chromium_install_modes.cc

Issue 2422643002: Windows install_static refactor. (Closed)
Patch Set: sync to position 431863 Created 4 years, 1 month 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/install_static/chromium_install_modes.cc
diff --git a/chrome/install_static/chromium_install_modes.cc b/chrome/install_static/chromium_install_modes.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3e58e0d8224d4e145f9fb97dfd701ed5072e5bdc
--- /dev/null
+++ b/chrome/install_static/chromium_install_modes.cc
@@ -0,0 +1,41 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Brand-specific constants and install modes for Chromium.
+
+#include <stdlib.h>
+
+#include "chrome/install_static/install_modes.h"
+
+namespace install_static {
+
+const wchar_t kCompanyPathName[] = L"";
+
+const wchar_t kProductPathName[] = L"Chromium";
+
+const size_t kProductPathNameLength = _countof(kProductPathName) - 1;
+
+// No integration with Google Update, so no app GUID.
+const wchar_t kBinariesAppGuid[] = L"";
+
+const wchar_t kBinariesPathName[] = L"Chromium Binaries";
+
+const InstallConstants kInstallModes[] = {
+ // The primary (and only) install mode for Chromium.
+ {
+ sizeof(kInstallModes[0]),
+ CHROMIUM_INDEX,
+ L"", // Empty install_suffix for the primary install mode.
+ L"", // Empty app_guid since no integraion with Google Update.
+ L"", // Empty default channel name as above.
+ ChannelStrategy::UNSUPPORTED,
+ true, // Supports system-level installs.
+ true, // Supports multi-install.
+ },
+};
+
+static_assert(_countof(kInstallModes) == NUM_INSTALL_MODES,
+ "Imbalance between kInstallModes and InstallConstantIndex");
+
+} // namespace install_static

Powered by Google App Engine
This is Rietveld 408576698