| Index: printing/printing_context_win.cc
|
| diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc
|
| index 678e7f2c6ff6fb6b5c608aff8fc0aa8a14b7b3f6..7822429baad0f29d8e53f128d7bab073c822bbd8 100644
|
| --- a/printing/printing_context_win.cc
|
| +++ b/printing/printing_context_win.cc
|
| @@ -17,11 +17,8 @@
|
| #include "printing/printing_utils.h"
|
| #include "printing/units.h"
|
| #include "skia/ext/platform_device.h"
|
| -
|
| -#if defined(USE_AURA)
|
| #include "ui/aura/remote_window_tree_host_win.h"
|
| #include "ui/aura/window.h"
|
| -#endif
|
|
|
| namespace printing {
|
|
|
| @@ -362,14 +359,8 @@ PrintingContext::Result PrintingContextWin::InitializeSettings(
|
|
|
| HWND PrintingContextWin::GetRootWindow(gfx::NativeView view) {
|
| HWND window = NULL;
|
| -#if defined(USE_AURA)
|
| if (view)
|
| window = view->GetHost()->GetAcceleratedWidget();
|
| -#else
|
| - if (view && IsWindow(view)) {
|
| - window = GetAncestor(view, GA_ROOTOWNER);
|
| - }
|
| -#endif
|
| if (!window) {
|
| // TODO(maruel): crbug.com/1214347 Get the right browser window instead.
|
| return GetDesktopWindow();
|
|
|