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

Unified Diff: chrome/browser/prefs/pref_hash_calculator.h

Issue 110523006: Fix the hash generation algorithm to be consistent with prior implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile on Android. Created 6 years, 11 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 | « no previous file | chrome/browser/prefs/pref_hash_calculator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/pref_hash_calculator.h
diff --git a/chrome/browser/prefs/pref_hash_calculator.h b/chrome/browser/prefs/pref_hash_calculator.h
index 6f0fd851790c341d8baae1241f4f27d427fa3513..beaa09b2f63b6c6f6d788994ccc4aa4d3ee18f57 100644
--- a/chrome/browser/prefs/pref_hash_calculator.h
+++ b/chrome/browser/prefs/pref_hash_calculator.h
@@ -39,10 +39,9 @@ class PrefHashCalculator {
const std::string& hash) const;
private:
- // Calculate a hash using a deprecated hash algorithm. For validating old
- // hashes during migration.
- std::string CalculateLegacyHash(const std::string& path,
- const base::Value* value) const;
+ // Concatenates |device_id_|, |path|, and |value| to give the hash input.
+ std::string GetMessage(const std::string& path,
+ const base::Value* value) const;
std::string seed_;
std::string device_id_;
« no previous file with comments | « no previous file | chrome/browser/prefs/pref_hash_calculator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698