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

Unified Diff: components/metrics/metrics_hashes.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/metrics/metrics_hashes.cc
diff --git a/components/metrics/metrics_hashes.cc b/components/metrics/metrics_hashes.cc
index a042bcdf2c18e42de2da8a1beeb5230a5df7fa80..8d12fde39a1672c6335892970479ab6d0112288f 100644
--- a/components/metrics/metrics_hashes.cc
+++ b/components/metrics/metrics_hashes.cc
@@ -32,7 +32,7 @@ uint64 HashMetricName(const std::string& name) {
base::MD5Digest digest;
base::MD5Final(&digest, &context);
- std::string hash_str(reinterpret_cast<char*>(digest.a), arraysize(digest.a));
+ std::string hash_str(reinterpret_cast<char*>(digest), arraysize(digest));
return HashToUInt64(hash_str);
}

Powered by Google App Engine
This is Rietveld 408576698