Index: ash/desktop_background/desktop_background_controller.cc |
diff --git a/ash/desktop_background/desktop_background_controller.cc b/ash/desktop_background/desktop_background_controller.cc |
index fe111c05e098aabce876793c002f18a606ee2336..bada38371e7d24c52bdf292121dc56793af23acb 100644 |
--- a/ash/desktop_background/desktop_background_controller.cc |
+++ b/ash/desktop_background/desktop_background_controller.cc |
@@ -258,10 +258,10 @@ bool DesktopBackgroundController::ReparentBackgroundWidgets(int src_container, |
DesktopBackgroundWidgetController* desktop_controller = |
root_window_controller->wallpaper_controller(); |
if (desktop_controller) { |
- moved |= desktop_controller->Reparent( |
- root_window_controller->root_window(), |
- src_container, |
- dst_container); |
+ moved |= |
+ desktop_controller->Reparent(root_window_controller->GetRootWindow(), |
+ src_container, |
+ dst_container); |
} |
// During desktop show animations the controller lives in |
// AnimatingDesktopController owned by RootWindowController. |
@@ -275,7 +275,7 @@ bool DesktopBackgroundController::ReparentBackgroundWidgets(int src_container, |
NULL; |
if (animating_controller) { |
moved |= animating_controller->Reparent( |
- root_window_controller->root_window(), |
+ root_window_controller->GetRootWindow(), |
src_container, |
dst_container); |
} |