Index: chrome/browser/autocomplete/autocomplete_edit.cc |
diff --git a/chrome/browser/autocomplete/autocomplete_edit.cc b/chrome/browser/autocomplete/autocomplete_edit.cc |
index f733687e637b479c37e077ad09971b5d4a697c27..ce388ac2e282a19db8203ef26bc598876ff13848 100644 |
--- a/chrome/browser/autocomplete/autocomplete_edit.cc |
+++ b/chrome/browser/autocomplete/autocomplete_edit.cc |
@@ -411,8 +411,8 @@ bool AutocompleteEditModel::CanPasteAndGo(const string16& text) const { |
if (!view_->GetCommandUpdater()->IsCommandEnabled(IDC_OPEN_CURRENT_URL)) |
return false; |
- profile_->GetAutocompleteClassifier()->Classify(text, string16(), false, |
- &paste_and_go_match_, &paste_and_go_alternate_nav_url_); |
+ profile_->GetAutocompleteClassifier()->Classify(text, string16(), |
+ false, false, &paste_and_go_match_, &paste_and_go_alternate_nav_url_); |
return paste_and_go_match_.destination_url.is_valid(); |
} |
@@ -934,8 +934,8 @@ void AutocompleteEditModel::GetInfoForCurrentText( |
InfoForCurrentSelection(match, alternate_nav_url); |
} else { |
profile_->GetAutocompleteClassifier()->Classify( |
- UserTextFromDisplayText(view_->GetText()), GetDesiredTLD(), true, |
- match, alternate_nav_url); |
+ UserTextFromDisplayText(view_->GetText()), GetDesiredTLD(), |
+ KeywordIsSelected(), true, match, alternate_nav_url); |
} |
} |