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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detection.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
Index: components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detection.cc
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detection.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detection.cc
index 3cb822ab4ceb88a2e23041b06f329dd676abb78b..7b4beae040a589afd99c12ff5e2d1ab6f113e4c5 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detection.cc
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detection.cc
@@ -306,11 +306,14 @@ void DataReductionProxyTamperDetection::
std::string IMAGE = "image/";
size_t mime_type_size = mime_type.size();
- if ((mime_type_size >= JS1.size() && LowerCaseEqualsASCII(mime_type.begin(),
+ if ((mime_type_size >= JS1.size() &&
+ base::LowerCaseEqualsASCII(mime_type.begin(),
mime_type.begin() + JS1.size(), JS1.c_str())) ||
- (mime_type_size >= JS2.size() && LowerCaseEqualsASCII(mime_type.begin(),
+ (mime_type_size >= JS2.size() &&
+ base::LowerCaseEqualsASCII(mime_type.begin(),
mime_type.begin() + JS2.size(), JS2.c_str())) ||
- (mime_type_size >= JS3.size() && LowerCaseEqualsASCII(mime_type.begin(),
+ (mime_type_size >= JS3.size() &&
+ base::LowerCaseEqualsASCII(mime_type.begin(),
mime_type.begin() + JS3.size(), JS3.c_str()))) {
REPORT_TAMPER_DETECTION_UMA(
scheme_is_https_,
@@ -318,7 +321,7 @@ void DataReductionProxyTamperDetection::
"DataReductionProxy.HeaderTamperedHTTP_ContentLength_JS",
carrier_id_);
} else if (mime_type_size >= CSS.size() &&
- LowerCaseEqualsASCII(mime_type.begin(),
+ base::LowerCaseEqualsASCII(mime_type.begin(),
mime_type.begin() + CSS.size(), CSS.c_str())) {
REPORT_TAMPER_DETECTION_UMA(
scheme_is_https_,
@@ -326,7 +329,7 @@ void DataReductionProxyTamperDetection::
"DataReductionProxy.HeaderTamperedHTTP_ContentLength_CSS",
carrier_id_);
} else if (mime_type_size >= IMAGE.size() &&
- LowerCaseEqualsASCII(mime_type.begin(),
+ base::LowerCaseEqualsASCII(mime_type.begin(),
mime_type.begin() + IMAGE.size(), IMAGE.c_str())) {
REPORT_TAMPER_DETECTION_UMA(
scheme_is_https_,

Powered by Google App Engine
This is Rietveld 408576698