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

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

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up and rebase. 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 8cf3917d962e64ee53dee8c3796ecf8b566912ee..0c27f0c33d54eed15ad9856e205745b6fc153c74 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"
@@ -350,8 +349,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->GetNativeWindow())
->GetWindowState()
->set_hide_shelf_when_fullscreen(false);
widget->SetFullscreen(true);

Powered by Google App Engine
This is Rietveld 408576698