OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_TOOLS_DISABLE_OUTDATED_BUILD_DETECTOR_GOOGLE_UPDATE_INTEGRATION_H
_ |
| 6 #define CHROME_TOOLS_DISABLE_OUTDATED_BUILD_DETECTOR_GOOGLE_UPDATE_INTEGRATION_H
_ |
| 7 |
| 8 #include "base/strings/string16.h" |
| 9 #include "chrome/tools/disable_outdated_build_detector/constants.h" |
| 10 |
| 11 namespace base { |
| 12 namespace win { |
| 13 class RegKey; |
| 14 } |
| 15 } |
| 16 |
| 17 // A structure containing the values that comprise the Google Update installer |
| 18 // result API. |
| 19 struct ResultInfo { |
| 20 InstallerResult installer_result; |
| 21 ExitCode installer_error; |
| 22 uint32_t installer_extra_code1; |
| 23 }; |
| 24 |
| 25 // Opens the Google Update ClientState key in the registry for the app |
| 26 // identified by |app_guid| at |system_level|. Returns ERROR_SUCCESS or another |
| 27 // Windows error value. |
| 28 uint32_t OpenClientStateKey(bool system_level, |
| 29 const wchar_t* app_guid, |
| 30 base::win::RegKey* key); |
| 31 |
| 32 // Writes the data in |result_info| into Chrome's ClientState key. |
| 33 void WriteResultInfo(bool system_level, const ResultInfo& result_info); |
| 34 |
| 35 // Returns |true| if |brand| represents an organic brand code. |
| 36 bool IsOrganic(const base::string16& brand); |
| 37 |
| 38 #endif // CHROME_TOOLS_DISABLE_OUTDATED_BUILD_DETECTOR_GOOGLE_UPDATE_INTEGRATIO
N_H_ |
OLD | NEW |