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

Unified Diff: ash/common/system/status_area_layout_manager.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/system/chromeos/palette/palette_tray.cc ('k') | ash/common/system/status_area_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/status_area_layout_manager.cc
diff --git a/ash/common/system/status_area_layout_manager.cc b/ash/common/system/status_area_layout_manager.cc
index 6afaa04882d2530595318b6e39a5999870e665c9..ea622b22d7a6c58bea505784135bf07afb472d0b 100644
--- a/ash/common/system/status_area_layout_manager.cc
+++ b/ash/common/system/status_area_layout_manager.cc
@@ -7,7 +7,6 @@
#include "ash/common/shelf/shelf_layout_manager.h"
#include "ash/common/shelf/shelf_widget.h"
#include "ash/common/system/status_area_widget.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_window.h"
#include "base/auto_reset.h"
@@ -33,9 +32,8 @@ void StatusAreaLayoutManager::SetChildBounds(
const gfx::Rect& requested_bounds) {
// Only need to have the shelf do a layout if the child changing is the status
// area and the shelf isn't in the process of doing a layout.
- if (child !=
- WmLookup::Get()->GetWindowForWidget(
- shelf_widget_->status_area_widget()) ||
+ if (child != WmWindow::Get(
+ shelf_widget_->status_area_widget()->GetNativeWindow()) ||
in_layout_) {
wm::WmSnapToPixelLayoutManager::SetChildBounds(child, requested_bounds);
return;
« no previous file with comments | « ash/common/system/chromeos/palette/palette_tray.cc ('k') | ash/common/system/status_area_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698