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

Unified Diff: ash/common/metrics/pointer_metrics_recorder_unittest.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/metrics/pointer_metrics_recorder.cc ('k') | ash/common/shelf/overflow_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/metrics/pointer_metrics_recorder_unittest.cc
diff --git a/ash/common/metrics/pointer_metrics_recorder_unittest.cc b/ash/common/metrics/pointer_metrics_recorder_unittest.cc
index 396cb172f55d1d840d9deede0dc8e7fdf288b28a..ed212cd78b94ea4a8949778e1dc60b4eb73ce677 100644
--- a/ash/common/metrics/pointer_metrics_recorder_unittest.cc
+++ b/ash/common/metrics/pointer_metrics_recorder_unittest.cc
@@ -5,7 +5,6 @@
#include "ash/common/metrics/pointer_metrics_recorder.h"
#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
@@ -159,7 +158,7 @@ TEST_F(PointerMetricsRecorderTest, DownEventPerDestination) {
ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE),
base::TimeTicks());
- WmWindow* window = WmLookup::Get()->GetWindowForWidget(target.get());
+ WmWindow* window = WmWindow::Get(target->GetNativeWindow());
CHECK(window);
window->SetAppType(static_cast<int>(AppType::OTHERS));
« no previous file with comments | « ash/common/metrics/pointer_metrics_recorder.cc ('k') | ash/common/shelf/overflow_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698