Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2934)

Unified Diff: chrome/installer/util/google_update_settings.h

Issue 7111012: Return a new error code for multi-install updates if Group Policy settings blocking... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/installer/util/google_update_settings.h
===================================================================
--- chrome/installer/util/google_update_settings.h (revision 88131)
+++ chrome/installer/util/google_update_settings.h (working copy)
@@ -21,6 +21,18 @@
// google_update.exe responsability to write the initial values.
class GoogleUpdateSettings {
public:
+ enum UpdatePolicy {
+ UPDATES_DISABLED,
+ AUTOMATIC_UPDATES,
+ MANUAL_UPDATES_ONLY,
+ };
+ COMPILE_ASSERT(GoogleUpdateSettings::UPDATES_DISABLED == 0,
+ dont_reorder_GoogleUpdateSettings_UpdatePolicy);
+ COMPILE_ASSERT(GoogleUpdateSettings::AUTOMATIC_UPDATES == 1,
+ dont_reorder_GoogleUpdateSettings_UpdatePolicy);
+ COMPILE_ASSERT(GoogleUpdateSettings::MANUAL_UPDATES_ONLY == 2,
+ dont_reorder_GoogleUpdateSettings_UpdatePolicy);
+
// Returns whether the user has given consent to collect UMA data and send
// crash dumps to Google. This information is collected by the web server
// used to download the chrome installer.
@@ -160,6 +172,12 @@
// method.
static bool IsOrganicFirstRun(const std::wstring& brand);
+ // Returns the effective update policy for |app_guid| as dictated by
+ // Group Policy settings. |is_overridden|, if non-NULL, is populated with
+ // true if an app-specific policy override is in force, or false otherwise.
+ static UpdatePolicy GetAppUpdatePolicy(const std::wstring& app_guid,
+ bool* is_overridden);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings);
};

Powered by Google App Engine
This is Rietveld 408576698