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..26a9b3d9495782568874d479d9ca7c85502ba19a 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(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(View::FocusBehavior::ALWAYS); |
focused_view->RequestFocus(); |
// No context menu should be shown for a keypress of 'A'. |