Index: chrome/browser/predictors/autocomplete_action_predictor.cc |
diff --git a/chrome/browser/predictors/autocomplete_action_predictor.cc b/chrome/browser/predictors/autocomplete_action_predictor.cc |
index 6e63728012885931e61e700bab1e480398774c10..f31d763be570c1081f976c433483c0a48686f7fd 100644 |
--- a/chrome/browser/predictors/autocomplete_action_predictor.cc |
+++ b/chrome/browser/predictors/autocomplete_action_predictor.cc |
@@ -14,6 +14,7 @@ |
#include "base/i18n/case_conversion.h" |
#include "base/macros.h" |
#include "base/metrics/histogram.h" |
+#include "base/stl_util.h" |
#include "base/strings/string_util.h" |
#include "base/strings/stringprintf.h" |
#include "base/strings/utf_string_conversions.h" |
@@ -128,10 +129,8 @@ void AutocompleteActionPredictor::RegisterTransitionalMatches( |
} |
for (const auto& i : result) { |
- if (std::find(match_it->urls.begin(), match_it->urls.end(), |
- i.destination_url) == match_it->urls.end()) { |
+ if (!ContainsValue(match_it->urls, i.destination_url)) |
match_it->urls.push_back(i.destination_url); |
- } |
} |
} |