| Index: chrome/browser/spellchecker/spellcheck_service.cc
|
| diff --git a/chrome/browser/spellchecker/spellcheck_service.cc b/chrome/browser/spellchecker/spellcheck_service.cc
|
| index cf86778ba821d57661601d8e86604524fb5cb435..ff8cbf3c4ec72d31e413981c77e896ae09efac15 100644
|
| --- a/chrome/browser/spellchecker/spellcheck_service.cc
|
| +++ b/chrome/browser/spellchecker/spellcheck_service.cc
|
| @@ -7,6 +7,7 @@
|
| #include <set>
|
|
|
| #include "base/logging.h"
|
| +#include "base/stl_util.h"
|
| #include "base/strings/string_split.h"
|
| #include "base/supports_user_data.h"
|
| #include "base/synchronization/waitable_event.h"
|
| @@ -346,8 +347,7 @@ void SpellcheckService::OnAcceptLanguagesChanged() {
|
| std::vector<std::string> filtered_dictionaries;
|
|
|
| for (const auto& dictionary : dictionaries) {
|
| - if (std::find(accept_languages.begin(), accept_languages.end(),
|
| - dictionary) != accept_languages.end()) {
|
| + if (base::ContainsValue(accept_languages, dictionary)) {
|
| filtered_dictionaries.push_back(dictionary);
|
| }
|
| }
|
|
|