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

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

Issue 1606943007: Implement Windows GPO support for "dlpref" in component updater. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 4 years, 11 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
diff --git a/chrome/installer/util/google_update_settings.h b/chrome/installer/util/google_update_settings.h
index 115941c94d050d9a6b508bb57a1706c8e9b130d3..d197bc458f3ab5429aec48cf65d422245b7e79e5 100644
--- a/chrome/installer/util/google_update_settings.h
+++ b/chrome/installer/util/google_update_settings.h
@@ -26,9 +26,11 @@ class ChannelInfo;
class InstallationState;
}
-// This class provides accessors to the Google Update 'ClientState' information
-// that recorded when the user downloads the chrome installer. It is
-// google_update.exe responsibility to write the initial values.
+// This class provides accessors to the Google Update group policies and
+// 'ClientState' information. The group policies are set using specific
+// administrative templates. The 'ClientState' information is recorded when the
+// user downloads the Chrome installer. It is google_update.exe responsibility
+// to write the initial values.
class GoogleUpdateSettings {
public:
// Update policy constants defined by Google Update; do not change these.
@@ -44,6 +46,8 @@ class GoogleUpdateSettings {
static const wchar_t kUpdatePolicyValue[];
static const wchar_t kUpdateOverrideValuePrefix[];
static const wchar_t kCheckPeriodOverrideMinutes[];
+ static const wchar_t kDownloadPreference[];
gab 2016/01/21 21:08:49 kDownloadPreferencePolicyValue to match the patter
Sorin Jianu 2016/01/25 20:04:58 Done.
+ static const wchar_t kDownloadPreferenceCacheable[];
gab 2016/01/21 21:08:49 This constant is only ever used in the test?
Sorin Jianu 2016/01/25 20:04:58 The constant is used in the unit test. It had been
gab 2016/01/25 20:33:50 I'm not convinced there is a point to document a s
static const int kCheckPeriodOverrideMinutesDefault;
static const int kCheckPeriodOverrideMinutesMax;
static const GoogleUpdateSettings::UpdatePolicy kDefaultUpdatePolicy;
@@ -266,6 +270,10 @@ class GoogleUpdateSettings {
// is assumed not to autoupdate.
static bool ReenableAutoupdates();
+ // Returns a string if the corresponding Google Update group policy is set.
+ // Returns an empty string if no policy or an invalid policy is set.
+ static base::string16 GetDownloadPreference();
+
// Records UMA stats about Chrome's update policy.
static void RecordChromeUpdatePolicyHistograms();

Powered by Google App Engine
This is Rietveld 408576698