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,9 +4,9 @@
|
|||
|
||||
#include "shell/browser/electron_browser_context.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "base/barrier_closure.h"
|
||||
|
@ -129,7 +129,7 @@ media::mojom::CaptureHandlePtr CreateCaptureHandle(
|
|||
|
||||
const auto& captured_config = captured->GetCaptureHandleConfig();
|
||||
if (!captured_config.all_origins_permitted &&
|
||||
base::ranges::none_of(
|
||||
std::ranges::none_of(
|
||||
captured_config.permitted_origins,
|
||||
[capturer_origin](const url::Origin& permitted_origin) {
|
||||
return capturer_origin.IsSameOriginWith(permitted_origin);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue