From 2494e28b88a819618c6325a5b081ef7de28549ee Mon Sep 17 00:00:00 2001 From: Kevin Cernekee Date: Tue, 29 Mar 2016 18:03:53 -0700 Subject: Skip non-critical updates during OOBE update check If the system has not yet completed OOBE, and Omaha returns a response with an empty deadline field, avoid initiating a background update because doing so may violate an enterprise policy that gets pushed down post-enrollment. Bug: None BUG=chromium:587101 TEST=`FEATURES=test emerge-link chromeos-base/update_engine` TEST=powerwash, install lsb-release file from an old stable build, repeat OOBE, verify that download is skipped via logs, then verify that update proceeds after logging into a standard gmail account Change-Id: I6e6fae02c609b2763abc6e9960bf6d87dd3534e2 --- common/error_code_utils.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/error_code_utils.cc') diff --git a/common/error_code_utils.cc b/common/error_code_utils.cc index dc9eaf4a..ad4aeeb0 100644 --- a/common/error_code_utils.cc +++ b/common/error_code_utils.cc @@ -142,6 +142,8 @@ string ErrorCodeToString(ErrorCode code) { return "ErrorCode::kFilesystemVerifierError"; case ErrorCode::kUserCanceled: return "ErrorCode::kUserCanceled"; + case ErrorCode::kNonCriticalUpdateInOOBE: + return "ErrorCode::kNonCriticalUpdateInOOBE"; // Don't add a default case to let the compiler warn about newly added // error codes which should be added here. } -- cgit v1.2.3