Chromium Code Reviews| Index: ash/common/drag_drop/drag_image_view.cc |
| diff --git a/ash/common/drag_drop/drag_image_view.cc b/ash/common/drag_drop/drag_image_view.cc |
| index 2f9a9ffb6b6077142def579666bf425e138498cb..e30617af9bfccf2ee73d10e656a122b567b124a5 100644 |
| --- a/ash/common/drag_drop/drag_image_view.cc |
| +++ b/ash/common/drag_drop/drag_image_view.cc |
| @@ -6,7 +6,6 @@ |
| #include <memory> |
| -#include "ash/common/wm_lookup.h" |
| #include "ash/common/wm_window.h" |
| #include "ash/public/cpp/shell_window_ids.h" |
| #include "ash/root_window_controller.h" |
| @@ -122,7 +121,7 @@ void DragImageView::OnPaint(gfx::Canvas* canvas) { |
| if (GetImage().size() == drag_image_size_) { |
| canvas->DrawImageInt(GetImage(), 0, 0); |
| } else { |
| - WmWindow* window = WmLookup::Get()->GetWindowForWidget(widget_.get()); |
| + WmWindow* window = WmWindow::Get(widget_.get()->GetNativeWindow()); |
|
sky
2017/03/02 19:04:52
no .get()
thanhph1
2017/03/02 22:24:17
Done.
|
| const float device_scale = |
| window->GetDisplayNearestWindow().device_scale_factor(); |
| // The drag image already has device scale factor applied. But |