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

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
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | chrome/installer/util/google_update_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/google_update_settings.h
===================================================================
--- chrome/installer/util/google_update_settings.h (revision 89207)
+++ chrome/installer/util/google_update_settings.h (working copy)
@@ -21,6 +21,13 @@
// google_update.exe responsability to write the initial values.
class GoogleUpdateSettings {
public:
+ // Update policy constants defined by Google Update; do not change these.
+ enum UpdatePolicy {
+ UPDATES_DISABLED = 0,
+ AUTOMATIC_UPDATES = 1,
+ MANUAL_UPDATES_ONLY = 2,
+ };
+
// 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 +167,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);
};
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | chrome/installer/util/google_update_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698