Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: chrome/browser/spellchecker/spellcheck_service_unittest.cc

Issue 2958223002: Use ContainsValue() instead of std::find() in chrome/browser and chrome/common (Closed)
Patch Set: Rebase patch. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/spellchecker/spellcheck_service_unittest.cc
diff --git a/chrome/browser/spellchecker/spellcheck_service_unittest.cc b/chrome/browser/spellchecker/spellcheck_service_unittest.cc
index 56495f361b35a5be9c51765e3c50243444d2a233..1a9df6012b1a4589737bdb495e601e861b032fdd 100644
--- a/chrome/browser/spellchecker/spellcheck_service_unittest.cc
+++ b/chrome/browser/spellchecker/spellcheck_service_unittest.cc
@@ -8,6 +8,7 @@
#include "base/command_line.h"
#include "base/macros.h"
+#include "base/stl_util.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/supports_user_data.h"
@@ -43,8 +44,7 @@ struct TestCase {
for (const auto& language : languages) {
dictionary.language = language;
dictionary.used_for_spellcheck =
- std::find(used_for_spellcheck.begin(), used_for_spellcheck.end(),
- language) != used_for_spellcheck.end();
+ base::ContainsValue(used_for_spellcheck, language);
expected_dictionaries.push_back(dictionary);
}
}

Powered by Google App Engine
This is Rietveld 408576698