From 3fde0336ae6f77971950e1f13b044edf0127353e Mon Sep 17 00:00:00 2001 From: Claudio DeSouza Date: Fri, 8 Mar 2024 18:29:18 +0000 Subject: [PATCH] `std::erase` now available This change removes the unused inclusion of stragling headers for the old `base::Erase/EraseIf` Chromium change: https://chromium.googlesource.com/chromium/src/+/fcb1dcc7fc7b7de16a27399f8ef7373dda9463cf commit fcb1dcc7fc7b7de16a27399f8ef7373dda9463cf Author: Andrew Rayskiy Date: Wed Mar 6 13:24:21 2024 +0000 [base] Remove Erase()/EraseIf() overloads for std::vector<> All call sites have been updated to std::erase()/std::erase_if(). Bug: 40256229 --- browser/brave_shields/brave_shields_web_contents_observer.cc | 1 - browser/brave_vpn/win/service_details.cc | 1 - browser/brave_wallet/solana_provider_impl_unittest.cc | 1 - browser/ui/commands/accelerator_service.cc | 1 - .../chrome/browser/ui/webui/settings/site_settings_helper.cc | 1 - components/api_request_helper/api_request_helper.cc | 1 - .../brave_rewards/core/contribution/contribution_monthly.cc | 1 - 7 files changed, 7 deletions(-) diff --git a/browser/brave_shields/brave_shields_web_contents_observer.cc b/browser/brave_shields/brave_shields_web_contents_observer.cc index 8de7836d2f3..24d1f681faa 100644 --- a/browser/brave_shields/brave_shields_web_contents_observer.cc +++ b/browser/brave_shields/brave_shields_web_contents_observer.cc @@ -10,7 +10,6 @@ #include #include -#include "base/containers/cxx20_erase_vector.h" #include "base/feature_list.h" #include "base/strings/utf_string_conversions.h" #include "brave/components/brave_perf_predictor/browser/perf_predictor_tab_helper.h" diff --git a/browser/brave_vpn/win/service_details.cc b/browser/brave_vpn/win/service_details.cc index 677f62bbe13..b375e82f7b7 100644 --- a/browser/brave_vpn/win/service_details.cc +++ b/browser/brave_vpn/win/service_details.cc @@ -9,7 +9,6 @@ #include -#include "base/containers/cxx20_erase.h" #include "base/notreached.h" #include "base/path_service.h" #include "brave/browser/brave_vpn/win/service_constants.h" diff --git a/browser/brave_wallet/solana_provider_impl_unittest.cc b/browser/brave_wallet/solana_provider_impl_unittest.cc index 6294961597f..3dff5c04b9c 100644 --- a/browser/brave_wallet/solana_provider_impl_unittest.cc +++ b/browser/brave_wallet/solana_provider_impl_unittest.cc @@ -9,7 +9,6 @@ #include #include -#include "base/containers/cxx20_erase_vector.h" #include "base/json/json_reader.h" #include "base/memory/raw_ptr.h" #include "base/test/bind.h" diff --git a/browser/ui/commands/accelerator_service.cc b/browser/ui/commands/accelerator_service.cc index ecc59004ce5..a8b1eb2f1a8 100644 --- a/browser/ui/commands/accelerator_service.cc +++ b/browser/ui/commands/accelerator_service.cc @@ -12,7 +12,6 @@ #include #include "base/containers/contains.h" -#include "base/containers/cxx20_erase_vector.h" #include "base/containers/flat_map.h" #include "base/containers/flat_set.h" #include "base/ranges/algorithm.h" diff --git a/chromium_src/chrome/browser/ui/webui/settings/site_settings_helper.cc b/chromium_src/chrome/browser/ui/webui/settings/site_settings_helper.cc index 10ebdec9b28..dd1ba5e9a28 100644 --- a/chromium_src/chrome/browser/ui/webui/settings/site_settings_helper.cc +++ b/chromium_src/chrome/browser/ui/webui/settings/site_settings_helper.cc @@ -8,7 +8,6 @@ #include #include -#include "base/containers/cxx20_erase_vector.h" #include "brave/components/brave_shields/core/common/brave_shield_constants.h" #include "third_party/blink/public/common/features.h" diff --git a/components/api_request_helper/api_request_helper.cc b/components/api_request_helper/api_request_helper.cc index 45f8ea0ac52..7b3c5c771ca 100644 --- a/components/api_request_helper/api_request_helper.cc +++ b/components/api_request_helper/api_request_helper.cc @@ -11,7 +11,6 @@ #include "base/check.h" #include "base/check_op.h" -#include "base/containers/cxx20_erase_vector.h" #include "base/debug/alias.h" #include "base/debug/dump_without_crashing.h" #include "base/json/json_reader.h" diff --git a/components/brave_rewards/core/contribution/contribution_monthly.cc b/components/brave_rewards/core/contribution/contribution_monthly.cc index 92275315e21..21bba654d72 100644 --- a/components/brave_rewards/core/contribution/contribution_monthly.cc +++ b/components/brave_rewards/core/contribution/contribution_monthly.cc @@ -10,7 +10,6 @@ #include #include -#include "base/containers/cxx20_erase.h" #include "base/functional/bind.h" #include "base/uuid.h" #include "brave/components/brave_rewards/core/common/time_util.h"