Index: components/omnibox/browser/zero_suggest_provider.cc |
diff --git a/components/omnibox/browser/zero_suggest_provider.cc b/components/omnibox/browser/zero_suggest_provider.cc |
index 8a7dcf7afcf5239cf824172ec1e49e685a8f91d0..666cfa3e0e68f4c279c1240ea90ab72eb9130e87 100644 |
--- a/components/omnibox/browser/zero_suggest_provider.cc |
+++ b/components/omnibox/browser/zero_suggest_provider.cc |
@@ -114,6 +114,7 @@ void ZeroSuggestProvider::Start(const AutocompleteInput& input, |
results_from_cache_ = false; |
permanent_text_ = input.text(); |
current_query_ = input.current_url().spec(); |
+ current_title_ = input.current_title(); |
current_page_classification_ = input.current_page_classification(); |
current_url_match_ = MatchForCurrentURL(); |
@@ -192,6 +193,7 @@ void ZeroSuggestProvider::Stop(bool clear_cached_results, |
results_.suggest_results.clear(); |
results_.navigation_results.clear(); |
current_query_.clear(); |
+ current_title_.clear(); |
most_visited_urls_.clear(); |
} |
} |
@@ -263,7 +265,7 @@ const AutocompleteInput ZeroSuggestProvider::GetInput(bool is_keyword) const { |
// The callers of this method won't look at the AutocompleteInput's |
// |from_omnibox_focus| member, so we can set its value to false. |
return AutocompleteInput(base::string16(), base::string16::npos, |
- std::string(), GURL(current_query_), |
+ std::string(), GURL(current_query_), current_title_, |
current_page_classification_, true, false, false, |
true, false, client()->GetSchemeClassifier()); |
} |