0

Remove usage of base::make_span(): components/, part 2

Replace with span() CTAD use, or more targeted helpers.

Bug: 341907909
Change-Id: If17945eb0811b5d171c1fd443b567b0990a9587f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6061144
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Cait Phillips <caitkp@google.com>
Reviewed-by: Cait Phillips <caitkp@google.com>
Cr-Commit-Position: refs/heads/main@{#1390403}
This commit is contained in:
Peter Kasting
2024-12-02 17:12:59 +00:00
committed by Chromium LUCI CQ
parent 93ad6364ef
commit d82594fc3a
41 changed files with 191 additions and 190 deletions

@ -136,7 +136,7 @@ class SessionFileReader {
crypto_key_(crypto_key) {
if (!crypto_key.empty()) {
aead_ = std::make_unique<crypto::Aead>(crypto::Aead::AES_256_GCM);
aead_->Init(base::make_span(crypto_key_));
aead_->Init(base::span(crypto_key_));
}
file_ = std::make_unique<base::File>(
path, base::File::FLAG_OPEN | base::File::FLAG_READ);
@ -526,7 +526,7 @@ void CommandStorageBackend::AppendCommands(
if (encrypt) {
aead_ = std::make_unique<crypto::Aead>(crypto::Aead::AES_256_GCM);
crypto_key_ = crypto_key;
aead_->Init(base::make_span(crypto_key_));
aead_->Init(base::span(crypto_key_));
} else {
aead_.reset();
}