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

Unified Diff: trunk/src/content/child/site_isolation_policy.cc

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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
Index: trunk/src/content/child/site_isolation_policy.cc
===================================================================
--- trunk/src/content/child/site_isolation_policy.cc (revision 289319)
+++ trunk/src/content/child/site_isolation_policy.cc (working copy)
@@ -67,7 +67,7 @@
if (length < signature_length)
continue;
- if (base::LowerCaseEqualsASCII(
+ if (LowerCaseEqualsASCII(
data.begin(), data.begin() + signature_length, signature.data()))
return true;
}
@@ -198,7 +198,7 @@
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 = base::LowerCaseEqualsASCII(no_sniff, "nosniff");
+ resp_data->no_sniff = LowerCaseEqualsASCII(no_sniff, "nosniff");
return resp_data;
}
@@ -306,23 +306,23 @@
SiteIsolationResponseMetaData::CanonicalMimeType
SiteIsolationPolicy::GetCanonicalMimeType(const std::string& mime_type) {
- if (base::LowerCaseEqualsASCII(mime_type, kTextHtml)) {
+ if (LowerCaseEqualsASCII(mime_type, kTextHtml)) {
return SiteIsolationResponseMetaData::HTML;
}
- if (base::LowerCaseEqualsASCII(mime_type, kTextPlain)) {
+ if (LowerCaseEqualsASCII(mime_type, kTextPlain)) {
return SiteIsolationResponseMetaData::Plain;
}
- if (base::LowerCaseEqualsASCII(mime_type, kAppJson) ||
- base::LowerCaseEqualsASCII(mime_type, kTextJson) ||
- base::LowerCaseEqualsASCII(mime_type, kTextXjson)) {
+ if (LowerCaseEqualsASCII(mime_type, kAppJson) ||
+ LowerCaseEqualsASCII(mime_type, kTextJson) ||
+ LowerCaseEqualsASCII(mime_type, kTextXjson)) {
return SiteIsolationResponseMetaData::JSON;
}
- if (base::LowerCaseEqualsASCII(mime_type, kTextXml) ||
- base::LowerCaseEqualsASCII(mime_type, xAppRssXml) ||
- base::LowerCaseEqualsASCII(mime_type, kAppXml)) {
+ if (LowerCaseEqualsASCII(mime_type, kTextXml) ||
+ LowerCaseEqualsASCII(mime_type, xAppRssXml) ||
+ LowerCaseEqualsASCII(mime_type, kAppXml)) {
return SiteIsolationResponseMetaData::XML;
}
« no previous file with comments | « trunk/src/content/child/npapi/webplugin_delegate_impl.cc ('k') | trunk/src/content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698