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

Unified Diff: chrome/browser/ui/omnibox/omnibox_edit_model.cc

Issue 12623029: Upstreaming mechanism to add query refinement to omnibox searches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied Peter's comments. Created 7 years, 9 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
« no previous file with comments | « chrome/browser/ui/app_list/search_builder.cc ('k') | chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9794fae72cd2c540812bea37d1fb9089ca0a755a..849873fcec37aa96257c717c2b0d19c85fd85e4c 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -500,7 +500,7 @@ void OmniboxEditModel::StartAutocomplete(
// We don't explicitly clear OmniboxPopupModel::manually_selected_match, as
// Start ends up invoking OmniboxPopupModel::OnResultChanged which clears it.
autocomplete_controller_->Start(AutocompleteInput(
- user_text_, cursor_position, string16(),
+ user_text_, cursor_position, string16(), GURL(),
prevent_inline_autocomplete || just_deleted_text_ ||
(has_selected_text && inline_autocomplete_text_.empty()) ||
(paste_state_ != NONE), keyword_is_selected,
@@ -559,9 +559,8 @@ void OmniboxEditModel::AcceptInput(WindowOpenDisposition disposition,
const AutocompleteInput& old_input = autocomplete_controller_->input();
AutocompleteInput input(
old_input.text(), old_input.cursor_position(), ASCIIToUTF16("com"),
- old_input.prevent_inline_autocomplete(),
- old_input.prefer_keyword(),
- old_input.allow_exact_keyword_match(),
+ GURL(), old_input.prevent_inline_autocomplete(),
+ old_input.prefer_keyword(), old_input.allow_exact_keyword_match(),
old_input.matches_requested());
AutocompleteMatch url_match =
HistoryURLProvider::SuggestExactInput(match.provider, input, true);
« no previous file with comments | « chrome/browser/ui/app_list/search_builder.cc ('k') | chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698