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
|
@ -154,8 +154,8 @@ void SerialChooserController::OnPortAdded(
|
|||
|
||||
void SerialChooserController::OnPortRemoved(
|
||||
const device::mojom::SerialPortInfo& port) {
|
||||
const auto it = base::ranges::find(ports_, port.token,
|
||||
&device::mojom::SerialPortInfo::token);
|
||||
const auto it = std::ranges::find(ports_, port.token,
|
||||
&device::mojom::SerialPortInfo::token);
|
||||
if (it != ports_.end()) {
|
||||
api::Session* session = GetSession();
|
||||
if (session) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue