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

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: Use Verify instead of manual hash comparison. 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
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..bd6c332f93bdbbfbfc9c079b9e01c1795fc55aca 100644
--- a/chrome/browser/prefs/pref_hash_calculator.h
+++ b/chrome/browser/prefs/pref_hash_calculator.h
@@ -39,10 +39,8 @@ 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;
+ 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') | chrome/browser/prefs/pref_hash_calculator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698