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:
parent
305b28e9c7
commit
5a809a6694
8 changed files with 28 additions and 24 deletions
|
@ -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);
|
||||
})) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue