DescriptionFixed channel switch when user decides to switch to another channel in
he middle of current channel transition.
For example:
1. User is currently on the beta channel and decides to switch to the dev channel.
2. In the middle of the switch the user decides to switch to the stable channel
instead of currently downloading dev.
But update engine moves to UPDATE_STATUS_REPORTING_ERROR_EVENT because
target channel isn't equal to downloading channel, so request to start
downloading of stable channel fails. Almost immediately update engine moves
to UPDATE_STATUS_IDLE, but user needs to reload chrome://help page to initiate
update check. Current changelist handles the issue and implements automatic
update checks when update engine is idle.
BUG=311162
TEST=unit_tests:VersionUpdaterCrosTest.*
Committed: https://crrev.com/84a24d2929796a717aef73ec7d85a87e09cd251d
Cr-Commit-Position: refs/heads/master@{#296693}
Patch Set 1 #Patch Set 2 : Fix. #
Total comments: 4
Patch Set 3 : Comments are addressed. #
Total comments: 11
Patch Set 4 : Fixes. #
Total comments: 2
Patch Set 5 : Rebase, fix. #
Total comments: 4
Patch Set 6 : Fixes. #Patch Set 7 : Commend is added to overriden EnsureCanUpdate() method. #
Total comments: 2
Patch Set 8 : EnsureCanUpdate() is restored back. Test is modified to mimic real environment. #
Messages
Total messages: 20 (3 generated)
|