#include "base/bind.h"
#include "base/file_util.h"
-#include "base/platform_file.h"
+#include "base/files/file.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
scoped_ptr<ui::SelectFileDialog::FileTypeInfo>
RuntimeFileSelectHelper::GetFileTypesFromAcceptType(
- const std::vector<string16>& accept_types) {
+ const std::vector<base::string16>& accept_types) {
scoped_ptr<ui::SelectFileDialog::FileTypeInfo> base_file_type(
new ui::SelectFileDialog::FileTypeInfo());
base_file_type->support_drive = true;
int valid_type_count = 0;
int description_id = 0;
for (size_t i = 0; i < accept_types.size(); ++i) {
- std::string ascii_type = UTF16ToASCII(accept_types[i]);
+ std::string ascii_type = base::UTF16ToASCII(accept_types[i]);
if (!IsAcceptTypeValid(ascii_type))
continue;
#if defined(OS_ANDROID)
// Android needs the original MIME types and an additional capture value.
- std::pair<std::vector<string16>, bool> accept_types =
+ std::pair<std::vector<base::string16>, bool> accept_types =
std::make_pair(params.accept_types, params.capture);
#endif
// of an extension or a "/" in the case of a MIME type).
std::string unused;
if (accept_type.length() <= 1 ||
- StringToLowerASCII(accept_type) != accept_type ||
- TrimWhitespaceASCII(accept_type, TRIM_ALL, &unused) != TRIM_NONE) {
+ base::StringToLowerASCII(accept_type) != accept_type ||
+ base::TrimWhitespaceASCII(
+ accept_type,
+ base::TRIM_ALL, &unused) != base::TRIM_NONE) {
return false;
}
return true;