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

Unified Diff: ash/common/wm/overview/scoped_transform_overview_window.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/wm/overview/scoped_transform_overview_window.cc
diff --git a/ash/common/wm/overview/scoped_transform_overview_window.cc b/ash/common/wm/overview/scoped_transform_overview_window.cc
index 393b02ac9b4b6a900f6ab929ca1bc7c5d8a8b441..f6172e773c6f6867db626482eede45d18671e3c3 100644
--- a/ash/common/wm/overview/scoped_transform_overview_window.cc
+++ b/ash/common/wm/overview/scoped_transform_overview_window.cc
@@ -11,7 +11,6 @@
#include "ash/common/wm/overview/scoped_overview_animation_settings_factory.h"
#include "ash/common/wm/overview/window_selector_item.h"
#include "ash/common/wm/window_state.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/common/wm_window_property.h"
@@ -468,9 +467,8 @@ void ScopedTransformOverviewWindow::OnMouseEvent(ui::MouseEvent* event) {
WmWindow* ScopedTransformOverviewWindow::GetOverviewWindowForMinimizedState()
const {
- return minimized_widget_
- ? WmLookup::Get()->GetWindowForWidget(minimized_widget_.get())
- : nullptr;
+ return minimized_widget_ ? WmWindow::Get(minimized_widget_->GetNativeWindow())
+ : nullptr;
}
void ScopedTransformOverviewWindow::CreateMirrorWindowForMinimizedState() {
« no previous file with comments | « ash/common/wm/overview/cleanup_animation_observer_unittest.cc ('k') | ash/common/wm/overview/window_grid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698