Index: chrome/browser/autocomplete/history_url_provider_unittest.cc |
diff --git a/chrome/browser/autocomplete/history_url_provider_unittest.cc b/chrome/browser/autocomplete/history_url_provider_unittest.cc |
index 97427dd0fde4488bc1cbb0286878fa04cbbdef7f..ab00e9c5b5114eee11c0d7dfaedaa89a29a1f12a 100644 |
--- a/chrome/browser/autocomplete/history_url_provider_unittest.cc |
+++ b/chrome/browser/autocomplete/history_url_provider_unittest.cc |
@@ -232,6 +232,8 @@ void HistoryURLProviderTest::RunTest(const string16 text, |
matches_ = autocomplete_->matches(); |
if (sort_matches_) { |
+ for (ACMatches::iterator i = matches_.begin(); i != matches_.end(); ++i) |
+ i->ComputeStrippedDestinationURL(); |
std::sort(matches_.begin(), matches_.end(), |
&AutocompleteMatch::DestinationSortFunc); |
matches_.erase(std::unique(matches_.begin(), matches_.end(), |