| Index: chrome/browser/chromeos/accessibility/select_to_speak_event_handler.cc
|
| diff --git a/chrome/browser/chromeos/accessibility/select_to_speak_event_handler.cc b/chrome/browser/chromeos/accessibility/select_to_speak_event_handler.cc
|
| index e4d237ae8fb8e947013ee1efcb0815a1f5857e35..4bc5f681e16cd6d90e1f33291c6f2ffbe1cf7cee 100644
|
| --- a/chrome/browser/chromeos/accessibility/select_to_speak_event_handler.cc
|
| +++ b/chrome/browser/chromeos/accessibility/select_to_speak_event_handler.cc
|
| @@ -19,13 +19,17 @@
|
| namespace chromeos {
|
|
|
| SelectToSpeakEventHandler::SelectToSpeakEventHandler() {
|
| - if (ash::Shell::HasInstance())
|
| - ash::Shell::GetInstance()->AddPreTargetHandler(this);
|
| + if (ash::Shell::HasInstance()) {
|
| + ash::Shell::GetInstance()->GetPrimaryRootWindow()->AddPreTargetHandler(
|
| + this);
|
| + }
|
| }
|
|
|
| SelectToSpeakEventHandler::~SelectToSpeakEventHandler() {
|
| - if (ash::Shell::HasInstance())
|
| - ash::Shell::GetInstance()->RemovePreTargetHandler(this);
|
| + if (ash::Shell::HasInstance()) {
|
| + ash::Shell::GetInstance()->GetPrimaryRootWindow()->RemovePreTargetHandler(
|
| + this);
|
| + }
|
| }
|
|
|
| void SelectToSpeakEventHandler::OnKeyEvent(ui::KeyEvent* event) {
|
|
|