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

Unified Diff: ash/system/web_notification/web_notification_tray_unittest.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Remove wm_lookup. 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/system/web_notification/web_notification_tray_unittest.cc
diff --git a/ash/system/web_notification/web_notification_tray_unittest.cc b/ash/system/web_notification/web_notification_tray_unittest.cc
index ed0953bbee603de05e6b9b2338517095660dc8de..7150a7e720403092974685c211981f165b59f762 100644
--- a/ash/system/web_notification/web_notification_tray_unittest.cc
+++ b/ash/system/web_notification/web_notification_tray_unittest.cc
@@ -15,7 +15,6 @@
#include "ash/common/system/web_notification/ash_popup_alignment_delegate.h"
#include "ash/common/test/test_system_tray_delegate.h"
#include "ash/common/wm/window_state.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/shell.h"
@@ -398,8 +397,7 @@ TEST_F(WebNotificationTrayTest, PopupAndFullscreen) {
// Put |widget| into fullscreen without forcing the shelf to hide. Currently,
// this is used by immersive fullscreen and forces the shelf to be auto
// hidden.
- WmLookup::Get()
- ->GetWindowForWidget(widget.get())
+ WmWindow::Get(widget.get()->GetNativeWindow())
->GetWindowState()
->set_hide_shelf_when_fullscreen(false);
widget->SetFullscreen(true);

Powered by Google App Engine
This is Rietveld 408576698