0

Migrate base::{size,empty,data} to STL equivalents in //components.

Bug: 1299695
Change-Id: Ia2ef2239d649b2a50569cad9b3f293ca23510b68
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3491962
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#975484}
This commit is contained in:
Daniel Cheng
2022-02-26 17:57:25 +00:00
committed by Chromium LUCI CQ
parent 91273092b0
commit 7b7aaecca4
266 changed files with 1011 additions and 1222 deletions
components
autofill
autofill_assistant
base32
blocklist
bookmarks
captive_portal
cbor
cdm
certificate_transparency
client_update_protocol
cloud_devices
commerce
component_updater
content_settings
crash
cronet
crx_file
dbus
discardable_memory
domain_reliability
download
drive
embedder_support
error_page
exo
favicon
favicon_base
feature_engagement
feedback
filename_generation
flags_ui
gcm_driver
google
core
history
history_clusters
image_fetcher
metrics
mirroring
nacl
navigation_metrics
network_session_configurator
network_time
no_state_prefetch
ntp_snippets
omnibox
open_from_clipboard
optimization_guide
os_crypt
page_info
password_manager
payments
pdf
permissions
policy
prefs
printing
proxy_config
query_parser
rlz
safe_browsing
safe_search_api
search_engines
services
sessions
signin
site_engagement
spellcheck
ssl_errors
storage_monitor
subresource_filter
sync
sync_device_info
tab_count_metrics
test
translate
update_client
upload_list
url_formatter
url_matcher
url_pattern_index
variations
visitedlink
viz
webcrypto
webrtc
zoom
zucchini

@ -70,7 +70,7 @@ class SafeSearchURLCheckerClientTest : public testing::Test {
protected:
GURL GetNewURL() {
CHECK(next_url_ < base::size(kURLs));
CHECK(next_url_ < std::size(kURLs));
return GURL(kURLs[next_url_++]);
}

@ -12,7 +12,6 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/cxx17_backports.h"
#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
@ -68,7 +67,7 @@ class SafeSearchURLCheckerTest : public testing::Test {
protected:
GURL GetNewURL() {
CHECK(next_url_ < base::size(kURLs));
CHECK(next_url_ < std::size(kURLs));
return GURL(kURLs[next_url_++]);
}