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

Unified Diff: content/common/plugin_list.cc

Issue 1282363003: Convert remaining StringToLowerASCII to ToLowerASCII (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 | « content/child/npapi/webplugin_delegate_impl_win.cc ('k') | content/common/plugin_list_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/plugin_list.cc
diff --git a/content/common/plugin_list.cc b/content/common/plugin_list.cc
index 1cc8fa577e59003d9888b5c4d8bf09c9eb2d46f2..c162727b01588f44b19bb89b6a7364f62563af44 100644
--- a/content/common/plugin_list.cc
+++ b/content/common/plugin_list.cc
@@ -145,7 +145,7 @@ bool PluginList::ParseMimeTypes(
for (size_t i = 0; i < mime_types.size(); ++i) {
WebPluginMimeType mime_type;
- mime_type.mime_type = base::StringToLowerASCII(mime_types[i]);
+ mime_type.mime_type = base::ToLowerASCII(mime_types[i]);
if (file_extensions.size() > i) {
mime_type.file_extensions = base::SplitString(
file_extensions[i], ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
@@ -317,7 +317,7 @@ void PluginList::GetPluginInfoArray(
bool include_npapi,
std::vector<WebPluginInfo>* info,
std::vector<std::string>* actual_mime_types) {
- DCHECK(mime_type == base::StringToLowerASCII(mime_type));
+ DCHECK(mime_type == base::ToLowerASCII(mime_type));
DCHECK(info);
if (!use_stale)
@@ -353,7 +353,7 @@ void PluginList::GetPluginInfoArray(
std::string::size_type last_dot = path.rfind('.');
if (last_dot != std::string::npos && mime_type.empty()) {
std::string extension =
- base::StringToLowerASCII(std::string(path, last_dot+1));
+ base::ToLowerASCII(base::StringPiece(path).substr(last_dot + 1));
std::string actual_mime_type;
for (size_t i = 0; i < plugins_list_.size(); ++i) {
if (SupportsExtension(plugins_list_[i], extension, &actual_mime_type)) {
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl_win.cc ('k') | content/common/plugin_list_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698