Index: chrome/browser/ui/webui/chromeos/login/oobe_ui.cc |
diff --git a/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc b/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc |
index 94f71158bb7b01ca53fcbdb18a7681b015be52ff..d2db7e5a08c7062d2dcdb78b0667fe2388ae3025 100644 |
--- a/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc |
+++ b/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc |
@@ -226,12 +226,17 @@ |
return path; |
} |
-bool IsRemoraRequisitioned() { |
- policy::DeviceCloudPolicyManagerChromeOS* policy_manager = |
- g_browser_process->platform_part() |
- ->browser_policy_connector_chromeos() |
- ->GetDeviceCloudPolicyManager(); |
- return policy_manager && policy_manager->IsRemoraRequisition(); |
+bool IsKeyboardConnected() { |
+ const std::vector<ui::InputDevice>& keyboards = |
+ ui::InputDeviceManager::GetInstance()->GetKeyboardDevices(); |
+ for (const ui::InputDevice& keyboard : keyboards) { |
+ if (keyboard.type == ui::INPUT_DEVICE_INTERNAL || |
+ keyboard.type == ui::INPUT_DEVICE_EXTERNAL) { |
+ return true; |
+ } |
+ } |
+ |
+ return false; |
} |
} // namespace |
@@ -371,7 +376,7 @@ |
// TODO(felixe): Display iteration and primary display selection not supported |
// in Mash. See http://crbug.com/720917. |
- if (!ash_util::IsRunningInMash() && IsRemoraRequisitioned()) |
+ if (!ash_util::IsRunningInMash() && !IsKeyboardConnected()) |
oobe_display_chooser_ = base::MakeUnique<OobeDisplayChooser>(); |
} |