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 // This file contains helper functions which provide information about the | 5 // This file contains helper functions which provide information about the |
6 // current version of Chrome. This includes channel information, version | 6 // current version of Chrome. This includes channel information, version |
7 // information etc. This functionality is provided by using functions in | 7 // information etc. This functionality is provided by using functions in |
8 // kernel32 and advapi32. No other dependencies are allowed in this file. | 8 // kernel32 and advapi32. No other dependencies are allowed in this file. |
9 | 9 |
10 #ifndef CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ | 10 #ifndef CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 extern const wchar_t kProcessType[]; | 47 extern const wchar_t kProcessType[]; |
48 extern const wchar_t kUserDataDirSwitch[]; | 48 extern const wchar_t kUserDataDirSwitch[]; |
49 extern const wchar_t kUtilityProcess[]; | 49 extern const wchar_t kUtilityProcess[]; |
50 | 50 |
51 // Used for suppressing warnings. | 51 // Used for suppressing warnings. |
52 template <typename T> inline void IgnoreUnused(T) {} | 52 template <typename T> inline void IgnoreUnused(T) {} |
53 | 53 |
54 // Returns true if Chrome is running at system level. | 54 // Returns true if Chrome is running at system level. |
55 bool IsSystemInstall(); | 55 bool IsSystemInstall(); |
56 | 56 |
| 57 // Returns the app GUID with which Chrome is registered with Google Update, or |
| 58 // an empty string if this brand does not integrate with Google Update. This is |
| 59 // a simple convenience wrapper around InstallDetails. |
| 60 const wchar_t* GetAppGuid(); |
| 61 |
57 // Returns true if usage stats collecting is enabled for this user for the | 62 // Returns true if usage stats collecting is enabled for this user for the |
58 // current executable. | 63 // current executable. |
59 bool GetCollectStatsConsent(); | 64 bool GetCollectStatsConsent(); |
60 | 65 |
61 // Returns true if the current executable is currently in the chosen sample that | 66 // Returns true if the current executable is currently in the chosen sample that |
62 // will report stats and crashes. | 67 // will report stats and crashes. |
63 bool GetCollectStatsInSample(); | 68 bool GetCollectStatsInSample(); |
64 | 69 |
65 // Sets the registry value used for checking if Chrome is in the chosen sample | 70 // Sets the registry value used for checking if Chrome is in the chosen sample |
66 // that will report stats and crashes. Returns true if writing was successful. | 71 // that will report stats and crashes. Returns true if writing was successful. |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 std::wstring DetermineChannel(const InstallConstants& mode, | 186 std::wstring DetermineChannel(const InstallConstants& mode, |
182 bool system_level, | 187 bool system_level, |
183 bool from_binaries = false); | 188 bool from_binaries = false); |
184 | 189 |
185 // Caches the |ProcessType| of the current process. | 190 // Caches the |ProcessType| of the current process. |
186 extern ProcessType g_process_type; | 191 extern ProcessType g_process_type; |
187 | 192 |
188 } // namespace install_static | 193 } // namespace install_static |
189 | 194 |
190 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ | 195 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ |
OLD | NEW |