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

Unified Diff: ui/views/controls/label.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/controls/combobox/combobox.cc ('k') | ui/views/controls/menu/menu_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label.cc
diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc
index 4cbe93c21a1f548e7f095e8408fbc4f044a5725f..182d335edde8f591f83c0fb6a9628039830b2cd5 100644
--- a/ui/views/controls/label.cc
+++ b/ui/views/controls/label.cc
@@ -674,12 +674,11 @@ void Label::ShowContextMenuForView(View* source,
return;
context_menu_runner_.reset(
- new MenuRunner(&context_menu_contents_, MenuRunner::HAS_MNEMONICS |
- MenuRunner::CONTEXT_MENU |
- MenuRunner::ASYNC));
- ignore_result(context_menu_runner_->RunMenuAt(
- GetWidget(), nullptr, gfx::Rect(point, gfx::Size()), MENU_ANCHOR_TOPLEFT,
- source_type));
+ new MenuRunner(&context_menu_contents_,
+ MenuRunner::HAS_MNEMONICS | MenuRunner::CONTEXT_MENU));
+ context_menu_runner_->RunMenuAt(GetWidget(), nullptr,
+ gfx::Rect(point, gfx::Size()),
+ MENU_ANCHOR_TOPLEFT, source_type);
}
bool Label::GetDecoratedWordAtPoint(const gfx::Point& point,
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/controls/menu/menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698