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

Unified Diff: content/child/site_isolation_policy.cc

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the 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.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/site_isolation_policy.cc
diff --git a/content/child/site_isolation_policy.cc b/content/child/site_isolation_policy.cc
index 9b982b626cca90bcebe4cb33e8c369b873ada7f9..32abbdca35b236c160d8e1767c55604b4388417e 100644
--- a/content/child/site_isolation_policy.cc
+++ b/content/child/site_isolation_policy.cc
@@ -67,7 +67,7 @@ bool MatchesSignature(StringPiece data,
if (length < signature_length)
continue;
- if (LowerCaseEqualsASCII(
+ if (base::LowerCaseEqualsASCII(
data.begin(), data.begin() + signature_length, signature.data()))
return true;
}
@@ -198,7 +198,7 @@ SiteIsolationPolicy::OnReceivedResponse(const GURL& frame_origin,
resp_data->resource_type = resource_type;
resp_data->canonical_mime_type = canonical_mime_type;
resp_data->http_status_code = info.headers->response_code();
- resp_data->no_sniff = LowerCaseEqualsASCII(no_sniff, "nosniff");
+ resp_data->no_sniff = base::LowerCaseEqualsASCII(no_sniff, "nosniff");
return resp_data;
}
@@ -306,23 +306,23 @@ bool SiteIsolationPolicy::ShouldBlockResponse(
SiteIsolationResponseMetaData::CanonicalMimeType
SiteIsolationPolicy::GetCanonicalMimeType(const std::string& mime_type) {
- if (LowerCaseEqualsASCII(mime_type, kTextHtml)) {
+ if (base::LowerCaseEqualsASCII(mime_type, kTextHtml)) {
return SiteIsolationResponseMetaData::HTML;
}
- if (LowerCaseEqualsASCII(mime_type, kTextPlain)) {
+ if (base::LowerCaseEqualsASCII(mime_type, kTextPlain)) {
return SiteIsolationResponseMetaData::Plain;
}
- if (LowerCaseEqualsASCII(mime_type, kAppJson) ||
- LowerCaseEqualsASCII(mime_type, kTextJson) ||
- LowerCaseEqualsASCII(mime_type, kTextXjson)) {
+ if (base::LowerCaseEqualsASCII(mime_type, kAppJson) ||
+ base::LowerCaseEqualsASCII(mime_type, kTextJson) ||
+ base::LowerCaseEqualsASCII(mime_type, kTextXjson)) {
return SiteIsolationResponseMetaData::JSON;
}
- if (LowerCaseEqualsASCII(mime_type, kTextXml) ||
- LowerCaseEqualsASCII(mime_type, xAppRssXml) ||
- LowerCaseEqualsASCII(mime_type, kAppXml)) {
+ if (base::LowerCaseEqualsASCII(mime_type, kTextXml) ||
+ base::LowerCaseEqualsASCII(mime_type, xAppRssXml) ||
+ base::LowerCaseEqualsASCII(mime_type, kAppXml)) {
return SiteIsolationResponseMetaData::XML;
}
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698