Index: chrome/common/extensions/command_unittest.cc |
diff --git a/chrome/common/extensions/command_unittest.cc b/chrome/common/extensions/command_unittest.cc |
index b4f4a2ad721e16f9fe42b25e9ef6f896bf4ecefc..ec6d0110cfe219965352340688c49daf89119802 100644 |
--- a/chrome/common/extensions/command_unittest.cc |
+++ b/chrome/common/extensions/command_unittest.cc |
@@ -11,6 +11,7 @@ |
#include "base/macros.h" |
#include "base/memory/ptr_util.h" |
+#include "base/stl_util.h" |
#include "base/strings/string_number_conversions.h" |
#include "base/strings/string_util.h" |
#include "base/strings/utf_string_conversions.h" |
@@ -65,8 +66,7 @@ void CheckParse(const ConstCommandsTestData& data, |
if (data.key[0] != '\0') { |
std::string current_platform = extensions::Command::CommandPlatform(); |
if (platform_specific_only && |
- std::find(platforms.begin(), platforms.end(), current_platform) == |
- platforms.end()) { |
+ !base::ContainsValue(platforms, current_platform)) { |
// Given a |current_platform| without a |suggested_key|, |default| is |
// used. However, some keys, such as Search on Chrome OS, are only valid |
// for platform specific entries. Skip the test in this case. |