Commit 231e4893 authored by Alexander Alekseev's avatar Alexander Alekseev Committed by Commit Bot

OOBE; Disable HID detection screen for tablet-mode-enabled devices.

Do not show HID detection screen for devices that have virtual keyboard and
pointing device.

Bug: 890142
Change-Id: I0fa128664166a566fead192174253d1e6fef878a
Reviewed-on: https://chromium-review.googlesource.com/c/1297399Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Commit-Queue: Alexander Alekseev <alemate@chromium.org>
Cr-Commit-Position: refs/heads/master@{#602147}
parent bb19b363
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "ash/public/cpp/ash_switches.h"
#include "base/bind.h" #include "base/bind.h"
#include "base/callback_helpers.h" #include "base/callback_helpers.h"
#include "base/command_line.h" #include "base/command_line.h"
...@@ -164,7 +165,9 @@ const chromeos::OobeScreen kResumableScreens[] = { ...@@ -164,7 +165,9 @@ const chromeos::OobeScreen kResumableScreens[] = {
bool CanShowHIDDetectionScreen() { bool CanShowHIDDetectionScreen() {
return !TabletModeClient::Get()->tablet_mode_enabled() && return !TabletModeClient::Get()->tablet_mode_enabled() &&
!base::CommandLine::ForCurrentProcess()->HasSwitch( !base::CommandLine::ForCurrentProcess()->HasSwitch(
chromeos::switches::kDisableHIDDetectionOnOOBE); chromeos::switches::kDisableHIDDetectionOnOOBE) &&
!base::CommandLine::ForCurrentProcess()->HasSwitch(
ash::switches::kAshEnableTabletMode);
} }
bool IsResumableScreen(chromeos::OobeScreen screen) { bool IsResumableScreen(chromeos::OobeScreen screen) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment