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

Issue 2676383002: cros: ensure update check to complete at OOBE before allowing login (Closed)

Created:
3 years, 10 months ago by Ben Chan
Modified:
3 years, 10 months ago
Reviewers:
achuithb
CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: ensure update check to complete at OOBE before allowing login This CL updates the CrOS login flow to ensure the update check is complete at OOBE before allowing the first user to log in. Without a successful check for update, we can't be sure if there is a critical update. To play safe and avoid missing any critical update during OOBE, we modify the UI simply goes back to the network selection screen instead of proceeding to the login screen. For the non-OOBE flow, we don't want to block the users while failing to check for update, and thus preseve the existing UI behavior to proceed to the login screen. BUG=chromium:683424 TEST=Tested the following: 1. Under the OOBE scenario, interrupt the network connectivity when the UI is checking for update. Verify that the UI goes back to the network selection screen. 2. Repeat (1) under the non-OOBE scenario. Verify that the UI proceeds to the login screen. Review-Url: https://codereview.chromium.org/2676383002 Cr-Commit-Position: refs/heads/master@{#450428} Committed: https://chromium.googlesource.com/chromium/src/+/ec6cb24b6ad420b32f0836b8e3d4767378b90b93

Patch Set 1 : cros: ensure update check to complete at OOBE before allowing login #

Patch Set 2 : cros: ensure update check to complete at OOBE before allowing login #

Total comments: 4

Patch Set 3 : cros: ensure update check to complete at OOBE before allowing login #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -10 lines) Patch
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 1 chunk +15 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller_browsertest.cc View 3 chunks +37 lines, -4 lines 0 comments Download

Messages

Total messages: 36 (24 generated)
Ben Chan
3 years, 10 months ago (2017-02-06 22:17:17 UTC) #12
achuithb
Are you sure this doesn't break developer flow? Have you tried creating an image locally, ...
3 years, 10 months ago (2017-02-06 22:44:03 UTC) #13
Ben Chan
On 2017/02/06 22:44:03, achuithb wrote: > Are you sure this doesn't break developer flow? > ...
3 years, 10 months ago (2017-02-10 16:49:18 UTC) #14
achuithb
On 2017/02/10 16:49:18, Ben Chan wrote: > On 2017/02/06 22:44:03, achuithb wrote: > > Are ...
3 years, 10 months ago (2017-02-13 14:02:12 UTC) #15
Ben Chan
On 2017/02/13 14:02:12, achuithb wrote: > On 2017/02/10 16:49:18, Ben Chan wrote: > > On ...
3 years, 10 months ago (2017-02-13 19:54:38 UTC) #19
Ben Chan
On 2017/02/13 19:54:38, Ben Chan wrote: > On 2017/02/13 14:02:12, achuithb wrote: > > On ...
3 years, 10 months ago (2017-02-14 03:59:52 UTC) #26
achuithb
lgtm https://codereview.chromium.org/2676383002/diff/60001/chrome/browser/chromeos/login/wizard_controller.cc File chrome/browser/chromeos/login/wizard_controller.cc (right): https://codereview.chromium.org/2676383002/diff/60001/chrome/browser/chromeos/login/wizard_controller.cc#newcode735 chrome/browser/chromeos/login/wizard_controller.cc:735: bool is_hands_off_mode = nit const https://codereview.chromium.org/2676383002/diff/60001/chrome/browser/chromeos/login/wizard_controller.cc#newcode746 chrome/browser/chromeos/login/wizard_controller.cc:746: if ...
3 years, 10 months ago (2017-02-14 09:05:25 UTC) #27
Ben Chan
https://codereview.chromium.org/2676383002/diff/60001/chrome/browser/chromeos/login/wizard_controller.cc File chrome/browser/chromeos/login/wizard_controller.cc (right): https://codereview.chromium.org/2676383002/diff/60001/chrome/browser/chromeos/login/wizard_controller.cc#newcode735 chrome/browser/chromeos/login/wizard_controller.cc:735: bool is_hands_off_mode = On 2017/02/14 09:05:25, achuithb wrote: > ...
3 years, 10 months ago (2017-02-14 18:31:11 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2676383002/80001
3 years, 10 months ago (2017-02-14 18:32:25 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:80001) as https://chromium.googlesource.com/chromium/src/+/ec6cb24b6ad420b32f0836b8e3d4767378b90b93
3 years, 10 months ago (2017-02-14 19:16:45 UTC) #34
achuithb
A revert of this CL (patchset #3 id:80001) has been created in https://codereview.chromium.org/2699633004/ by achuith@chromium.org. ...
3 years, 10 months ago (2017-02-16 14:15:39 UTC) #35
achuithb
3 years, 10 months ago (2017-02-16 14:20:05 UTC) #36
Message was sent while issue was closed.
On 2017/02/13 14:02:12, achuithb wrote:
> On 2017/02/10 16:49:18, Ben Chan wrote:
> > On 2017/02/06 22:44:03, achuithb wrote:
> > > Are you sure this doesn't break developer flow?
> > > 
> > > Have you tried creating an image locally, flashing it onto a DUT and
logging
> > in?
> > > Doesn't the update check fail for this case?
> > 
> > I tried building a local image as you suggested. With a non-official build,
> the
> > update screen could be interrupted/bypassed by pressing ESC key. With an
> > official build (e.g. built with release trybot), the update check went
through
> > as long as there is network connectivity and proceeded to the login screen.
> 
> Also could you please check that local linux builds with chromeos=1 continue
to
> work.

Not sure how this was tested, but it's pretty clearly broken. Clicking on the
'Next' button on the network screen does nothing. This is a pretty serious
blocker for chromeos developers, so I'm going to revert this.

Powered by Google App Engine
This is Rietveld 408576698