| Index: ash/shelf/shelf_widget_unittest.cc
|
| diff --git a/ash/shelf/shelf_widget_unittest.cc b/ash/shelf/shelf_widget_unittest.cc
|
| index 2e8941afa719b062ec71bc5f0d8cf8c545dc6899..69e43154515759ee46e5f8125d6427f56cdc8e5e 100644
|
| --- a/ash/shelf/shelf_widget_unittest.cc
|
| +++ b/ash/shelf/shelf_widget_unittest.cc
|
| @@ -214,9 +214,8 @@
|
| gfx::Rect widget_bounds = widget->GetWindowBoundsInScreen();
|
| EXPECT_TRUE(widget_bounds.Intersects(shelf_bounds));
|
|
|
| - aura::Window* root = widget->GetNativeWindow()->GetRootWindow();
|
| - ui::EventTargeter* targeter =
|
| - root->GetHost()->dispatcher()->GetDefaultEventTargeter();
|
| + ui::EventTarget* root = widget->GetNativeWindow()->GetRootWindow();
|
| + ui::EventTargeter* targeter = root->GetEventTargeter();
|
| {
|
| // Create a mouse-event targeting the top of the shelf widget. The
|
| // window-targeter should find |widget| as the target (instead of the
|
| @@ -291,9 +290,8 @@
|
| widget->Init(params);
|
| widget->Show();
|
|
|
| - aura::Window* root = shelf_widget->GetNativeWindow()->GetRootWindow();
|
| - ui::EventTargeter* targeter =
|
| - root->GetHost()->dispatcher()->GetDefaultEventTargeter();
|
| + ui::EventTarget* root = shelf_widget->GetNativeWindow()->GetRootWindow();
|
| + ui::EventTargeter* targeter = root->GetEventTargeter();
|
| // Touch just over the shelf. Since the shelf is visible, the window-targeter
|
| // should not find the shelf as the target.
|
| {
|
|
|