| Index: chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc
|
| diff --git a/chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc b/chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc
|
| index ed4cc7b35ad7ff6a50c2207f9d393a831bf164e9..711f193e44abfbe240d20dc84feb6b7a68d2a2a1 100644
|
| --- a/chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc
|
| +++ b/chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc
|
| @@ -7,9 +7,11 @@
|
| #include "ash/shell.h"
|
| #include "ash/desktop_background/desktop_background_controller.h"
|
| #include "ash/desktop_background/desktop_background_resources.h"
|
| +#include "ash/wm/window_animations.h"
|
| #include "base/logging.h"
|
| #include "chrome/browser/chromeos/extensions/wallpaper_manager_api.h"
|
| #include "chrome/browser/chromeos/login/user_manager.h"
|
| +#include "chrome/browser/chromeos/login/wizard_controller.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_finder.h"
|
| @@ -29,6 +31,15 @@ class UserWallpaperDelegate: public ash::UserWallpaperDelegate {
|
| virtual ~UserWallpaperDelegate() {
|
| }
|
|
|
| + virtual ash::WindowVisibilityAnimationType GetAnimationType() OVERRIDE {
|
| + bool is_registered = WizardController::IsDeviceRegistered();
|
| + // TODO(nkostylev): Figure out whether this would affect autotests as well.
|
| + if (is_registered)
|
| + return ash::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE;
|
| + else
|
| + return ash::WINDOW_VISIBILITY_ANIMATION_TYPE_BRIGHTNESS_GRAYSCALE;
|
| + }
|
| +
|
| virtual void InitializeWallpaper() OVERRIDE {
|
| chromeos::UserManager::Get()->InitializeWallpaper();
|
| }
|
|
|