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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm

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/cocoa/omnibox/omnibox_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
index 985fc1a545037ee568d73410847af6eaf2552892..e471a9c0732c6713888740d9114a5b795a321fc2 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
@@ -887,7 +887,7 @@ void OmniboxViewMac::OnPaste() {
// this method could call the OmniboxView version.
bool OmniboxViewMac::ShouldEnableCopyURL() {
return !model()->user_input_in_progress() &&
- toolbar_model()->WouldReplaceSearchURLWithSearchTerms();
+ toolbar_model()->GetSearchTermsType() != ToolbarModel::NO_SEARCH_TERMS;
}
bool OmniboxViewMac::CanPasteAndGo() {

Powered by Google App Engine
This is Rietveld 408576698