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

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.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: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
index bf4b2022b740868c18438c3e42eed859474c3ae2..d7442027cef1e02902bc401258a6c8f5ab68220c 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
@@ -8,7 +8,6 @@
#include "ash/common/shelf/shelf_delegate.h"
#include "ash/common/wm/maximize_mode/maximize_mode_controller.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"
@@ -688,7 +687,7 @@ void ArcAppWindowLauncherController::UnregisterApp(
void ArcAppWindowLauncherController::SetOrientationLockForAppWindow(
AppWindow* app_window) {
ash::WmWindow* window =
- ash::WmLookup::Get()->GetWindowForWidget(app_window->widget());
+ ash::WmWindow::Get(app_window->widget()->GetNativeWindow());
if (!window)
return;
AppWindowInfo* info = GetAppWindowInfoForTask(app_window->task_id());

Powered by Google App Engine
This is Rietveld 408576698