Chromium Code Reviews| 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 533f98421d2e5b5750f68a4c53879768f83f1de0..7d8f51ec1003d392d64ba8823bc93cb4fff82081 100644 |
| --- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
| +++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
| @@ -370,7 +370,9 @@ void OmniboxViewViews::ExecuteCommand(int command_id, int event_flags) { |
| // These commands do invoke the popup. |
| case IDS_APP_PASTE: |
| - OnPaste(); |
| + if (Textfield::IsCommandIdEnabled(command_id)) { |
|
Peter Kasting
2016/03/25 21:28:37
Use IsCommandIdEnabled() here rather than the Text
|
| + OnPaste(); |
| + } |
| return; |
| default: |
| if (Textfield::IsCommandIdEnabled(command_id)) { |