WTF: Remove fprintf() call in text_encoding_registry.cc [chromium/src : main]

0 views
Skip to first unread message

Kent Tamura (Gerrit)

unread,
Dec 18, 2025, 1:39:11 AM (2 days ago) Dec 18
to Kent Tamura, Fredrik Söderquist, Chromium LUCI CQ, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, jshin...@chromium.org, kinuko...@chromium.org
Attention needed from Fredrik Söderquist

Kent Tamura voted and added 1 comment

Votes added by Kent Tamura

Auto-Submit+1

1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Kent Tamura . resolved

fs@, would you review this please?

Open in Gerrit

Related details

Attention is currently required from:
  • Fredrik Söderquist
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
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: Ia6720b913763c7977a3762f2c978ba2f9b6af736
Gerrit-Change-Number: 7266605
Gerrit-PatchSet: 2
Gerrit-Owner: Kent Tamura <tk...@chromium.org>
Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
Gerrit-Comment-Date: Thu, 18 Dec 2025 06:38:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

AI Code Reviewer (Gerrit)

unread,
Dec 18, 2025, 2:08:45 AM (2 days ago) Dec 18
to Kent Tamura, Fredrik Söderquist, Chromium LUCI CQ, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, jshin...@chromium.org, kinuko...@chromium.org
Attention needed from Fredrik Söderquist

AI Code Reviewer added 1 comment

File third_party/blink/renderer/platform/wtf/text/text_encoding_registry.cc
Line 253, Patchset 2 (Latest): std::stringstream stream;
AI Code Reviewer . unresolved

Blink Style Guide: Prefer blink:: types over STL and base types. Please use WTF::StringBuilder instead of std::stringstream. Note that StringBuilder uses Append() methods rather than stream operators.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Open in Gerrit

Related details

Attention is currently required from:
  • Fredrik Söderquist
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    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: Ia6720b913763c7977a3762f2c978ba2f9b6af736
    Gerrit-Change-Number: 7266605
    Gerrit-PatchSet: 2
    Gerrit-Owner: Kent Tamura <tk...@chromium.org>
    Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
    Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
    Gerrit-Comment-Date: Thu, 18 Dec 2025 07:08:41 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Fredrik Söderquist (Gerrit)

    unread,
    Dec 18, 2025, 4:20:15 AM (2 days ago) Dec 18
    to Kent Tamura, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, jshin...@chromium.org, kinuko...@chromium.org
    Attention needed from Kent Tamura

    Fredrik Söderquist voted

    Code-Review+1
    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kent Tamura
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      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: Ia6720b913763c7977a3762f2c978ba2f9b6af736
      Gerrit-Change-Number: 7266605
      Gerrit-PatchSet: 2
      Gerrit-Owner: Kent Tamura <tk...@chromium.org>
      Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
      Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-Attention: Kent Tamura <tk...@chromium.org>
      Gerrit-Comment-Date: Thu, 18 Dec 2025 09:20:03 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Kent Tamura (Gerrit)

      unread,
      Dec 18, 2025, 8:09:29 PM (2 days ago) Dec 18
      to Kent Tamura, AyeAye, Fredrik Söderquist, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org, eme-r...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, jshin...@chromium.org, kinuko...@chromium.org
      Attention needed from Fredrik Söderquist

      Kent Tamura voted and added 2 comments

      Votes added by Kent Tamura

      Auto-Submit+1
      Commit-Queue+1

      2 comments

      Patchset-level comments
      File-level comment, Patchset 4 (Latest):
      Kent Tamura . resolved

      fs@, this CL lost your CR+1 accidentally. Would you stamp this again please?

      File third_party/blink/renderer/platform/wtf/text/text_encoding_registry.cc
      Line 253, Patchset 2: std::stringstream stream;
      AI Code Reviewer . resolved

      Blink Style Guide: Prefer blink:: types over STL and base types. Please use WTF::StringBuilder instead of std::stringstream. Note that StringBuilder uses Append() methods rather than stream operators.

      To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
      **Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


      _This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
      _AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
      _[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

      Kent Tamura

      Done.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Fredrik Söderquist
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedReview-Enforcement
        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: Ia6720b913763c7977a3762f2c978ba2f9b6af736
        Gerrit-Change-Number: 7266605
        Gerrit-PatchSet: 4
        Gerrit-Owner: Kent Tamura <tk...@chromium.org>
        Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
        Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
        Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
        Gerrit-Comment-Date: Fri, 19 Dec 2025 01:08:56 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Fredrik Söderquist (Gerrit)

        unread,
        Dec 19, 2025, 4:43:49 AM (yesterday) Dec 19
        to Kent Tamura, AyeAye, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org, eme-r...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, jshin...@chromium.org, kinuko...@chromium.org
        Attention needed from Kent Tamura

        Fredrik Söderquist voted

        Code-Review+1
        Commit-Queue+2
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Kent Tamura
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement satisfiedReview-Enforcement
          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: Ia6720b913763c7977a3762f2c978ba2f9b6af736
          Gerrit-Change-Number: 7266605
          Gerrit-PatchSet: 4
          Gerrit-Owner: Kent Tamura <tk...@chromium.org>
          Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
          Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
          Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
          Gerrit-Attention: Kent Tamura <tk...@chromium.org>
          Gerrit-Comment-Date: Fri, 19 Dec 2025 09:43:29 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Chromium LUCI CQ (Gerrit)

          unread,
          Dec 19, 2025, 4:47:10 AM (yesterday) Dec 19
          to Kent Tamura, Fredrik Söderquist, AyeAye, AI Code Reviewer, chromium...@chromium.org, feature-me...@chromium.org, eme-r...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, jshin...@chromium.org, kinuko...@chromium.org

          Chromium LUCI CQ submitted the change

          Change information

          Commit message:
          WTF: Remove fprintf() call in text_encoding_registry.cc

          We use LOG(INFO) instead of fprintf().
          The old output was:
          --------
          Dumping 33 entries in blink::TextEncodingNameMap...
          'ANSI_X3.4-1968' => 'windows-1252'
          ...
          'Unicode' => 'UTF-16LE'
          --------

          The new output is:
          --------
          [...:INFO:...] Dumping 33 entries in blink::TextEncodingNameMap...
          "ANSI_X3.4-1968" => "windows-1252"
          ...
          "Unicode" => "UTF-16LE"
          --------

          This CL has no production behavior changes.
          Bug: 451652367
          Change-Id: Ia6720b913763c7977a3762f2c978ba2f9b6af736
          Auto-Submit: Kent Tamura <tk...@chromium.org>
          Commit-Queue: Fredrik Söderquist <f...@opera.com>
          Reviewed-by: Fredrik Söderquist <f...@opera.com>
          Cr-Commit-Position: refs/heads/main@{#1561035}
          Files:
          • M third_party/blink/renderer/platform/wtf/text/text_encoding_registry.cc
          Change size: S
          Delta: 1 file changed, 10 insertions(+), 7 deletions(-)
          Branch: refs/heads/main
          Submit Requirements:
          • requirement satisfiedCode-Review: +1 by Fredrik Söderquist
          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: Ia6720b913763c7977a3762f2c978ba2f9b6af736
          Gerrit-Change-Number: 7266605
          Gerrit-PatchSet: 5
          Gerrit-Owner: Kent Tamura <tk...@chromium.org>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
          Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
          Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
          open
          diffy
          satisfied_requirement
          Reply all
          Reply to author
          Forward
          0 new messages