Index: chrome/browser/extensions/external_provider_impl.cc |
diff --git a/chrome/browser/extensions/external_provider_impl.cc b/chrome/browser/extensions/external_provider_impl.cc |
index 2d3b675392fcd14144ce920c3bb9564d7151d7d4..90fea6d5fb91d34c29951c9bc06a0c2db3270d88 100644 |
--- a/chrome/browser/extensions/external_provider_impl.cc |
+++ b/chrome/browser/extensions/external_provider_impl.cc |
@@ -14,6 +14,7 @@ |
#include "base/logging.h" |
#include "base/memory/linked_ptr.h" |
#include "base/metrics/field_trial.h" |
+#include "base/stl_util.h" |
#include "base/strings/string_util.h" |
#include "base/trace_event/trace_event.h" |
#include "base/values.h" |
@@ -246,8 +247,7 @@ void ExternalProviderImpl::RetrieveExtensionsFromPrefs( |
if (supported_locales->GetString(j, ¤t_locale) && |
l10n_util::IsValidLocaleSyntax(current_locale)) { |
current_locale = l10n_util::NormalizeLocale(current_locale); |
- if (std::find(browser_locales.begin(), browser_locales.end(), |
- current_locale) != browser_locales.end()) { |
+ if (ContainsValue(browser_locales, current_locale)) { |
locale_supported = true; |
break; |
} |