| Index: chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
| diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
| index 597cca8b125c8d7e8251d6c8dbbae894189afd7e..fda8ade1127cb6e861ea791faf735a784c23b453 100644
|
| --- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
| +++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
| @@ -391,7 +391,8 @@ bool OmniboxEditModel::UseVerbatimInstant() {
|
| }
|
|
|
| bool OmniboxEditModel::CurrentTextIsURL() const {
|
| - if (view_->toolbar_model()->WouldReplaceSearchURLWithSearchTerms())
|
| + if (view_->toolbar_model()->GetSearchTermsType() !=
|
| + ToolbarModel::NO_SEARCH_TERMS)
|
| return false;
|
|
|
| // If current text is not composed of replaced search terms and
|
| @@ -422,8 +423,9 @@ void OmniboxEditModel::AdjustTextForCopy(int sel_min,
|
|
|
| // Do not adjust if selection did not start at the beginning of the field, or
|
| // if the URL was replaced by search terms.
|
| - if (sel_min != 0 ||
|
| - view_->toolbar_model()->WouldReplaceSearchURLWithSearchTerms())
|
| + if ((sel_min != 0) ||
|
| + (view_->toolbar_model()->GetSearchTermsType() !=
|
| + ToolbarModel::NO_SEARCH_TERMS))
|
| return;
|
|
|
| if (!user_input_in_progress_ && is_all_selected) {
|
|
|