0

[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:
Clark DuVall
2021-09-02 13:46:33 +00:00
committed by Chromium LUCI CQ
parent c8916d5ab0
commit 23192259d2
44 changed files with 94 additions and 73 deletions

@ -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;
}