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

Unified Diff: content/child/site_isolation_policy.cc

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
Patch Set: Created 5 years, 6 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_request_util.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 6d42423567281f0de87bf83e503cf9575deec4a1..5210423561cae38c15fac573af274b8e435d655d 100644
--- a/content/child/site_isolation_policy.cc
+++ b/content/child/site_isolation_policy.cc
@@ -66,8 +66,9 @@ bool MatchesSignature(StringPiece data,
if (length < signature_length)
continue;
- if (LowerCaseEqualsASCII(data.begin(), data.begin() + signature_length,
- signature.data()))
+ if (base::LowerCaseEqualsASCII(data.begin(),
+ data.begin() + signature_length,
+ signature.data()))
return true;
}
return false;
@@ -194,7 +195,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;
}
@@ -299,23 +300,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_request_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698