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

Unified Diff: chrome/common/metrics_helpers.cc

Issue 7466003: MD5Update function uses StringPiece instead of raw buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove line from license. Created 9 years, 5 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
« no previous file with comments | « chrome/browser/sync/util/user_settings.cc ('k') | chrome/common/visitedlink_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/metrics_helpers.cc
diff --git a/chrome/common/metrics_helpers.cc b/chrome/common/metrics_helpers.cc
index c7aef5b1f9f1630b53bae9abaae82b79eb4c1731..0441862254545a0c4a2b74e0baa534f043edb75b 100644
--- a/chrome/common/metrics_helpers.cc
+++ b/chrome/common/metrics_helpers.cc
@@ -177,7 +177,7 @@ int MetricsLogBase::GetElapsedSeconds() {
std::string MetricsLogBase::CreateHash(const std::string& value) {
base::MD5Context ctx;
base::MD5Init(&ctx);
- base::MD5Update(&ctx, value.data(), value.length());
+ base::MD5Update(&ctx, value);
base::MD5Digest digest;
base::MD5Final(&digest, &ctx);
« no previous file with comments | « chrome/browser/sync/util/user_settings.cc ('k') | chrome/common/visitedlink_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698