| Index: ui/aura/window_tree_host_platform.cc
|
| diff --git a/ui/aura/window_tree_host_platform.cc b/ui/aura/window_tree_host_platform.cc
|
| index 02bb8f76327660616e217cfdd864e82adba25e36..6233739abb039134a68f72c3f65f73f0801a128e 100644
|
| --- a/ui/aura/window_tree_host_platform.cc
|
| +++ b/ui/aura/window_tree_host_platform.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/trace_event/trace_event.h"
|
| #include "build/build_config.h"
|
| #include "ui/aura/window_event_dispatcher.h"
|
| +#include "ui/aura/window_port.h"
|
| #include "ui/compositor/compositor.h"
|
| #include "ui/display/display.h"
|
| #include "ui/display/screen.h"
|
| @@ -52,7 +53,12 @@ WindowTreeHostPlatform::WindowTreeHostPlatform(const gfx::Rect& bounds)
|
| }
|
|
|
| WindowTreeHostPlatform::WindowTreeHostPlatform()
|
| - : widget_(gfx::kNullAcceleratedWidget),
|
| + : WindowTreeHostPlatform(nullptr) {}
|
| +
|
| +WindowTreeHostPlatform::WindowTreeHostPlatform(
|
| + std::unique_ptr<WindowPort> window_port)
|
| + : WindowTreeHost(std::move(window_port)),
|
| + widget_(gfx::kNullAcceleratedWidget),
|
| current_cursor_(ui::kCursorNull) {
|
| CreateCompositor();
|
| }
|
|
|