Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1381)

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.cc

Issue 14259008: Instant Extended: Add prominent search term support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..cc5359317cf415b0ff7b5a6a453cb6e54005b689 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() !=
+ ToolbarModel::NO_SEARCH_TERMS);
}
return command_updater()->IsCommandEnabled(command_id);
}
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698