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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.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_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc
index cdda92cf7a26fb7b42901dad8c6da307b0cb4209..d83caf7c3970506caf0c1e0300396ad4185453a3 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc
@@ -34,7 +34,7 @@ std::string GetEncoded(const std::string& input) {
base::MD5Digest digest;
base::MD5Sum(input.c_str(), input.size(), &digest);
std::string base64encoded;
- base::Base64Encode(std::string((char*)digest.a, arraysize(digest.a)),
+ base::Base64Encode(std::string((char*)digest, arraysize(digest)),
&base64encoded);
return base64encoded;
}

Powered by Google App Engine
This is Rietveld 408576698