| Index: ui/views/controls/textfield/textfield.cc
|
| diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
|
| index 5cde2ea02c7f7a94ba9ed99cc9f23790189ebdef..d5979a8d62e1dec2258266c9918c3d00d64bd7fc 100644
|
| --- a/ui/views/controls/textfield/textfield.cc
|
| +++ b/ui/views/controls/textfield/textfield.cc
|
| @@ -987,13 +987,11 @@ void Textfield::ShowContextMenuForView(View* source,
|
| const gfx::Point& point,
|
| ui::MenuSourceType source_type) {
|
| UpdateContextMenu();
|
| - ignore_result(context_menu_runner_->RunMenuAt(
|
| - GetWidget(),
|
| - NULL,
|
| - gfx::Rect(point, gfx::Size()),
|
| - MENU_ANCHOR_TOPLEFT,
|
| - source_type,
|
| - MenuRunner::HAS_MNEMONICS | MenuRunner::CONTEXT_MENU));
|
| + ignore_result(context_menu_runner_->RunMenuAt(GetWidget(),
|
| + NULL,
|
| + gfx::Rect(point, gfx::Size()),
|
| + MENU_ANCHOR_TOPLEFT,
|
| + source_type));
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| @@ -1703,7 +1701,9 @@ void Textfield::UpdateContextMenu() {
|
| if (controller_)
|
| controller_->UpdateContextMenu(context_menu_contents_.get());
|
| }
|
| - context_menu_runner_.reset(new MenuRunner(context_menu_contents_.get()));
|
| + context_menu_runner_.reset(
|
| + new MenuRunner(context_menu_contents_.get(),
|
| + MenuRunner::HAS_MNEMONICS | MenuRunner::CONTEXT_MENU));
|
| }
|
|
|
| void Textfield::TrackMouseClicks(const ui::MouseEvent& event) {
|
|
|