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

Unified Diff: extensions/common/permissions/socket_permission_entry.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 | « extensions/common/message_bundle.cc ('k') | google_apis/gaia/gaia_auth_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/permissions/socket_permission_entry.cc
diff --git a/extensions/common/permissions/socket_permission_entry.cc b/extensions/common/permissions/socket_permission_entry.cc
index 86c61de043f5e651303a35567a2d381c9cb0263a..012eda001b4c03df14d440158b68095019ca9d18 100644
--- a/extensions/common/permissions/socket_permission_entry.cc
+++ b/extensions/common/permissions/socket_permission_entry.cc
@@ -75,7 +75,7 @@ bool SocketPermissionEntry::Check(
if (pattern_.type != request.type)
return false;
- std::string lhost = base::StringToLowerASCII(request.host);
+ std::string lhost = base::ToLowerASCII(request.host);
if (pattern_.host != lhost) {
if (!match_subdomains_)
return false;
@@ -166,7 +166,7 @@ bool SocketPermissionEntry::ParseHostPattern(
if (!result.pattern_.host.empty()) {
if (StartsOrEndsWithWhitespace(result.pattern_.host))
return false;
- result.pattern_.host = base::StringToLowerASCII(result.pattern_.host);
+ result.pattern_.host = base::ToLowerASCII(result.pattern_.host);
// The first component can optionally be '*' to match all subdomains.
std::vector<std::string> host_components =
« no previous file with comments | « extensions/common/message_bundle.cc ('k') | google_apis/gaia/gaia_auth_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698