| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 const base::string16& value); | 238 const base::string16& value); |
| 239 | 239 |
| 240 // Returns the effective update policy for |app_guid| as dictated by | 240 // Returns the effective update policy for |app_guid| as dictated by |
| 241 // Group Policy settings. |is_overridden|, if non-NULL, is populated with | 241 // Group Policy settings. |is_overridden|, if non-NULL, is populated with |
| 242 // true if an app-specific policy override is in force, or false otherwise. | 242 // true if an app-specific policy override is in force, or false otherwise. |
| 243 static UpdatePolicy GetAppUpdatePolicy(const base::string16& app_guid, | 243 static UpdatePolicy GetAppUpdatePolicy(const base::string16& app_guid, |
| 244 bool* is_overridden); | 244 bool* is_overridden); |
| 245 | 245 |
| 246 // Returns true if the app indicated by |app_guid| should be updated | 246 // Returns true if the app indicated by |app_guid| should be updated |
| 247 // automatically by Google Update based on current autoupdate settings. This | 247 // automatically by Google Update based on current autoupdate settings. This |
| 248 // is distinct from GetApUpdatePolicy which checks only a subset of things | 248 // is distinct from GetAppUpdatePolicy which checks only a subset of things |
| 249 // that can cause an app not to update. | 249 // that can cause an app not to update. |
| 250 static bool AreAutoupdatesEnabled(const base::string16& app_guid); | 250 static bool AreAutoupdatesEnabled(const base::string16& app_guid); |
| 251 | 251 |
| 252 // Attempts to reenable auto-updates for |app_guid| by removing | 252 // Attempts to reenable auto-updates for |app_guid| by removing |
| 253 // any group policy settings that would block updates from occurring. This is | 253 // any group policy settings that would block updates from occurring. This is |
| 254 // a superset of the things checked by GetAppUpdatePolicy() as | 254 // a superset of the things checked by GetAppUpdatePolicy() as |
| 255 // GetAppUpdatePolicy() does not check Omaha's AutoUpdateCheckPeriodMinutes | 255 // GetAppUpdatePolicy() does not check Omaha's AutoUpdateCheckPeriodMinutes |
| 256 // setting which will be reset by this method. Will need to be called from an | 256 // setting which will be reset by this method. Will need to be called from an |
| 257 // elevated process since those settings live in HKLM. Returns true if there | 257 // elevated process since those settings live in HKLM. Returns true if there |
| 258 // is a reasonable belief that updates are not disabled by policy when this | 258 // is a reasonable belief that updates are not disabled by policy when this |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 // this will do nothing to |experiment_labels|. This will return true if the | 311 // this will do nothing to |experiment_labels|. This will return true if the |
| 312 // label did not exist, or was successfully read. | 312 // label did not exist, or was successfully read. |
| 313 static bool ReadExperimentLabels(bool system_install, | 313 static bool ReadExperimentLabels(bool system_install, |
| 314 base::string16* experiment_labels); | 314 base::string16* experiment_labels); |
| 315 | 315 |
| 316 private: | 316 private: |
| 317 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); | 317 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); |
| 318 }; | 318 }; |
| 319 | 319 |
| 320 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 320 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
| OLD | NEW |