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

Issue 578293002: Fixed channel switch when user decides to switch to another channel in (Closed)

Created:
6 years, 3 months ago by ygorshenin1
Modified:
6 years, 2 months ago
Reviewers:
James Hawkins, satorux1
CC:
chromium-reviews, stevenjb+watch_chromium.org, hashimoto+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fixed 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -4 lines) Patch
M chrome/browser/ui/webui/help/version_updater_chromeos.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/help/version_updater_chromeos.cc View 1 2 3 4 5 6 7 4 chunks +16 lines, -3 lines 0 comments Download
A chrome/browser/ui/webui/help/version_updater_chromeos_unittest.cc View 1 2 3 4 5 6 7 1 chunk +151 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/fake_update_engine_client.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_update_engine_client.cc View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 20 (3 generated)
ygorshenin1
+ jhawkins@ for chrome/* + satorux@ for chromeos/*
6 years, 3 months ago (2014-09-18 14:09:18 UTC) #2
James Hawkins
https://codereview.chromium.org/578293002/diff/20001/chrome/browser/ui/webui/help/version_updater_chromeos.h File chrome/browser/ui/webui/help/version_updater_chromeos.h (right): https://codereview.chromium.org/578293002/diff/20001/chrome/browser/ui/webui/help/version_updater_chromeos.h#newcode61 chrome/browser/ui/webui/help/version_updater_chromeos.h:61: bool can_update_for_testing_; Why is this necessary? https://codereview.chromium.org/578293002/diff/20001/chrome/browser/ui/webui/help/version_updater_chromeos_unittest.cc File chrome/browser/ui/webui/help/version_updater_chromeos_unittest.cc ...
6 years, 3 months ago (2014-09-18 15:48:22 UTC) #3
ygorshenin1
https://codereview.chromium.org/578293002/diff/20001/chrome/browser/ui/webui/help/version_updater_chromeos.h File chrome/browser/ui/webui/help/version_updater_chromeos.h (right): https://codereview.chromium.org/578293002/diff/20001/chrome/browser/ui/webui/help/version_updater_chromeos.h#newcode61 chrome/browser/ui/webui/help/version_updater_chromeos.h:61: bool can_update_for_testing_; To simplify testing and omit unnecessary checks ...
6 years, 3 months ago (2014-09-18 15:59:07 UTC) #4
ygorshenin1
PTAL
6 years, 3 months ago (2014-09-18 15:59:15 UTC) #5
James Hawkins
https://codereview.chromium.org/578293002/diff/40001/chrome/browser/ui/webui/help/version_updater_chromeos.cc File chrome/browser/ui/webui/help/version_updater_chromeos.cc (right): https://codereview.chromium.org/578293002/diff/40001/chrome/browser/ui/webui/help/version_updater_chromeos.cc#newcode221 chrome/browser/ui/webui/help/version_updater_chromeos.cc:221: bool VersionUpdaterCros::EnsureCanUpdate(const StatusCallback& callback) { What change required this ...
6 years, 3 months ago (2014-09-18 16:34:03 UTC) #6
ygorshenin1
PTAL https://codereview.chromium.org/578293002/diff/40001/chrome/browser/ui/webui/help/version_updater_chromeos.cc File chrome/browser/ui/webui/help/version_updater_chromeos.cc (right): https://codereview.chromium.org/578293002/diff/40001/chrome/browser/ui/webui/help/version_updater_chromeos.cc#newcode221 chrome/browser/ui/webui/help/version_updater_chromeos.cc:221: bool VersionUpdaterCros::EnsureCanUpdate(const StatusCallback& callback) { On 2014/09/18 16:34:03, ...
6 years, 3 months ago (2014-09-18 19:46:47 UTC) #7
satorux1
chromeos/dbus lgtm with a comment: https://codereview.chromium.org/578293002/diff/60001/chromeos/dbus/fake_update_engine_client.h File chromeos/dbus/fake_update_engine_client.h (right): https://codereview.chromium.org/578293002/diff/60001/chromeos/dbus/fake_update_engine_client.h#newcode68 chromeos/dbus/fake_update_engine_client.h:68: int request_update_check_call_count() const { ...
6 years, 3 months ago (2014-09-22 07:02:11 UTC) #8
ygorshenin1
James, PTAL. https://codereview.chromium.org/578293002/diff/60001/chromeos/dbus/fake_update_engine_client.h File chromeos/dbus/fake_update_engine_client.h (right): https://codereview.chromium.org/578293002/diff/60001/chromeos/dbus/fake_update_engine_client.h#newcode68 chromeos/dbus/fake_update_engine_client.h:68: int request_update_check_call_count() const { On 2014/09/22 07:02:11, ...
6 years, 3 months ago (2014-09-22 09:23:26 UTC) #9
James Hawkins
https://codereview.chromium.org/578293002/diff/40001/chrome/browser/ui/webui/help/version_updater_chromeos.h File chrome/browser/ui/webui/help/version_updater_chromeos.h (right): https://codereview.chromium.org/578293002/diff/40001/chrome/browser/ui/webui/help/version_updater_chromeos.h#newcode48 chrome/browser/ui/webui/help/version_updater_chromeos.h:48: bool EnsureCanUpdate(const StatusCallback& callback); On 2014/09/18 19:46:47, ygorshenin1 wrote: ...
6 years, 3 months ago (2014-09-22 16:48:31 UTC) #10
ygorshenin1
PTAL https://codereview.chromium.org/578293002/diff/80001/chrome/browser/ui/webui/help/version_updater_chromeos.h File chrome/browser/ui/webui/help/version_updater_chromeos.h (right): https://codereview.chromium.org/578293002/diff/80001/chrome/browser/ui/webui/help/version_updater_chromeos.h#newcode56 chrome/browser/ui/webui/help/version_updater_chromeos.h:56: // True if an update check should be ...
6 years, 3 months ago (2014-09-22 19:01:54 UTC) #12
James Hawkins
https://codereview.chromium.org/578293002/diff/40001/chrome/browser/ui/webui/help/version_updater_chromeos.h File chrome/browser/ui/webui/help/version_updater_chromeos.h (right): https://codereview.chromium.org/578293002/diff/40001/chrome/browser/ui/webui/help/version_updater_chromeos.h#newcode48 chrome/browser/ui/webui/help/version_updater_chromeos.h:48: bool EnsureCanUpdate(const StatusCallback& callback); On 2014/09/22 16:48:31, James Hawkins ...
6 years, 3 months ago (2014-09-22 20:23:08 UTC) #13
ygorshenin1
I've decided to move EnsureCanUpdate() function back to an anonymous namespace, where it was before ...
6 years, 3 months ago (2014-09-23 10:23:16 UTC) #14
James Hawkins
lgtm
6 years, 2 months ago (2014-09-24 22:05:46 UTC) #15
ygorshenin1
Many thanks!
6 years, 2 months ago (2014-09-25 09:03:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/578293002/160001
6 years, 2 months ago (2014-09-25 09:04:30 UTC) #18
commit-bot: I haz the power
Committed patchset #8 (id:160001) as 3a7c9fc642696135e3937663d51debc98cb7e9b5
6 years, 2 months ago (2014-09-25 11:40:56 UTC) #19
commit-bot: I haz the power
6 years, 2 months ago (2014-09-25 11:41:26 UTC) #20
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/84a24d2929796a717aef73ec7d85a87e09cd251d
Cr-Commit-Position: refs/heads/master@{#296693}

Powered by Google App Engine
This is Rietveld 408576698