OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/autocomplete/history_url_provider.h" | 5 #include "chrome/browser/autocomplete/history_url_provider.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 AutocompleteMatch::ClassifyLocationInString(string16::npos, 0, | 929 AutocompleteMatch::ClassifyLocationInString(string16::npos, 0, |
930 match.contents.length(), ACMatchClassification::URL, | 930 match.contents.length(), ACMatchClassification::URL, |
931 &match.contents_class); | 931 &match.contents_class); |
932 } | 932 } |
933 match.description = info.title(); | 933 match.description = info.title(); |
934 AutocompleteMatch::ClassifyMatchInString(params->input.text(), | 934 AutocompleteMatch::ClassifyMatchInString(params->input.text(), |
935 info.title(), | 935 info.title(), |
936 ACMatchClassification::NONE, | 936 ACMatchClassification::NONE, |
937 &match.description_class); | 937 &match.description_class); |
938 | 938 |
| 939 match.RecordAdditionalInfo("typed count", info.typed_count()); |
| 940 match.RecordAdditionalInfo("visit count", info.visit_count()); |
| 941 match.RecordAdditionalInfo("last visit", info.last_visit()); |
| 942 |
939 return match; | 943 return match; |
940 } | 944 } |
OLD | NEW |