| 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 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 static base::string16 GetDownloadPreference(); | 283 static base::string16 GetDownloadPreference(); |
| 284 | 284 |
| 285 // Records UMA stats about Chrome's update policy. | 285 // Records UMA stats about Chrome's update policy. |
| 286 static void RecordChromeUpdatePolicyHistograms(); | 286 static void RecordChromeUpdatePolicyHistograms(); |
| 287 | 287 |
| 288 // Returns Google Update's uninstall command line, or an empty string if none | 288 // Returns Google Update's uninstall command line, or an empty string if none |
| 289 // is found. | 289 // is found. |
| 290 static base::string16 GetUninstallCommandLine(bool system_install); | 290 static base::string16 GetUninstallCommandLine(bool system_install); |
| 291 | 291 |
| 292 // Returns the version of Google Update that is installed. | 292 // Returns the version of Google Update that is installed. |
| 293 static Version GetGoogleUpdateVersion(bool system_install); | 293 static base::Version GetGoogleUpdateVersion(bool system_install); |
| 294 | 294 |
| 295 // Returns the time at which Google Update last started an automatic update | 295 // Returns the time at which Google Update last started an automatic update |
| 296 // check, or the null time if this information isn't available. | 296 // check, or the null time if this information isn't available. |
| 297 static base::Time GetGoogleUpdateLastStartedAU(bool system_install); | 297 static base::Time GetGoogleUpdateLastStartedAU(bool system_install); |
| 298 | 298 |
| 299 // Returns the time at which Google Update last successfully contacted Google | 299 // Returns the time at which Google Update last successfully contacted Google |
| 300 // servers and got a valid check response, or the null time if this | 300 // servers and got a valid check response, or the null time if this |
| 301 // information isn't available. | 301 // information isn't available. |
| 302 static base::Time GetGoogleUpdateLastChecked(bool system_install); | 302 static base::Time GetGoogleUpdateLastChecked(bool system_install); |
| 303 | 303 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 333 // this will do nothing to |experiment_labels|. This will return true if the | 333 // this will do nothing to |experiment_labels|. This will return true if the |
| 334 // label did not exist, or was successfully read. | 334 // label did not exist, or was successfully read. |
| 335 static bool ReadExperimentLabels(bool system_install, | 335 static bool ReadExperimentLabels(bool system_install, |
| 336 base::string16* experiment_labels); | 336 base::string16* experiment_labels); |
| 337 | 337 |
| 338 private: | 338 private: |
| 339 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); | 339 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); |
| 340 }; | 340 }; |
| 341 | 341 |
| 342 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 342 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
| OLD | NEW |