-
Daniel Cheng authored
base::Hash() is deprecated and is being replaced by base::FastHash(). The output of base::FastHash() is only fixed within the lifetime of a single process, so if the code depends on the mapping of inputs to hash outputs not changing over time, base::PersistentHash() must be used instead. Notes: - Add a base::PersistentHash() overload that takes a base::span to match base::FastHash(). - Fixes tracing ID generation to use base::PersistentHash(), since the tracing IDs are not always generated in the same process. Bug: 1025358, 1026837 Change-Id: Ibdfe5185c0a8fdb9ab2fd2ee7408ea73e842801b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1923499 Auto-Submit: Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by:
Alex Moshchuk <alexmos@chromium.org> Reviewed-by:
danakj <danakj@chromium.org> Reviewed-by:
enne <enne@chromium.org> Commit-Queue: Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#718400}
0d7d371c