Index: ash/shelf/wm_shelf.cc |
diff --git a/ash/shelf/wm_shelf.cc b/ash/shelf/wm_shelf.cc |
index 2620c8c0b9b512d60b74e80bc0316ce349828600..c47d951f8070344054623d5cafd6224b72795e8e 100644 |
--- a/ash/shelf/wm_shelf.cc |
+++ b/ash/shelf/wm_shelf.cc |
@@ -73,8 +73,8 @@ WmShelf::WmShelf() : shelf_locking_manager_(this) { |
WmShelf::~WmShelf() {} |
// static |
-WmShelf* WmShelf::ForWindow(WmWindow* window) { |
- return window->GetRootWindowController()->GetShelf(); |
+WmShelf* WmShelf::ForWindow(aura::Window* window) { |
+ return GetRootWindowController(window->GetRootWindow())->GetShelf(); |
} |
// static |