Index: components/omnibox/search_provider.h |
diff --git a/components/omnibox/search_provider.h b/components/omnibox/search_provider.h |
index c8307c38db2663f36dc4fc8ee6a2bc38f7de96d6..757b67508c7d3c6dc00fd88284da32ed77a3543e 100644 |
--- a/components/omnibox/search_provider.h |
+++ b/components/omnibox/search_provider.h |
@@ -11,6 +11,9 @@ |
#ifndef COMPONENTS_OMNIBOX_SEARCH_PROVIDER_H_ |
#define COMPONENTS_OMNIBOX_SEARCH_PROVIDER_H_ |
+#include <string> |
+#include <vector> |
groby-ooo-7-16
2014/09/24 22:26:38
Your change doesn't bring in any of these?
Justin Donnelly
2014/09/25 01:05:13
No, I'm just adding them at the urging of the ICWY
|
+ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
#include "base/memory/scoped_ptr.h" |
@@ -231,6 +234,10 @@ class SearchProvider : public BaseSearchProvider, |
// Converts the parsed results to a set of AutocompleteMatches, |matches_|. |
void ConvertResultsToAutocompleteMatches(); |
+ // Remove answer contents from each match in |matches| other than the first |
+ // that appears. |
+ void RemoveExtraAnswers(ACMatches* matches); |
groby-ooo-7-16
2014/09/24 22:26:38
Personally, I'd make it static, since it doesn't d
Justin Donnelly
2014/09/25 01:05:13
Done.
|
+ |
// Returns an iterator to the first match in |matches_| which might |
// be chosen as default. |
ACMatches::const_iterator FindTopMatch() const; |