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

Unified Diff: content/common/plugin_list.cc

Issue 448853002: Move StringToLowerASCII to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 ea74a706fe41da0848d1765d18c6a9dba10372e3..e89aaf9e84964d1368180ad487fcdaf50d38112d 100644
--- a/content/common/plugin_list.cc
+++ b/content/common/plugin_list.cc
@@ -143,7 +143,7 @@ bool PluginList::ParseMimeTypes(
for (size_t i = 0; i < mime_types.size(); ++i) {
WebPluginMimeType mime_type;
- mime_type.mime_type = StringToLowerASCII(mime_types[i]);
+ mime_type.mime_type = base::StringToLowerASCII(mime_types[i]);
if (file_extensions.size() > i)
base::SplitString(file_extensions[i], ',', &mime_type.file_extensions);
@@ -313,7 +313,7 @@ void PluginList::GetPluginInfoArray(
bool include_npapi,
std::vector<WebPluginInfo>* info,
std::vector<std::string>* actual_mime_types) {
- DCHECK(mime_type == StringToLowerASCII(mime_type));
+ DCHECK(mime_type == base::StringToLowerASCII(mime_type));
DCHECK(info);
if (!use_stale)
@@ -348,7 +348,8 @@ void PluginList::GetPluginInfoArray(
std::string path = url.path();
std::string::size_type last_dot = path.rfind('.');
if (last_dot != std::string::npos && mime_type.empty()) {
- std::string extension = StringToLowerASCII(std::string(path, last_dot+1));
+ std::string extension =
+ base::StringToLowerASCII(std::string(path, 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