Index: chrome/browser/extensions/api/file_system/file_system_api.cc |
diff --git a/chrome/browser/extensions/api/file_system/file_system_api.cc b/chrome/browser/extensions/api/file_system/file_system_api.cc |
index 9ca75b7f57bbfe4f2f8045029c28c5df10a499a9..159fb5cc24c46fe7e56a883805914b4f5939cac5 100644 |
--- a/chrome/browser/extensions/api/file_system/file_system_api.cc |
+++ b/chrome/browser/extensions/api/file_system/file_system_api.cc |
@@ -18,6 +18,7 @@ |
#include "base/macros.h" |
#include "base/memory/ptr_util.h" |
#include "base/path_service.h" |
+#include "base/stl_util.h" |
#include "base/strings/string_util.h" |
#include "base/strings/stringprintf.h" |
#include "base/strings/sys_string_conversions.h" |
@@ -781,8 +782,7 @@ void FileSystemChooseEntryFunction::BuildFileTypeInfo( |
// If we still need to find suggested_extension, hunt for it inside the |
// extensions returned from GetFileTypesFromAcceptOption. |
if (need_suggestion && |
- std::find(extensions.begin(), extensions.end(), |
- suggested_extension) != extensions.end()) { |
+ base::ContainsValue(extensions, suggested_extension)) { |
need_suggestion = false; |
} |
} |