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

Side by Side Diff: chrome/install_static/google_chrome_install_modes.cc

Issue 2764963002: Move ProgID methods from BrowserDistribution into install_static. (Closed)
Patch Set: huangs comments Created 3 years, 9 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 unified diff | Download patch
OLDNEW
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/install_static/install_modes.h" 10 #include "chrome/install_static/install_modes.h"
(...skipping 15 matching lines...) Expand all
26 // clang-format off 26 // clang-format off
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, 30 STABLE_INDEX,
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"Chrome", // A distinct base_app_id. 35 L"Chrome", // A distinct base_app_id.
36 L"ChromeHTML", // ProgID prefix.
37 L"Chrome HTML Document", // ProgID description.
36 L"", // The empty string means "stable". 38 L"", // The empty string means "stable".
37 ChannelStrategy::ADDITIONAL_PARAMETERS, 39 ChannelStrategy::ADDITIONAL_PARAMETERS,
38 true, // Supports system-level installs. 40 true, // Supports system-level installs.
39 true, // Supported multi-install. 41 true, // Supported multi-install.
40 IDR_MAINFRAME, 42 IDR_MAINFRAME,
41 }, 43 },
42 // A secondary install mode for Google Chrome SxS (canary). 44 // A secondary install mode for Google Chrome SxS (canary).
43 { 45 {
44 sizeof(kInstallModes[0]), 46 sizeof(kInstallModes[0]),
45 CANARY_INDEX, 47 CANARY_INDEX,
46 "chrome-sxs", 48 "chrome-sxs",
47 L" SxS", 49 L" SxS",
48 L"Canary", 50 L"Canary",
49 L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}", 51 L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}",
50 L"ChromeCanary", // A distinct base_app_id. 52 L"ChromeCanary", // A distinct base_app_id.
53 L"ChromeSSHTM", // ProgID prefix.
54 L"Chrome Canary HTML Document", // ProgID description.
51 L"canary", 55 L"canary",
52 ChannelStrategy::FIXED, 56 ChannelStrategy::FIXED,
53 false, // Does not support system-level installs. 57 false, // Does not support system-level installs.
54 false, // Did not support multi-install. 58 false, // Did not support multi-install.
55 IDR_SXS, 59 IDR_SXS,
56 }, 60 },
57 // clang-format on 61 // clang-format on
58 }; 62 };
59 63
60 static_assert(_countof(kInstallModes) == NUM_INSTALL_MODES, 64 static_assert(_countof(kInstallModes) == NUM_INSTALL_MODES,
61 "Imbalance between kInstallModes and InstallConstantIndex"); 65 "Imbalance between kInstallModes and InstallConstantIndex");
62 66
63 } // namespace install_static 67 } // namespace install_static
OLDNEW
« no previous file with comments | « chrome/install_static/chromium_install_modes.cc ('k') | chrome/install_static/install_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698