0

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

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

Bug: 386918226
Change-Id: Id0722ef5a7299e623bd8da797d6e683ac1ea6ea8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6204062
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: David Dorwin <ddorwin@chromium.org>
Reviewed-by: David Dorwin <ddorwin@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1411853}
This commit is contained in:
Peter Kasting
2025-01-27 13:16:19 -08:00
committed by Chromium LUCI CQ
parent 604e91f3b2
commit 02775124f5

@ -6,13 +6,13 @@
#include <lib/sys/component/cpp/testing/realm_builder.h>
#include <algorithm>
#include <string>
#include <string_view>
#include <utility>
#include "base/check.h"
#include "base/command_line.h"
#include "base/ranges/algorithm.h"
using ::component_testing::ChildRef;
using ::component_testing::Directory;
@ -42,7 +42,7 @@ void AppendCommandLineArgumentsToProgram(
// Create a new "args" list and insert it at the proper location in the
// program's entries; entries' keys must be sorted as per
// https://fuchsia.dev/reference/fidl/fuchsia.data?hl=en#Dictionary.
auto lower_bound = base::ranges::lower_bound(
auto lower_bound = std::ranges::lower_bound(
*entries, "args", /*comp=*/{},
[](const fuchsia::data::DictionaryEntry& entry) { return entry.key; });
auto it = entries->emplace(lower_bound);