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

Side by Side Diff: chrome/install_static/install_modes.h

Issue 2459583002: Use InstallDetails in setup. (Closed)
Patch Set: compile fix Created 3 years, 10 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 // This file declares constants that describe specifics of a Chromium-based 5 // This file declares constants that describe specifics of a Chromium-based
6 // browser's branding and modes of installation. 6 // browser's branding and modes of installation.
7 // 7 //
8 // A browser's brand comprises all identifying markings that distinguish it from 8 // A browser's brand comprises all identifying markings that distinguish it from
9 // a browser produced by another party. Chromium has remnants of both the 9 // a browser produced by another party. Chromium has remnants of both the
10 // Chromium and Google Chrome brands. 10 // Chromium and Google Chrome brands.
11 // 11 //
12 // Each brand defines one primary install mode for the browser. A brand may 12 // Each brand defines one primary install mode for the browser. A brand may
13 // additionally define one or more secondary install modes (e.g., Google 13 // additionally define one or more secondary install modes (e.g., Google
14 // Chrome's SxS mode for the canary channel). Install modes are described by 14 // Chrome's SxS mode for the canary channel). Install modes are described by
15 // compile-time instantiations of the `InstallConstants` struct in a brand's 15 // compile-time instantiations of the `InstallConstants` struct in a brand's
16 // `kInstallModes` array. Index 0 of this array always describes the primary 16 // `kInstallModes` array. Index 0 of this array always describes the primary
17 // install mode. All other entries describe secondary modes, which are 17 // install mode. All other entries describe secondary modes, which are
18 // distinguished by an install suffix (e.g., " SxS") that appears in file and 18 // distinguished by an install suffix (e.g., " SxS") that appears in file and
19 // registry paths. 19 // registry paths.
robertshield 2017/02/20 19:11:16 Can you go into a little more detail here (or else
grt (UTC plus 2) 2017/02/21 13:21:15 Added some text. Let me know if you had something
robertshield 2017/02/21 14:28:20 Looks great, thanks!
20 20
21 #ifndef CHROME_INSTALL_STATIC_INSTALL_MODES_H_ 21 #ifndef CHROME_INSTALL_STATIC_INSTALL_MODES_H_
22 #define CHROME_INSTALL_STATIC_INSTALL_MODES_H_ 22 #define CHROME_INSTALL_STATIC_INSTALL_MODES_H_
23 23
24 #include <string> 24 #include <string>
25 25
26 #include "chrome/install_static/install_constants.h" 26 #include "chrome/install_static/install_constants.h"
27 27
28 // Include the brand-specific values. Each of these must define: 28 // Include the brand-specific values. Each of these must define:
29 // - enum InstallConstantIndex: named indices of the brand's kInstallModes 29 // - enum InstallConstantIndex: named indices of the brand's kInstallModes
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // A brand's collection of install modes. 65 // A brand's collection of install modes.
66 extern const InstallConstants kInstallModes[]; 66 extern const InstallConstants kInstallModes[];
67 67
68 // The following convenience functions behave conditionally on whether or not 68 // The following convenience functions behave conditionally on whether or not
69 // the brand uses Chrome's integration with Google Update. For brands that do 69 // the brand uses Chrome's integration with Google Update. For brands that do
70 // not (e.g., Chromium), they return something like "Software\Chromium" or 70 // not (e.g., Chromium), they return something like "Software\Chromium" or
71 // "Software\Chromium Binaries". Otherwise, for brands that do integrate with 71 // "Software\Chromium Binaries". Otherwise, for brands that do integrate with
72 // Google Update, they return something like 72 // Google Update, they return something like
73 // "Software\Google\Update\ClientState{Medium}\<guid>" where "<guid>" is either 73 // "Software\Google\Update\ClientState{Medium}\<guid>" where "<guid>" is either
74 // |mode|'s appguid or the brand's kBinariesAppGuid. 74 // |mode|'s appguid or the brand's kBinariesAppGuid.
75 std::wstring GetClientsKeyPath(const wchar_t* app_guid);
75 std::wstring GetClientStateKeyPath(const wchar_t* app_guid); 76 std::wstring GetClientStateKeyPath(const wchar_t* app_guid);
77 std::wstring GetClientStateMediumKeyPath(const wchar_t* app_guid);
78 std::wstring GetBinariesClientsKeyPath();
76 std::wstring GetBinariesClientStateKeyPath(); 79 std::wstring GetBinariesClientStateKeyPath();
77 std::wstring GetClientStateMediumKeyPath(const wchar_t* app_guid);
78 std::wstring GetBinariesClientStateMediumKeyPath(); 80 std::wstring GetBinariesClientStateMediumKeyPath();
79 81
80 } // namespace install_static 82 } // namespace install_static
81 83
82 #endif // CHROME_INSTALL_STATIC_INSTALL_MODES_H_ 84 #endif // CHROME_INSTALL_STATIC_INSTALL_MODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698