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

Unified Diff: chrome/browser/extensions/updater/local_extension_cache.cc

Issue 1279123004: Replace ToLower calls to the new format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months 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: chrome/browser/extensions/updater/local_extension_cache.cc
diff --git a/chrome/browser/extensions/updater/local_extension_cache.cc b/chrome/browser/extensions/updater/local_extension_cache.cc
index 14273a8ed39d2a2d349ee8d872e8c4bffc1936fc..e265b8ca631ac0e83d74251b49a9d0dcbaad3eb5 100644
--- a/chrome/browser/extensions/updater/local_extension_cache.cc
+++ b/chrome/browser/extensions/updater/local_extension_cache.cc
@@ -75,7 +75,7 @@ LocalExtensionCache::CacheMap::iterator LocalExtensionCache::FindExtension(
const std::string& expected_hash) {
CacheHit hit = cache.equal_range(id);
CacheMap::iterator empty_hash = cache.end();
- std::string hash = base::StringToLowerASCII(expected_hash);
+ std::string hash = base::ToLowerASCII(expected_hash);
for (CacheMap::iterator it = hit.first; it != hit.second; ++it) {
if (expected_hash.empty() || it->second.expected_hash == hash) {
return it;
@@ -437,7 +437,7 @@ void LocalExtensionCache::BackendCheckCacheContentsInternal(
}
// Enforce a lower-case id.
- id = base::StringToLowerASCII(id);
+ id = base::ToLowerASCII(id);
if (!crx_file::id_util::IdIsValid(id)) {
LOG(ERROR) << "Bad extension id in cache: " << id;
id.clear();
@@ -486,7 +486,7 @@ std::string LocalExtensionCache::ExtensionFileName(
const std::string& expected_hash) {
std::string filename = id + "-" + version;
if (!expected_hash.empty())
- filename += "-" + base::StringToLowerASCII(expected_hash);
+ filename += "-" + base::ToLowerASCII(expected_hash);
filename += kCRXFileExtension;
return filename;
}
@@ -612,7 +612,7 @@ LocalExtensionCache::CacheItemInfo::CacheItemInfo(
uint64 size,
const base::FilePath& file_path)
: version(version),
- expected_hash(base::StringToLowerASCII(expected_hash)),
+ expected_hash(base::ToLowerASCII(expected_hash)),
last_used(last_used),
size(size),
file_path(file_path) {

Powered by Google App Engine
This is Rietveld 408576698