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

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

Issue 1099453002: base: Simplify the construction of MD5Digest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 8 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 823d0a7deb59e426608b8fa48f0dd99b2b4c6697..943777fb0175831c0b9a9f43e725deab37c0cecb 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
@@ -522,7 +522,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(digest.a));
+ *output = std::string(reinterpret_cast<char*>(digest), arraysize(digest));
}
std::vector<std::string> DataReductionProxyTamperDetection::GetHeaderValues(
« no previous file with comments | « base/md5_unittest.cc ('k') | components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698