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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_api.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
« no previous file with comments | « chrome/browser/enumerate_modules_model_win.cc ('k') | chrome/browser/extensions/api/gcm/gcm_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/file_system/file_system_api.cc
diff --git a/chrome/browser/extensions/api/file_system/file_system_api.cc b/chrome/browser/extensions/api/file_system/file_system_api.cc
index 3f033d4fb6f1dba3b1e4ea0a6eb30b33d551baa7..58e9bfb5ba6ed19eef5e8b4194ea9deecca840f6 100644
--- a/chrome/browser/extensions/api/file_system/file_system_api.cc
+++ b/chrome/browser/extensions/api/file_system/file_system_api.cc
@@ -151,8 +151,7 @@ bool GetFileTypesFromAcceptOption(
for (std::vector<std::string>::const_iterator iter = list->begin();
iter != list->end(); ++iter) {
std::vector<base::FilePath::StringType> inner;
- std::string accept_type = *iter;
- base::StringToLowerASCII(&accept_type);
+ std::string accept_type = base::ToLowerASCII(*iter);
net::GetExtensionsForMimeType(accept_type, &inner);
if (inner.empty())
continue;
@@ -176,8 +175,7 @@ bool GetFileTypesFromAcceptOption(
std::vector<std::string>* list = accept_option.extensions.get();
for (std::vector<std::string>::const_iterator iter = list->begin();
iter != list->end(); ++iter) {
- std::string extension = *iter;
- base::StringToLowerASCII(&extension);
+ std::string extension = base::ToLowerASCII(*iter);
#if defined(OS_WIN)
extension_set.insert(base::UTF8ToWide(*iter));
#else
« no previous file with comments | « chrome/browser/enumerate_modules_model_win.cc ('k') | chrome/browser/extensions/api/gcm/gcm_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698