[cleanup] Replace base::ranges with std::ranges: rlz/
Done entirely with `git grep` and `sed` + `git cl format`, no hand-editing. Bug: 386918226 Change-Id: I80c2368debaef5a1c7a29bec6fe8e2a3a0653fba Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6203723 Auto-Submit: Peter Kasting <pkasting@chromium.org> Reviewed-by: Sylvain Defresne <sdefresne@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/main@{#1412238}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
3f7515c69a
commit
d997de9f94
@ -6,9 +6,10 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "base/hash/sha1.h"
|
||||
#include "base/rand_util.h"
|
||||
#include "base/ranges/algorithm.h"
|
||||
#include "base/strings/stringprintf.h"
|
||||
#include "build/chromeos_buildflags.h"
|
||||
#include "rlz/lib/assert.h"
|
||||
@ -89,7 +90,7 @@ bool GetMachineIdImpl(const std::u16string& sid_string,
|
||||
// Note that digest can have embedded nulls.
|
||||
std::string digest(base::SHA1HashString(sid_string_buffer));
|
||||
VERIFY(digest.size() == base::kSHA1Length);
|
||||
base::ranges::copy(digest, id_binary.begin());
|
||||
std::ranges::copy(digest, id_binary.begin());
|
||||
}
|
||||
|
||||
// Convert from int to binary (makes big-endian).
|
||||
|
Reference in New Issue
Block a user