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:

committed by
Chromium LUCI CQ

parent
93ad6364ef
commit
d82594fc3a
components
os_crypt
async
ownership
password_manager
core
policy
core
common
test_support
qr_code_generator
reporting
encryption
safe_browsing
saved_tab_groups
security_interstitials
services
paint_preview_compositor
storage
dom_storage
dom_storage_database.ccdom_storage_database_unittest.cclocal_storage_impl.cclocal_storage_impl_unittest.ccsession_storage_data_map_unittest.ccsession_storage_impl.ccsession_storage_impl_unittest.ccsession_storage_metadata.ccsession_storage_metadata_unittest.cc
public
cpp
filesystem
service_worker
sessions
sharing_message
signin
internal
identity_manager
public
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user