| Index: content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
|
| diff --git a/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc b/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
|
| index 8fb31d7467474617d29b7f3414161fac59e3cafa..199df163b43b590c002255a1fd9e1bb402c4d18c 100644
|
| --- a/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
|
| +++ b/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
|
| @@ -170,6 +170,12 @@ bool TouchSelectionControllerClientAura::HandleContextMenu(
|
| UpdateQuickMenu();
|
| return true;
|
| }
|
| +
|
| + const bool from_touch = params.source_type == ui::MENU_SOURCE_LONG_PRESS ||
|
| + params.source_type == ui::MENU_SOURCE_TOUCH;
|
| + if (from_touch && !params.selection_text.empty())
|
| + return true;
|
| +
|
| rwhva_->selection_controller()->HideAndDisallowShowingAutomatically();
|
| return false;
|
| }
|
|
|