| Index: ash/common/wallpaper/wallpaper_view.cc
|
| diff --git a/ash/common/wallpaper/wallpaper_view.cc b/ash/common/wallpaper/wallpaper_view.cc
|
| index 2aed6b6f4b11b5917151d17b5ef87c2bed771da7..2233d571e0181d8d64b5297bf91385270abfb6ef 100644
|
| --- a/ash/common/wallpaper/wallpaper_view.cc
|
| +++ b/ash/common/wallpaper/wallpaper_view.cc
|
| @@ -12,6 +12,7 @@
|
| #include "ash/common/wm_shell.h"
|
| #include "ash/common/wm_window.h"
|
| #include "ash/root_window_controller.h"
|
| +#include "ash/shell.h"
|
| #include "ui/display/display.h"
|
| #include "ui/display/manager/managed_display_info.h"
|
| #include "ui/display/screen.h"
|
| @@ -125,7 +126,8 @@ void WallpaperView::OnPaint(gfx::Canvas* canvas) {
|
| // to fill the wallpaper. Ideally the image should be larger than the largest
|
| // display supported, if not we will scale and center it if the layout is
|
| // wallpaper::WALLPAPER_LAYOUT_CENTER_CROPPED.
|
| - WallpaperController* controller = WmShell::Get()->wallpaper_controller();
|
| + WallpaperController* controller =
|
| + Shell::GetInstance()->wallpaper_controller();
|
| gfx::ImageSkia wallpaper = controller->GetWallpaper();
|
| wallpaper::WallpaperLayout layout = controller->GetWallpaperLayout();
|
|
|
| @@ -191,7 +193,8 @@ void WallpaperView::ShowContextMenuForView(views::View* source,
|
| }
|
|
|
| views::Widget* CreateWallpaper(WmWindow* root_window, int container_id) {
|
| - WallpaperController* controller = WmShell::Get()->wallpaper_controller();
|
| + WallpaperController* controller =
|
| + Shell::GetInstance()->wallpaper_controller();
|
| WallpaperDelegate* wallpaper_delegate = WmShell::Get()->wallpaper_delegate();
|
|
|
| views::Widget* wallpaper_widget = new views::Widget;
|
|
|