OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
6 #define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 6 #define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 static bool WriteGoogleUpdateSystemClientKey(int handle, | 189 static bool WriteGoogleUpdateSystemClientKey(int handle, |
190 const std::wstring& key, | 190 const std::wstring& key, |
191 const std::wstring& value); | 191 const std::wstring& value); |
192 | 192 |
193 // Returns the effective update policy for |app_guid| as dictated by | 193 // Returns the effective update policy for |app_guid| as dictated by |
194 // Group Policy settings. |is_overridden|, if non-NULL, is populated with | 194 // Group Policy settings. |is_overridden|, if non-NULL, is populated with |
195 // true if an app-specific policy override is in force, or false otherwise. | 195 // true if an app-specific policy override is in force, or false otherwise. |
196 static UpdatePolicy GetAppUpdatePolicy(const std::wstring& app_guid, | 196 static UpdatePolicy GetAppUpdatePolicy(const std::wstring& app_guid, |
197 bool* is_overridden); | 197 bool* is_overridden); |
198 | 198 |
| 199 // Returns Google Update's uninstall command line, or an empty string if none |
| 200 // is found. |
| 201 static string16 GetUninstallCommandLine(bool system_install); |
| 202 |
199 private: | 203 private: |
200 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); | 204 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); |
201 }; | 205 }; |
202 | 206 |
203 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 207 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
OLD | NEW |