diff options
Diffstat (limited to 'components/crx_file/id_util.cc')
-rw-r--r-- | components/crx_file/id_util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/crx_file/id_util.cc b/components/crx_file/id_util.cc index 6209cb4..d628aa1 100644 --- a/components/crx_file/id_util.cc +++ b/components/crx_file/id_util.cc @@ -40,7 +40,7 @@ std::string GenerateId(const std::string& input) { uint8 hash[kIdSize]; crypto::SHA256HashString(input, hash, sizeof(hash)); std::string output = - base::StringToLowerASCII(base::HexEncode(hash, sizeof(hash))); + base::ToLowerASCII(base::HexEncode(hash, sizeof(hash))); ConvertHexadecimalToIDAlphabet(&output); return output; @@ -83,7 +83,7 @@ bool IdIsValid(const std::string& id) { // We only support lowercase IDs, because IDs can be used as URL components // (where GURL will lowercase it). - std::string temp = base::StringToLowerASCII(id); + std::string temp = base::ToLowerASCII(id); for (size_t i = 0; i < temp.size(); i++) if (temp[i] < 'a' || temp[i] > 'p') return false; |