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

Unified Diff: chrome/browser/ui/webui/help/version_updater_win.cc

Issue 17261014: Add support to Google Update wrappers for the "automatic updates only" group policy setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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/browser/google/google_update_win.cc ('k') | chrome/installer/util/google_update_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/help/version_updater_win.cc
===================================================================
--- chrome/browser/ui/webui/help/version_updater_win.cc (revision 205261)
+++ chrome/browser/ui/webui/help/version_updater_win.cc (working copy)
@@ -214,13 +214,17 @@
case UPGRADE_ERROR: {
content::RecordAction(UserMetricsAction("UpgradeCheck_Error"));
status = FAILED;
- if (error_code != GOOGLE_UPDATE_DISABLED_BY_POLICY) {
+ if (error_code == GOOGLE_UPDATE_DISABLED_BY_POLICY) {
message =
- l10n_util::GetStringFUTF16Int(IDS_UPGRADE_ERROR, error_code);
+ l10n_util::GetStringUTF16(IDS_UPGRADE_DISABLED_BY_POLICY);
+ } else if (error_code == GOOGLE_UPDATE_DISABLED_BY_POLICY_AUTO_ONLY) {
+ message =
+ l10n_util::GetStringUTF16(IDS_UPGRADE_DISABLED_BY_POLICY_MANUAL);
} else {
message =
- l10n_util::GetStringUTF16(IDS_UPGRADE_DISABLED_BY_POLICY);
+ l10n_util::GetStringFUTF16Int(IDS_UPGRADE_ERROR, error_code);
}
+
if (!error_message.empty()) {
message +=
l10n_util::GetStringFUTF16(IDS_ABOUT_BOX_ERROR_DURING_UPDATE_CHECK,
« no previous file with comments | « chrome/browser/google/google_update_win.cc ('k') | chrome/installer/util/google_update_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698