Index: ui/views/widget/root_view_unittest.cc |
diff --git a/ui/views/widget/root_view_unittest.cc b/ui/views/widget/root_view_unittest.cc |
index 3a47540aba6d62145791b4974bb14091138ec73f..b2de4de14266d52e9fc5aa8630565ff25d4983f8 100644 |
--- a/ui/views/widget/root_view_unittest.cc |
+++ b/ui/views/widget/root_view_unittest.cc |
@@ -54,7 +54,7 @@ TEST_F(RootViewTest, DeleteViewDuringKeyEventDispatch) { |
content->AddChildView(child); |
// Give focus to |child| so that it will be the target of the key event. |
- child->SetFocusable(true); |
+ child->SetFocusBehavior(views::View::FocusBehavior::ALWAYS); |
child->RequestFocus(); |
internal::RootView* root_view = |
@@ -121,7 +121,7 @@ TEST_F(RootViewTest, ContextMenuFromKeyEvent) { |
View* focused_view = new View; |
focused_view->set_context_menu_controller(&controller); |
widget.SetContentsView(focused_view); |
- focused_view->SetFocusable(true); |
+ focused_view->SetFocusBehavior(views::View::FocusBehavior::ALWAYS); |
focused_view->RequestFocus(); |
// No context menu should be shown for a keypress of 'A'. |