[Code Health] Remove ListValue::GetSize in //components
This was an automated change done with a slightly modified copy of //tools/clang/value_cleanup. Bug: 1187064 Change-Id: Ia4cad3eb393798a00a39577411076f3e614c1bb9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3138835 Auto-Submit: Clark DuVall <cduvall@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Reviewed-by: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/main@{#917646}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
c8916d5ab0
commit
23192259d2
components
accuracy_tips
data_reduction_proxy
core
embedder_support
origin_trials
login
metrics
file_metrics_provider.ccmetrics_log_store_unittest.ccunsent_log_store.ccunsent_log_store_unittest.cc
net_log
ntp_snippets
category_rankers
ntp_tiles
omnibox
payments
content
utility
policy
core
safe_browsing
safe_search_api
safe_search
search_engines
signin
internal
identity_manager
spellcheck
browser
sync
base
protocol
test
fake_server
ukm
user_manager
variations
webcrypto
@ -52,7 +52,7 @@ bool ParseResponse(const std::string& response, bool* is_porn) {
|
||||
DLOG(WARNING) << "ParseResponse failed to parse classifications list";
|
||||
return false;
|
||||
}
|
||||
if (classifications_list->GetSize() != 1) {
|
||||
if (classifications_list->GetList().size() != 1) {
|
||||
DLOG(WARNING) << "ParseResponse expected exactly one result";
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user