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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit.cc

Issue 6995032: Fix a browser crash involving omnibox extension keywords. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: latest Created 9 years, 7 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/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);
}
}
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_classifier.cc ('k') | chrome/browser/autocomplete/search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698