| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Brand-specific constants and install modes for Google Chrome. | 5 // Brand-specific constants and install modes for Google Chrome. |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include "chrome/app/chrome_dll_resource.h" | 9 #include "chrome/app/chrome_dll_resource.h" |
| 10 #include "chrome/common/chrome_icon_resources_win.h" | 10 #include "chrome/common/chrome_icon_resources_win.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 const InstallConstants kInstallModes[] = { | 26 const InstallConstants kInstallModes[] = { |
| 27 // The primary install mode for stable Google Chrome. | 27 // The primary install mode for stable Google Chrome. |
| 28 { | 28 { |
| 29 sizeof(kInstallModes[0]), | 29 sizeof(kInstallModes[0]), |
| 30 STABLE_INDEX, // The first mode is for stable/beta/dev. | 30 STABLE_INDEX, // The first mode is for stable/beta/dev. |
| 31 "", // No install switch for the primary install mode. | 31 "", // No install switch for the primary install mode. |
| 32 L"", // Empty install_suffix for the primary install mode. | 32 L"", // Empty install_suffix for the primary install mode. |
| 33 L"", // No logo suffix for the primary install mode. | 33 L"", // No logo suffix for the primary install mode. |
| 34 L"{8A69D345-D564-463c-AFF1-A69D9E530F96}", | 34 L"{8A69D345-D564-463c-AFF1-A69D9E530F96}", |
| 35 L"Google Chrome", // A distinct base_app_name. |
| 35 L"Chrome", // A distinct base_app_id. | 36 L"Chrome", // A distinct base_app_id. |
| 36 L"ChromeHTML", // ProgID prefix. | 37 L"ChromeHTML", // ProgID prefix. |
| 37 L"Chrome HTML Document", // ProgID description. | 38 L"Chrome HTML Document", // ProgID description. |
| 38 L"{8A69D345-D564-463c-AFF1-A69D9E530F96}", // Active Setup GUID. | 39 L"{8A69D345-D564-463c-AFF1-A69D9E530F96}", // Active Setup GUID. |
| 39 L"{5C65F4B0-3651-4514-B207-D10CB699B14B}", // CommandExecuteImpl CLSID. | 40 L"{5C65F4B0-3651-4514-B207-D10CB699B14B}", // CommandExecuteImpl CLSID. |
| 40 L"", // The empty string means "stable". | 41 L"", // The empty string means "stable". |
| 41 ChannelStrategy::ADDITIONAL_PARAMETERS, | 42 ChannelStrategy::ADDITIONAL_PARAMETERS, |
| 42 true, // Supports system-level installs. | 43 true, // Supports system-level installs. |
| 43 true, // Supports in-product set as default browser UX. | 44 true, // Supports in-product set as default browser UX. |
| 44 true, // Supports retention experiments. | 45 true, // Supports retention experiments. |
| 45 true, // Supported multi-install. | 46 true, // Supported multi-install. |
| 46 icon_resources::kApplicationIndex, // App icon resource index. | 47 icon_resources::kApplicationIndex, // App icon resource index. |
| 47 IDR_MAINFRAME, // App icon resource id. | 48 IDR_MAINFRAME, // App icon resource id. |
| 48 }, | 49 }, |
| 49 // A secondary install mode for Google Chrome SxS (canary). | 50 // A secondary install mode for Google Chrome SxS (canary). |
| 50 { | 51 { |
| 51 sizeof(kInstallModes[0]), | 52 sizeof(kInstallModes[0]), |
| 52 CANARY_INDEX, // The mode for the side-by-side canary channel. | 53 CANARY_INDEX, // The mode for the side-by-side canary channel. |
| 53 "chrome-sxs", // Install switch. | 54 "chrome-sxs", // Install switch. |
| 54 L" SxS", // Install suffix. | 55 L" SxS", // Install suffix. |
| 55 L"Canary", // Logo suffix. | 56 L"Canary", // Logo suffix. |
| 56 L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}", // A distinct app GUID. | 57 L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}", // A distinct app GUID. |
| 58 L"Google Chrome Canary", // A distinct base_app_name. |
| 57 L"ChromeCanary", // A distinct base_app_id. | 59 L"ChromeCanary", // A distinct base_app_id. |
| 58 L"ChromeSSHTM", // ProgID prefix. | 60 L"ChromeSSHTM", // ProgID prefix. |
| 59 L"Chrome Canary HTML Document", // ProgID description. | 61 L"Chrome Canary HTML Document", // ProgID description. |
| 60 L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}", // Active Setup GUID. | 62 L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}", // Active Setup GUID. |
| 61 L"{1BEAC3E3-B852-44F4-B468-8906C062422E}", // CommandExecuteImpl CLSID. | 63 L"{1BEAC3E3-B852-44F4-B468-8906C062422E}", // CommandExecuteImpl CLSID. |
| 62 L"canary", // Forced channel name. | 64 L"canary", // Forced channel name. |
| 63 ChannelStrategy::FIXED, | 65 ChannelStrategy::FIXED, |
| 64 false, // Does not support system-level installs. | 66 false, // Does not support system-level installs. |
| 65 false, // Does not support in-product set as default browser UX. | 67 false, // Does not support in-product set as default browser UX. |
| 66 true, // Supports retention experiments. | 68 true, // Supports retention experiments. |
| 67 false, // Did not support multi-install. | 69 false, // Did not support multi-install. |
| 68 icon_resources::kSxSApplicationIndex, // App icon resource index. | 70 icon_resources::kSxSApplicationIndex, // App icon resource index. |
| 69 IDR_SXS, // App icon resource id. | 71 IDR_SXS, // App icon resource id. |
| 70 }, | 72 }, |
| 71 }; | 73 }; |
| 72 | 74 |
| 73 static_assert(_countof(kInstallModes) == NUM_INSTALL_MODES, | 75 static_assert(_countof(kInstallModes) == NUM_INSTALL_MODES, |
| 74 "Imbalance between kInstallModes and InstallConstantIndex"); | 76 "Imbalance between kInstallModes and InstallConstantIndex"); |
| 75 | 77 |
| 76 } // namespace install_static | 78 } // namespace install_static |
| OLD | NEW |