Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Unified Diff: ui/views/examples/tree_view_example.cc

Issue 2790773002: Cleanup MenuRunner API (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/examples/menu_example.cc ('k') | ui/views/test/combobox_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ui/views/examples/menu_example.cc ('k') | ui/views/test/combobox_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698