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

Unified Diff: ash/common/frame/header_painter_util.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
« no previous file with comments | « ash/common/frame/custom_frame_view_ash.cc ('k') | ash/common/frame/header_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/frame/header_painter_util.cc
diff --git a/ash/common/frame/header_painter_util.cc b/ash/common/frame/header_painter_util.cc
index f9e1595840e3c1191b8bb01bfdae9a6da3aa1a30..6d5a11f2ed6259b676b6b0b0a7405aa038abc2ac 100644
--- a/ash/common/frame/header_painter_util.cc
+++ b/ash/common/frame/header_painter_util.cc
@@ -6,7 +6,6 @@
#include <algorithm>
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_window.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/layer_animator.h"
@@ -83,7 +82,7 @@ bool HeaderPainterUtil::CanAnimateActivation(views::Widget* widget) {
// rate.
// TODO(sky): Expose a better way to determine this rather than assuming the
// parent is a toplevel container.
- WmWindow* window = WmLookup::Get()->GetWindowForWidget(widget);
+ WmWindow* window = WmWindow::Get(widget->GetNativeWindow());
// TODO(sky): GetParent()->GetLayer() is for mash until animations ported.
if (!window || !window->GetParent() || !window->GetParent()->GetLayer())
return true;
« no previous file with comments | « ash/common/frame/custom_frame_view_ash.cc ('k') | ash/common/frame/header_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698