| Index: chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.cc
|
| diff --git a/chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.cc b/chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.cc
|
| index 8d7c3d69324d47f383c720d85fcc5fd6dff2054d..84867f5e947ed4f2b9a64be131152be8f5ba8cbb 100644
|
| --- a/chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.cc
|
| +++ b/chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.cc
|
| @@ -12,13 +12,13 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chromeos/chromeos_switches.h"
|
| #include "content/public/browser/web_ui.h"
|
| -#include "ui/events/devices/device_data_manager.h"
|
| +#include "ui/events/devices/input_device_manager.h"
|
|
|
| namespace {
|
|
|
| bool HasExternalKeyboard() {
|
| for (const ui::InputDevice& keyboard :
|
| - ui::DeviceDataManager::GetInstance()->keyboard_devices()) {
|
| + ui::InputDeviceManager::GetInstance()->GetKeyboardDevices()) {
|
| if (keyboard.type == ui::InputDeviceType::INPUT_DEVICE_EXTERNAL)
|
| return true;
|
| }
|
| @@ -49,7 +49,7 @@ void KeyboardHandler::RegisterMessages() {
|
| }
|
|
|
| void KeyboardHandler::OnJavascriptAllowed() {
|
| - observer_.Add(ui::DeviceDataManager::GetInstance());
|
| + observer_.Add(ui::InputDeviceManager::GetInstance());
|
| }
|
|
|
| void KeyboardHandler::OnJavascriptDisallowed() {
|
|
|