Index: chrome/installer/mini_installer/mini_installer_constants.cc |
diff --git a/chrome/installer/mini_installer/mini_installer_constants.cc b/chrome/installer/mini_installer/mini_installer_constants.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8f322548e1ddce227b2ad8e8d9d51f2af6d517db |
--- /dev/null |
+++ b/chrome/installer/mini_installer/mini_installer_constants.cc |
@@ -0,0 +1,47 @@ |
+// Copyright 2014 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. |
+ |
+#include "chrome/installer/mini_installer/mini_installer_constants.h" |
+ |
+namespace mini_installer { |
+ |
+// Various filenames and prefixes. |
+const wchar_t kSetupExe[] = L"setup.exe"; |
+const wchar_t kChromeArchivePrefix[] = L"chrome"; |
+const wchar_t kSetupPrefix[] = L"setup"; |
+ |
+// Command line switch names for setup.exe (sans switch prefixes). |
+const wchar_t kCmdInstallArchive[] = L"install-archive"; |
+const wchar_t kCmdUpdateSetupExe[] = L"update-setup-exe"; |
+const wchar_t kCmdNewSetupExe[] = L"new-setup-exe"; |
+ |
+// Temp directory prefix that this process creates. |
+const wchar_t kTempPrefix[] = L"CR_"; |
+const wchar_t kFullInstallerSuffix[] = L"-full"; |
+const wchar_t kMultiInstallTag[] = L"-multi"; |
+ |
+// The resource types that would be unpacked from the mini installer. |
+const wchar_t kBinResourceType[] = L"BN"; |
+const wchar_t kLZCResourceType[] = L"BL"; |
+const wchar_t kLZMAResourceType[] = L"B7"; |
+ |
+// Registry value names. |
+const wchar_t kApRegistryValue[] = L"ap"; |
+const wchar_t kCleanupRegistryValue[] = L"ChromeInstallerCleanup"; |
+const wchar_t kUninstallRegistryValue[] = L"UninstallString"; |
+ |
+// Registry key paths. |
+#if defined(GOOGLE_CHROME_BUILD) |
+const wchar_t kClientStateKeyBase[] = |
+ L"Software\\Google\\Update\\ClientState\\"; |
+const wchar_t kCleanupRegistryKey[] = |
+ L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome"; |
+#else |
+const wchar_t kClientStateKeyBase[] = L"Software\\Chromium"; |
+const wchar_t kCleanupRegistryKey[] = L"Software\\Chromium"; |
+#endif |
+ |
+const size_t kMaxResourceSize = 1024*1024*1024; |
+ |
+} // namespace mini_installer |