Remove deprecated base::JSONWriter::Write() calls in //services [chromium/src : main]

0 views
Skip to first unread message

Daniel Cheng (Gerrit)

unread,
Sep 4, 2025, 5:01:12 PM (4 days ago) Sep 4
to Lei Zhang, Daniel Cheng, Chromium LUCI CQ, chromium...@chromium.org, jdeblas...@chromium.org, martijn...@martijnc.be, mbarowsky+watc...@chromium.org, network-ser...@chromium.org, rsleev...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Lei Zhang

Daniel Cheng added 1 comment

File services/tracing/public/cpp/perfetto/metadata_data_source.cc
Line 222, Patchset 4 (Latest): CHECK(json_value.has_value());
Daniel Cheng . unresolved

Should we have this `CHECK()` given the `value_or` below?

Open in Gerrit

Related details

Attention is currently required from:
  • Lei Zhang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I83eb012214f0213e9e32810fbd50c84ffe4e9b2f
Gerrit-Change-Number: 6917455
Gerrit-PatchSet: 4
Gerrit-Owner: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Comment-Date: Thu, 04 Sep 2025 21:01:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Lei Zhang (Gerrit)

unread,
Sep 4, 2025, 5:16:48 PM (4 days ago) Sep 4
to Lei Zhang, Daniel Cheng, Chromium LUCI CQ, chromium...@chromium.org, jdeblas...@chromium.org, martijn...@martijnc.be, mbarowsky+watc...@chromium.org, network-ser...@chromium.org, rsleev...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Daniel Cheng

Lei Zhang added 1 comment

File services/tracing/public/cpp/perfetto/metadata_data_source.cc
Line 222, Patchset 4 (Latest): CHECK(json_value.has_value());
Daniel Cheng . resolved

Should we have this `CHECK()` given the `value_or` below?

Lei Zhang

Whoops. We shouldn't have 2 WriteJson() calls.

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Cheng
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I83eb012214f0213e9e32810fbd50c84ffe4e9b2f
Gerrit-Change-Number: 6917455
Gerrit-PatchSet: 4
Gerrit-Owner: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Comment-Date: Thu, 04 Sep 2025 21:16:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Daniel Cheng <dch...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Daniel Cheng (Gerrit)

unread,
Sep 5, 2025, 4:31:27 AM (3 days ago) Sep 5
to Lei Zhang, Daniel Cheng, Chromium LUCI CQ, chromium...@chromium.org, jdeblas...@chromium.org, martijn...@martijnc.be, mbarowsky+watc...@chromium.org, network-ser...@chromium.org, rsleev...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Lei Zhang

Daniel Cheng voted and added 1 comment

Votes added by Daniel Cheng

Code-Review+1
Commit-Queue+2
Owners-Override+1

1 comment

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Daniel Cheng . resolved

LGTM

Open in Gerrit

Related details

Attention is currently required from:
  • Lei Zhang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I83eb012214f0213e9e32810fbd50c84ffe4e9b2f
Gerrit-Change-Number: 6917455
Gerrit-PatchSet: 5
Gerrit-Owner: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Comment-Date: Fri, 05 Sep 2025 08:31:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Sep 5, 2025, 5:21:53 AM (3 days ago) Sep 5
to Lei Zhang, Daniel Cheng, chromium...@chromium.org, jdeblas...@chromium.org, martijn...@martijnc.be, mbarowsky+watc...@chromium.org, network-ser...@chromium.org, rsleev...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
Remove deprecated base::JSONWriter::Write() calls in //services

Mechanically switch from base::JSONWriter::Write() to base::WriteJson().
Keep the existing behavior for all callers. So if a caller does not
check the Write() return result, then return an empty string on failure.

This CL was initially AI generated, with https://crrev.com/c/6916012 as
the human-written example CL to follow. With some human touch-ups.
Change-Id: I83eb012214f0213e9e32810fbd50c84ffe4e9b2f
Commit-Queue: Daniel Cheng <dch...@chromium.org>
Reviewed-by: Daniel Cheng <dch...@chromium.org>
Owners-Override: Daniel Cheng <dch...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1511400}
Files:
  • M services/data_decoder/public/cpp/json_sanitizer_non_android.cc
  • M services/device/geolocation/network_location_request.cc
  • M services/image_annotation/annotator.cc
  • M services/image_annotation/annotator_unittest.cc
  • M services/network/sct_auditing/sct_auditing_handler.cc
  • M services/network/trust_tokens/trust_token_key_commitment_parser_unittest.cc
  • M services/tracing/public/cpp/perfetto/metadata_data_source.cc
  • M services/tracing/public/cpp/perfetto/trace_event_metadata_source.cc
Change size: S
Delta: 8 files changed, 13 insertions(+), 31 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Daniel Cheng
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I83eb012214f0213e9e32810fbd50c84ffe4e9b2f
Gerrit-Change-Number: 6917455
Gerrit-PatchSet: 6
Gerrit-Owner: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages