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

Unified Diff: net/ftp/ftp_directory_listing_parser_vms.cc

Issue 112963005: Update uses of UTF conversions in courgette/, device/, extensions/, google_apis/, gpu/, ipc/, media… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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: net/ftp/ftp_directory_listing_parser_vms.cc
diff --git a/net/ftp/ftp_directory_listing_parser_vms.cc b/net/ftp/ftp_directory_listing_parser_vms.cc
index 4b44d73b5b5922b9553245255ed8e32a666d26cf..9d9defde3b679b466f82dcde64ba42b360de88fe 100644
--- a/net/ftp/ftp_directory_listing_parser_vms.cc
+++ b/net/ftp/ftp_directory_listing_parser_vms.cc
@@ -54,7 +54,7 @@ bool ParseVmsFilename(const base::string16& raw_filename,
}
bool ParseVmsFilesize(const base::string16& input, int64* size) {
- if (ContainsOnlyChars(input, ASCIIToUTF16("*"))) {
+ if (ContainsOnlyChars(input, base::ASCIIToUTF16("*"))) {
// Response consisting of asterisks means unknown size.
*size = -1;
return true;
@@ -141,7 +141,7 @@ bool LooksLikeVMSError(const base::string16& text) {
};
for (size_t i = 0; i < arraysize(kPermissionDeniedMessages); i++) {
- if (text.find(ASCIIToUTF16(kPermissionDeniedMessages[i])) !=
+ if (text.find(base::ASCIIToUTF16(kPermissionDeniedMessages[i])) !=
base::string16::npos)
return true;
}
@@ -210,7 +210,7 @@ bool ParseFtpDirectoryListingVms(
if (lines[i].empty())
continue;
- if (StartsWith(lines[i], ASCIIToUTF16("Total of "), true)) {
+ if (StartsWith(lines[i], base::ASCIIToUTF16("Total of "), true)) {
// After the "total" line, all following lines must be empty.
for (size_t j = i + 1; j < lines.size(); j++)
if (!lines[j].empty())
@@ -248,7 +248,7 @@ bool ParseFtpDirectoryListingVms(
// Join the current and next line and split them into columns.
base::SplitString(
- CollapseWhitespace(lines[i - 1] + ASCIIToUTF16(" ") + lines[i],
+ CollapseWhitespace(lines[i - 1] + base::ASCIIToUTF16(" ") + lines[i],
false),
' ',
&columns);
« no previous file with comments | « net/ftp/ftp_directory_listing_parser_unittest.cc ('k') | net/ftp/ftp_directory_listing_parser_vms_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698