| 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 b07e3adb4aca2e4d9258d31f622678dd86411881..fb8acd698b2467986eba4d5fffe254bf2691f01a 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
|
| @@ -165,6 +165,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;
|
| }
|
|
|