refactor: prefer std::ranges over base::ranges (#43172)

Xref: 5668999

Xref: https://groups.google.com/a/chromium.org/g/cxx/c/ZnIbkfJ0Glw
This commit is contained in:
Charles Kerr 2024-08-02 21:21:59 -05:00 committed by GitHub
parent 305b28e9c7
commit 5a809a6694
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 28 additions and 24 deletions

View file

@ -4,11 +4,11 @@
#include "shell/browser/usb/usb_chooser_controller.h"
#include <stddef.h>
#include <algorithm>
#include <cstddef>
#include <utility>
#include "base/functional/bind.h"
#include "base/ranges/algorithm.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
@ -146,7 +146,7 @@ bool UsbChooserController::DisplayDevice(
return false;
}
if (base::ranges::any_of(
if (std::ranges::any_of(
options_->exclusion_filters, [&device_info](const auto& filter) {
return device::UsbDeviceFilterMatches(*filter, device_info);
})) {