Chromium Code Reviews| Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc |
| diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc |
| index f9b71160a1a062e25d8a57b0275ff01e57973b79..0481be1085dcf0f882a643488c7bb5da1351e29e 100644 |
| --- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc |
| +++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc |
| @@ -245,9 +245,9 @@ TEST_F(DesktopWindowTreeHostX11Test, CaptureEventForwarding) { |
| TEST_F(DesktopWindowTreeHostX11Test, InputMethodFocus) { |
| std::unique_ptr<Widget> widget(CreateWidget(gfx::Rect(100, 100, 100, 100))); |
| - std::unique_ptr<Textfield> textfield(new Textfield); |
| + Textfield* textfield = new Textfield; |
|
Patti Lor
2016/11/08 04:00:27
Please see comment thread https://codereview.chrom
msw
2016/11/09 02:08:53
This seems reasonable anyway... The View hierarchy
|
| textfield->SetBounds(0, 0, 200, 20); |
| - widget->GetRootView()->AddChildView(textfield.get()); |
| + widget->GetRootView()->AddChildView(textfield); |
| widget->ShowInactive(); |
| textfield->RequestFocus(); |