Index: services/ui/ws/test_utils.cc |
diff --git a/services/ui/ws/test_utils.cc b/services/ui/ws/test_utils.cc |
index 114f2c51679aa52eed9b84eaca5cbe4b9512e94d..b361221494ac004be9975a254e54f405b3674289 100644 |
--- a/services/ui/ws/test_utils.cc |
+++ b/services/ui/ws/test_utils.cc |
@@ -41,10 +41,7 @@ class TestPlatformDisplay : public PlatformDisplay { |
// PlatformDisplay: |
void Init(PlatformDisplayDelegate* delegate) override { |
- // It is necessary to tell the delegate about the ViewportMetrics to make |
- // sure that the DisplayBinding is correctly initialized (and a root-window |
- // is created). |
- delegate->OnViewportMetricsChanged(ViewportMetrics(), display_metrics_); |
+ delegate->CreateRootWindow(display_metrics_.bounds.size()); |
} |
int64_t GetId() const override { return id_; } |
void SchedulePaint(const ServerWindow* window, |