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 3df47d5922b62deeda4148ac58d31e6b27d4a39b..f804dd8f8f1729c7cc3c1c5a00de8a9403f1c0a2 100644 |
--- a/ash/desktop_background/desktop_background_controller.cc |
+++ b/ash/desktop_background/desktop_background_controller.cc |
@@ -260,6 +260,11 @@ void DesktopBackgroundController::OnWallpaperLoadCompleted( |
wallpaper_op_ = NULL; |
} |
+void DesktopBackgroundController::NotifyAnimationFinished() { |
+ Shell* shell = Shell::GetInstance(); |
+ shell->user_wallpaper_delegate()->OnWallpaperAnimationFinished(); |
+} |
+ |
ui::Layer* DesktopBackgroundController::SetColorLayerForContainer( |
SkColor color, |
aura::RootWindow* root_window, |
@@ -269,6 +274,11 @@ ui::Layer* DesktopBackgroundController::SetColorLayerForContainer( |
Shell::GetContainer(root_window,container_id)-> |
layer()->Add(background_layer); |
+ |
+ MessageLoop::current()->PostTask(FROM_HERE, |
+ base::Bind(&DesktopBackgroundController::NotifyAnimationFinished, |
+ weak_ptr_factory_.GetWeakPtr())); |
+ |
return background_layer; |
} |