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

Unified Diff: ash/common/metrics/pointer_metrics_recorder.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/frame/header_view.cc ('k') | ash/common/metrics/pointer_metrics_recorder_unittest.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.cc
diff --git a/ash/common/metrics/pointer_metrics_recorder.cc b/ash/common/metrics/pointer_metrics_recorder.cc
index 4a372fd7fda26d2f331d3c4b95efba32a373f29e..be9e91cb366f2259da032867b64ca5a1c8db9abe 100644
--- a/ash/common/metrics/pointer_metrics_recorder.cc
+++ b/ash/common/metrics/pointer_metrics_recorder.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/shared/app_types.h"
@@ -39,7 +38,7 @@ int GetDestination(views::Widget* target) {
if (!target)
return static_cast<int>(AppType::OTHERS);
- WmWindow* window = WmLookup::Get()->GetWindowForWidget(target);
+ WmWindow* window = WmWindow::Get(target->GetNativeWindow());
DCHECK(window);
return window->GetAppType();
}
« no previous file with comments | « ash/common/frame/header_view.cc ('k') | ash/common/metrics/pointer_metrics_recorder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698