Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Unified Diff: ash/common/wallpaper/wallpaper_view.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up include and modify comment. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/common/wallpaper/wallpaper_view.cc
diff --git a/ash/common/wallpaper/wallpaper_view.cc b/ash/common/wallpaper/wallpaper_view.cc
index 85c14e9d272ed0751ad08199209d3fd06c09a69e..2aed6b6f4b11b5917151d17b5ef87c2bed771da7 100644
--- a/ash/common/wallpaper/wallpaper_view.cc
+++ b/ash/common/wallpaper/wallpaper_view.cc
@@ -9,7 +9,6 @@
#include "ash/common/wallpaper/wallpaper_delegate.h"
#include "ash/common/wallpaper/wallpaper_widget_controller.h"
#include "ash/common/wm/overview/window_selector_controller.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/root_window_controller.h"
@@ -39,7 +38,7 @@ class LayerControlView : public views::View {
// Overrides views::View.
void Layout() override {
- WmWindow* window = WmLookup::Get()->GetWindowForWidget(GetWidget());
+ WmWindow* window = WmWindow::Get(GetWidget()->GetNativeWindow());
// Keep |this| at the bottom since there may be other windows on top of the
// wallpaper view such as an overview mode shield.
window->GetParent()->StackChildAtBottom(window);
@@ -207,7 +206,7 @@ views::Widget* CreateWallpaper(WmWindow* root_window, int container_id) {
wallpaper_widget->SetContentsView(new LayerControlView(new WallpaperView()));
int animation_type = wallpaper_delegate->GetAnimationType();
WmWindow* wallpaper_window =
- WmLookup::Get()->GetWindowForWidget(wallpaper_widget);
+ WmWindow::Get(wallpaper_widget->GetNativeWindow());
wallpaper_window->SetVisibilityAnimationType(animation_type);
RootWindowController* root_window_controller =
« no previous file with comments | « ash/common/system/web_notification/web_notification_tray.cc ('k') | ash/common/wallpaper/wallpaper_widget_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698