Skip to content

Commit

Permalink
OOBE: Do not show HID Detections screen if skipped to login for tests
Browse files Browse the repository at this point in the history
Fixed: 1152239
Change-Id: Icfea77c5ef1e58b78516c548be64e6f98c87201c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2563486
Auto-Submit: Roman Sorokin [CET] <rsorokin@chromium.org>
Commit-Queue: Roman Aleksandrov <raleksandrov@google.com>
Reviewed-by: Roman Aleksandrov <raleksandrov@google.com>
Cr-Commit-Position: refs/heads/master@{#831585}
  • Loading branch information
Roman Sorokin authored and Commit Bot committed Nov 27, 2020
1 parent 0461830 commit 9152a58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chrome/browser/chromeos/login/wizard_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1709,9 +1709,11 @@ void WizardController::OnHIDScreenNecessityCheck(bool screen_needed) {
if (!GetOobeUI())
return;

// Check for tests configuration.
if (wizard_context_->skip_to_update_for_tests)
// Check for tests configurations.
if (wizard_context_->skip_to_update_for_tests ||
wizard_context_->skip_to_login_for_tests) {
return;
}

if (screen_needed)
ShowHIDDetectionScreen();
Expand Down

0 comments on commit 9152a58

Please sign in to comment.