| Index: athena/main/url_search_provider.cc
|
| diff --git a/athena/main/url_search_provider.cc b/athena/main/url_search_provider.cc
|
| index 8c51952adaa0be1ac514c6db7eed5de6d35118bc..39819bd9a9b0a2058691c27461a6c616f650b363 100644
|
| --- a/athena/main/url_search_provider.cc
|
| +++ b/athena/main/url_search_provider.cc
|
| @@ -26,6 +26,10 @@ namespace athena {
|
|
|
| namespace {
|
|
|
| +// This constant was copied from HistoryURLProvider.
|
| +// TODO(hashimoto): Componentize HistoryURLProvider and delete this.
|
| +const int kScoreForWhatYouTypedResult = 1203;
|
| +
|
| // The SearchTermsData implementation for Athena.
|
| class AthenaSearchTermsData : public SearchTermsData {
|
| public:
|
| @@ -266,6 +270,17 @@ void UrlSearchProvider::OnProviderUpdate(bool updated_matches) {
|
|
|
| ClearResults();
|
|
|
| + if (input_.type() == metrics::OmniboxInputType::URL) {
|
| + // TODO(hashimoto): Componentize HistoryURLProvider and remove this code.
|
| + AutocompleteMatch what_you_typed_match(
|
| + NULL, 0, false, AutocompleteMatchType::URL_WHAT_YOU_TYPED);
|
| + what_you_typed_match.destination_url = input_.canonicalized_url();
|
| + what_you_typed_match.contents = input_.text();
|
| + what_you_typed_match.relevance = kScoreForWhatYouTypedResult;
|
| + Add(scoped_ptr<app_list::SearchResult>(new UrlSearchResult(
|
| + browser_context_, what_you_typed_match)));
|
| + }
|
| +
|
| const ACMatches& matches = provider_->matches();
|
| for (ACMatches::const_iterator it = matches.begin(); it != matches.end();
|
| ++it) {
|
|
|