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 14d3dce2ac965de29407e079b0f8ee7b95b2647c..8e0f6a1f23614331222e9c09fde79a427834281d 100644 |
--- a/ui/views/examples/tree_view_example.cc |
+++ b/ui/views/examples/tree_view_example.cc |
@@ -133,8 +133,7 @@ void TreeViewExample::ShowContextMenuForView(View* source, |
context_menu_model_->AddItem(ID_EDIT, ASCIIToUTF16("Edit")); |
context_menu_model_->AddItem(ID_REMOVE, ASCIIToUTF16("Remove")); |
context_menu_model_->AddItem(ID_ADD, ASCIIToUTF16("Add")); |
- context_menu_runner_.reset( |
- new MenuRunner(context_menu_model_.get(), MenuRunner::ASYNC)); |
+ context_menu_runner_.reset(new MenuRunner(context_menu_model_.get(), 0)); |
context_menu_runner_->RunMenuAt(source->GetWidget(), nullptr, |
gfx::Rect(point, gfx::Size()), |
MENU_ANCHOR_TOPLEFT, source_type); |