summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-08-06 15:54:16 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-06 22:55:04 +0000
commitc15100ce1266e52a77f2974ffe9dfb833f5e58b3 (patch)
tree9cf77374c512e02e4a1401db68a952d3107e0aec /storage
parentedfd2506bf1b5b270168fbab8b114e879abbb828 (diff)
downloadchromium_src-c15100ce1266e52a77f2974ffe9dfb833f5e58b3.zip
chromium_src-c15100ce1266e52a77f2974ffe9dfb833f5e58b3.tar.gz
chromium_src-c15100ce1266e52a77f2974ffe9dfb833f5e58b3.tar.bz2
Replace StringToLowerASCII with base::ToLowerASCII
Standardize on using string pieces and returning strings. Remove in-place version (this was only used in a couple places and they were not performance-critical). De-templatize the character versions of ToUpperASCII/ToLowerASCII. This would lead to bizarre errors if you pass other things (like a string). This is so little code, it's now just duplicated. I renamed StringToLowerASCII to just be ToLowerASCII so you can pass whatever you want to ToLowerASCII and it does the right thing. This seems simpler to me. This replaces all calls of StringToUpperASCII to the new form. The lowercase version is more common and will be done in a separate pass. Review URL: https://codereview.chromium.org/1280473002 Cr-Commit-Position: refs/heads/master@{#342219}
Diffstat (limited to 'storage')
-rw-r--r--storage/common/fileapi/file_system_util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/common/fileapi/file_system_util.cc b/storage/common/fileapi/file_system_util.cc
index 98b6cc8..16d74e4 100644
--- a/storage/common/fileapi/file_system_util.cc
+++ b/storage/common/fileapi/file_system_util.cc
@@ -420,8 +420,8 @@ bool CrackIsolatedFileSystemName(const std::string& filesystem_name,
// names, so we do a case insensitive compare by converting both strings
// to uppercase.
// TODO(benwells): Remove this when WebKit uses the same constant.
- start_token = base::StringToUpperASCII(start_token);
- std::string filesystem_name_upper = base::StringToUpperASCII(filesystem_name);
+ start_token = base::ToUpperASCII(start_token);
+ std::string filesystem_name_upper = base::ToUpperASCII(filesystem_name);
size_t pos = filesystem_name_upper.find(start_token);
if (pos == std::string::npos)
return false;