Index: ui/views/examples/tree_view_example.cc |
diff --git a/ui/views/examples/tree_view_example.cc b/ui/views/examples/tree_view_example.cc |
index ddf69aef6c35849b13d429326daf7a6bf23a6f3f..b67f51940641ee10b463755f3b909b669e1a78ee 100644 |
--- a/ui/views/examples/tree_view_example.cc |
+++ b/ui/views/examples/tree_view_example.cc |
@@ -47,11 +47,11 @@ void TreeViewExample::CreateExampleView(View* container) { |
tree_view_->SetModel(&model_); |
tree_view_->SetController(this); |
add_ = new LabelButton(this, ASCIIToUTF16("Add")); |
- add_->SetFocusBehavior(View::FocusBehavior::ALWAYS); |
+ Button::ConfigureDefaultFocus(add_); |
remove_ = new LabelButton(this, ASCIIToUTF16("Remove")); |
- remove_->SetFocusBehavior(View::FocusBehavior::ALWAYS); |
+ Button::ConfigureDefaultFocus(remove_); |
change_title_ = new LabelButton(this, ASCIIToUTF16("Change Title")); |
- change_title_->SetFocusBehavior(View::FocusBehavior::ALWAYS); |
+ Button::ConfigureDefaultFocus(change_title_); |
GridLayout* layout = new GridLayout(container); |
container->SetLayoutManager(layout); |