| Index: chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
| diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
| index 232425595c279a63cf8d8db6a3bb6d8310597f78..77258048a403d32c86442ee8a9ebbb987ef9c07a 100644
|
| --- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
| +++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
| @@ -825,28 +825,19 @@ bool OmniboxViewViews::IsTextEditCommandEnabled(
|
| }
|
| }
|
|
|
| -void OmniboxViewViews::ExecuteTextEditCommand(ui::TextEditCommand command) {
|
| - // In the base class, touch text selection is deactivated when a command is
|
| - // executed. Since we are not always calling the base class implementation
|
| - // here, we need to deactivate touch text selection here, too.
|
| - DestroyTouchSelection();
|
| -
|
| - if (!IsTextEditCommandEnabled(command))
|
| - return;
|
| -
|
| +bool OmniboxViewViews::ExecuteTextEditCommandImpl(ui::TextEditCommand command) {
|
| switch (command) {
|
| case ui::TextEditCommand::MOVE_UP:
|
| model()->OnUpOrDownKeyPressed(-1);
|
| - break;
|
| + return false;
|
| case ui::TextEditCommand::MOVE_DOWN:
|
| model()->OnUpOrDownKeyPressed(1);
|
| - break;
|
| + return false;
|
| case ui::TextEditCommand::PASTE:
|
| OnPaste();
|
| - break;
|
| + return true;
|
| default:
|
| - Textfield::ExecuteTextEditCommand(command);
|
| - break;
|
| + return Textfield::ExecuteTextEditCommandImpl(command);
|
| }
|
| }
|
|
|
|
|