Index: ash/wm/system_gesture_event_filter.cc |
diff --git a/ash/wm/system_gesture_event_filter.cc b/ash/wm/system_gesture_event_filter.cc |
index 98cbac93c6344c4d67d52e8e79398a8944f7d2b5..1db677f86793ac0bc507b0ccef0bce3d5c8cd480 100644 |
--- a/ash/wm/system_gesture_event_filter.cc |
+++ b/ash/wm/system_gesture_event_filter.cc |
@@ -6,6 +6,7 @@ |
#include "ash/accelerators/accelerator_controller.h" |
#include "ash/launcher/launcher.h" |
+#include "ash/root_window_controller.h" |
#include "ash/screen_ash.h" |
#include "ash/shell.h" |
#include "ash/shell_window_ids.h" |
@@ -79,9 +80,9 @@ Widget* CreateAffordanceWidget() { |
params.transparent = true; |
widget->Init(params); |
widget->SetOpacity(0xFF); |
- widget->GetNativeWindow()->SetParent(ash::Shell::GetContainer( |
- ash::Shell::GetPrimaryRootWindow(), |
- ash::internal::kShellWindowId_OverlayContainer)); |
+ widget->GetNativeWindow()->SetParent( |
+ ash::Shell::GetPrimaryRootWindowController()->GetContainer( |
+ ash::internal::kShellWindowId_OverlayContainer)); |
ash::SetWindowVisibilityAnimationTransition(widget->GetNativeView(), |
ash::ANIMATE_HIDE); |
return widget; |