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 138c835255edb4d888c1c9f91c5226eea38f5296..7088e73d1a69d37bf070e2a15abb5d81e978e6d4 100644 |
| --- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
| +++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
| @@ -769,8 +769,9 @@ bool OmniboxViewViews::IsCommandIdEnabled(int command_id) const { |
| if (command_id == IDS_PASTE_AND_GO) |
| return model()->CanPasteAndGo(GetClipboardText()); |
| if (command_id == IDC_COPY_URL) { |
| - return toolbar_model()->WouldReplaceSearchURLWithSearchTerms() && |
| - !model()->user_input_in_progress(); |
| + return !model()->user_input_in_progress() && |
| + (toolbar_model()->GetSearchTermsType() != |
|
Peter Kasting
2013/04/25 22:48:39
Nit: Indent 4 from "return" rather than even with
sail
2013/04/25 23:39:16
Done.
|
| + ToolbarModel::NO_SEARCH_TERMS); |
| } |
| return command_updater()->IsCommandEnabled(command_id); |
| } |