summaryrefslogtreecommitdiff
path: root/action_processor.h
diff options
context:
space:
mode:
authorJay Srinivasan <jaysri@chromium.org>2013-03-28 16:45:25 -0700
committerChromeBot <chrome-bot@google.com>2013-03-28 18:27:16 -0700
commit1c0fe79c7ef2b43946d756b54c8505d2bf48b93b (patch)
tree88e1ead1cacfd224db873b2f42acd56f9a9d1145 /action_processor.h
parent962873e0b72aa9e93305a582b7d7dd0b7afb3f2c (diff)
Cancel the current download if user chooses a different channel.
In my earlier CL, to keep the implementation simple, we disallowed changing a channel until the previous change completed in its entirety. Given that the UI is not going to be updated for M27, such a restriction turned out to be very confusing when playing around with channel changing. So, we decided to implement a simple form of canceling the download if the user selected a different channel while we're downloading the bits. This implementation can easily be extended to support a general form of cancel in the future, if required. This CL also adds validation of libchromeos API calls when interpreting the policy values. It also cleans up some bogus error messages that were logged earlier when we abort a download. BUG=chromium:222617 TEST=All scenarios pass on ZGB. Unit Tests pass. Change-Id: I7cd691fe461d9ce47314299f6e2598944650ee33 Reviewed-on: https://gerrit.chromium.org/gerrit/46095 Commit-Queue: Jay Srinivasan <jaysri@chromium.org> Reviewed-by: Jay Srinivasan <jaysri@chromium.org> Tested-by: Jay Srinivasan <jaysri@chromium.org>
Diffstat (limited to 'action_processor.h')
-rw-r--r--action_processor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/action_processor.h b/action_processor.h
index 7d2e9f87..38d63ae3 100644
--- a/action_processor.h
+++ b/action_processor.h
@@ -65,6 +65,7 @@ enum ActionExitCode {
kActionCodeDownloadMetadataSignatureMissingError = 39,
kActionCodeOmahaUpdateDeferredForBackoff = 40,
kActionCodePostinstallPowerwashError = 41,
+ kActionCodeUpdateCanceledByChannelChange = 42,
// Note: When adding new error codes, please remember to add the
// error into one of the buckets in PayloadState::UpdateFailed method so