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

Unified Diff: base/metrics/field_trial.cc

Issue 7972024: Update SHA1_LENGTH -> kSHA1Length to match previous change to SHA256_LENGTH. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « DEPS ('k') | base/sha1.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/field_trial.cc
===================================================================
--- base/metrics/field_trial.cc (revision 102606)
+++ base/metrics/field_trial.cc (working copy)
@@ -170,7 +170,7 @@
// and trial_name we get into something with a uniform distribution, which
// is desirable so that we don't skew any part of the 0-100% spectrum.
std::string input(client_id + trial_name);
- unsigned char sha1_hash[SHA1_LENGTH];
+ unsigned char sha1_hash[kSHA1Length];
SHA1HashBytes(reinterpret_cast<const unsigned char*>(input.c_str()),
input.size(),
sha1_hash);
« no previous file with comments | « DEPS ('k') | base/sha1.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698