0

[cleanup] Replace base::ranges with std::ranges: printing/

Done entirely with `git grep` and `sed` + `git cl format`, no
hand-editing.

Bug: 386918226
Change-Id: I34be6a0db9dd75434fffcfa02ede4516baed960c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6204081
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1411900}
This commit is contained in:
Peter Kasting
2025-01-27 14:15:03 -08:00
committed by Chromium LUCI CQ
parent ea32bec275
commit 4bd1ed0439

@ -18,7 +18,6 @@
#include "base/containers/fixed_flat_set.h"
#include "base/logging.h"
#include "base/numerics/clamped_math.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "printing/backend/cups_connection.h"
@ -813,7 +812,7 @@ void FilterMediaColSizes(ScopedIppPtr& attributes) {
// Finally, update the attribute that was passed in with the new entries.
ippDeleteAttribute(attributes.get(), media_col_db);
std::vector<const ipp_t*> raw_entries(new_entries.size());
base::ranges::transform(new_entries, raw_entries.begin(), &ScopedIppPtr::get);
std::ranges::transform(new_entries, raw_entries.begin(), &ScopedIppPtr::get);
ippAddCollections(attributes.get(), IPP_TAG_PRINTER, kIppMediaColDatabase,
raw_entries.size(), raw_entries.data());
}