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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.cc

Issue 658993002: Convert ARRAYSIZE_UNSAFE -> arraysize in components/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/core/browser/data_reduction_proxy_tamper_detection.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.cc
index 3c7c644081a3371aa099fc093b9f49c7d4d9d6cb..6b89bbac6d1e92aa9a4af70c7ebd79a63e8d69d9 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.cc
@@ -365,8 +365,7 @@ void DataReductionProxyTamperDetection::GetMD5(
const std::string& input, std::string* output) {
base::MD5Digest digest;
base::MD5Sum(input.c_str(), input.size(), &digest);
- *output = std::string(
- reinterpret_cast<char*>(digest.a), ARRAYSIZE_UNSAFE(digest.a));
+ *output = std::string(reinterpret_cast<char*>(digest.a), arraysize(digest.a));
}
std::vector<std::string> DataReductionProxyTamperDetection::GetHeaderValues(

Powered by Google App Engine
This is Rietveld 408576698