| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/views/test/native_widget_factory.h" | 5 #include "ui/views/test/native_widget_factory.h" |
| 6 | 6 |
| 7 #include "ui/views/mus/window_manager_connection.h" | 7 #include "ui/views/mus/mus_client.h" |
| 8 | 8 |
| 9 namespace views { | 9 namespace views { |
| 10 namespace test { | 10 namespace test { |
| 11 | 11 |
| 12 NativeWidget* CreatePlatformDesktopNativeWidgetImpl( | 12 NativeWidget* CreatePlatformDesktopNativeWidgetImpl( |
| 13 const Widget::InitParams& init_params, | 13 const Widget::InitParams& init_params, |
| 14 Widget* widget, | 14 Widget* widget, |
| 15 bool* destroyed) { | 15 bool* destroyed) { |
| 16 return WindowManagerConnection::Get()->CreateNativeWidgetMus( | 16 return MusClient::Get()->CreateNativeWidget(init_params, widget); |
| 17 std::map<std::string, std::vector<uint8_t>>(), init_params, widget); | |
| 18 } | 17 } |
| 19 | 18 |
| 20 } // namespace test | 19 } // namespace test |
| 21 } // namespace views | 20 } // namespace views |
| OLD | NEW |