Re-autogen input_method_private_interface.js in Closure compiler. [chromium/src : main]

0 views
Skip to first unread message

Bao-Duy Tran (Gerrit)

unread,
Jan 12, 2026, 4:09:31 AM (2 days ago) Jan 12
to Essential Inputs Reviews, Oliver Dunk, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Essential Inputs Reviews and Oliver Dunk

Bao-Duy Tran voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Essential Inputs Reviews
  • Oliver Dunk
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I6664f6c680eee219b609fbe4fd66374dd1c9ee0d
Gerrit-Change-Number: 7409024
Gerrit-PatchSet: 3
Gerrit-Owner: Bao-Duy Tran <tranb...@chromium.org>
Gerrit-Reviewer: Bao-Duy Tran <tranb...@chromium.org>
Gerrit-Reviewer: Essential Inputs Reviews <e14s-...@google.com>
Gerrit-Reviewer: Oliver Dunk <olive...@chromium.org>
Gerrit-Attention: Essential Inputs Reviews <e14s-...@google.com>
Gerrit-Attention: Oliver Dunk <olive...@chromium.org>
Gerrit-Comment-Date: Mon, 12 Jan 2026 09:09:01 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

gwsq (Gerrit)

unread,
Jan 12, 2026, 4:14:08 AM (2 days ago) Jan 12
to Bao-Duy Tran, John Palmer, Oliver Dunk, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from John Palmer and Oliver Dunk

Message from gwsq

Reviewer source(s):
jopa...@chromium.org is from context(chrome/inputs/essential-inputs.gwsq)

Open in Gerrit

Related details

Attention is currently required from:
  • John Palmer
  • Oliver Dunk
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I6664f6c680eee219b609fbe4fd66374dd1c9ee0d
Gerrit-Change-Number: 7409024
Gerrit-PatchSet: 4
Gerrit-Owner: Bao-Duy Tran <tranb...@chromium.org>
Gerrit-Reviewer: Bao-Duy Tran <tranb...@chromium.org>
Gerrit-Reviewer: John Palmer <jopa...@chromium.org>
Gerrit-Reviewer: Oliver Dunk <olive...@chromium.org>
Gerrit-CC: gwsq
Gerrit-Attention: Oliver Dunk <olive...@chromium.org>
Gerrit-Attention: John Palmer <jopa...@chromium.org>
Gerrit-Comment-Date: Mon, 12 Jan 2026 09:13:38 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Oliver Dunk (Gerrit)

unread,
Jan 12, 2026, 4:48:30 AM (2 days ago) Jan 12
to Bao-Duy Tran, John Palmer, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Bao-Duy Tran and John Palmer

Oliver Dunk voted and added 1 comment

Votes added by Oliver Dunk

Code-Review+1

1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Oliver Dunk . resolved

Thanks! There was a precheck that ran on the other CL and called out certain files that needed updating, but it didn't catch this one. I wonder if this file needs to be listed somewhere?

Open in Gerrit

Related details

Attention is currently required from:
  • Bao-Duy Tran
  • John Palmer
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not 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: I6664f6c680eee219b609fbe4fd66374dd1c9ee0d
    Gerrit-Change-Number: 7409024
    Gerrit-PatchSet: 4
    Gerrit-Owner: Bao-Duy Tran <tranb...@chromium.org>
    Gerrit-Reviewer: Bao-Duy Tran <tranb...@chromium.org>
    Gerrit-Reviewer: John Palmer <jopa...@chromium.org>
    Gerrit-Reviewer: Oliver Dunk <olive...@chromium.org>
    Gerrit-CC: gwsq
    Gerrit-Attention: Bao-Duy Tran <tranb...@chromium.org>
    Gerrit-Attention: John Palmer <jopa...@chromium.org>
    Gerrit-Comment-Date: Mon, 12 Jan 2026 09:48:09 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    John Palmer (Gerrit)

    unread,
    Jan 12, 2026, 6:06:57 PM (2 days ago) Jan 12
    to Bao-Duy Tran, Oliver Dunk, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Bao-Duy Tran

    John Palmer added 1 comment

    Patchset-level comments
    John Palmer . unresolved

    I don't believe this API supports promises (maybe it does in theory, but we don't use them in practice), so the use of resolve/reject for this API is probably confusing

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Bao-Duy Tran
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: I6664f6c680eee219b609fbe4fd66374dd1c9ee0d
      Gerrit-Change-Number: 7409024
      Gerrit-PatchSet: 4
      Gerrit-Owner: Bao-Duy Tran <tranb...@chromium.org>
      Gerrit-Reviewer: Bao-Duy Tran <tranb...@chromium.org>
      Gerrit-Reviewer: John Palmer <jopa...@chromium.org>
      Gerrit-Reviewer: Oliver Dunk <olive...@chromium.org>
      Gerrit-CC: gwsq
      Gerrit-Attention: Bao-Duy Tran <tranb...@chromium.org>
      Gerrit-Comment-Date: Mon, 12 Jan 2026 23:06:20 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      John Palmer (Gerrit)

      unread,
      Jan 12, 2026, 6:07:41 PM (2 days ago) Jan 12
      to Bao-Duy Tran, Oliver Dunk, Chromium LUCI CQ, chromium...@chromium.org
      Attention needed from Bao-Duy Tran

      John Palmer added 1 comment

      File third_party/closure_compiler/interfaces/input_method_private_interface.js
      Line 166, Patchset 4 (Parent): * failure, $(ref:runtime.lastError) is set.
      John Palmer . unresolved

      Losing this feels like a bad change?

      Gerrit-Comment-Date: Mon, 12 Jan 2026 23:07:11 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      John Palmer (Gerrit)

      unread,
      Jan 12, 2026, 6:16:01 PM (2 days ago) Jan 12
      to Bao-Duy Tran, Oliver Dunk, Chromium LUCI CQ, chromium...@chromium.org
      Attention needed from Bao-Duy Tran

      John Palmer added 1 comment

      Patchset-level comments
      John Palmer . unresolved

      I don't believe this API supports promises (maybe it does in theory, but we don't use them in practice), so the use of resolve/reject for this API is probably confusing

      John Palmer

      I am also unsure about the input related changes in https://chromium-review.googlesource.com/c/chromium/src/+/7300086

      Gerrit-Comment-Date: Mon, 12 Jan 2026 23:15:24 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: John Palmer <jopa...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Bao-Duy Tran (Gerrit)

      unread,
      Jan 12, 2026, 8:08:28 PM (2 days ago) Jan 12
      to Oliver Dunk, John Palmer, Chromium LUCI CQ, chromium...@chromium.org
      Attention needed from John Palmer

      Bao-Duy Tran added 2 comments

      Patchset-level comments
      John Palmer . resolved

      I don't believe this API supports promises (maybe it does in theory, but we don't use them in practice), so the use of resolve/reject for this API is probably confusing

      John Palmer

      I am also unsure about the input related changes in https://chromium-review.googlesource.com/c/chromium/src/+/7300086

      Bao-Duy Tran

      I believe this API *does* support Promise nowadays.

      It's a "recent" thing, since https://crrev.com/c/4172683 in particular, and Promise should be the primary thing, appearing as the only supported thing in the JSON API specs, with old callback still functional for backward-compat in the meantime.

      It just so happens that the main client of this API (internal-repo CrOS 1P VK+IME extension) hasn't migrated to Promise usage yet, and still relies on old callback ways with bespoke async wrappers. Some Promise-based usage of the API can be seen @ https://crrev.com/c/7197159 by a11y component.

      (btw I think this question is technically tied to https://crrev.com/c/7300086 where the comments were changed, not this CL that just re-autogens dependent stuff accordingly)

      File third_party/closure_compiler/interfaces/input_method_private_interface.js
      Line 166, Patchset 4 (Parent): * failure, $(ref:runtime.lastError) is set.
      John Palmer . resolved

      Losing this feels like a bad change?

      Bao-Duy Tran

      I guess this is technically a comment for https://crrev.com/c/4172683 where the API was switched from callback to Promise, not this CL that just re-autogens dependent stuff based on https://crrev.com/c/7300086 that adapted comments to the said switch to Promise.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • John Palmer
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not 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: I6664f6c680eee219b609fbe4fd66374dd1c9ee0d
        Gerrit-Change-Number: 7409024
        Gerrit-PatchSet: 4
        Gerrit-Owner: Bao-Duy Tran <tranb...@chromium.org>
        Gerrit-Reviewer: Bao-Duy Tran <tranb...@chromium.org>
        Gerrit-Reviewer: John Palmer <jopa...@chromium.org>
        Gerrit-Reviewer: Oliver Dunk <olive...@chromium.org>
        Gerrit-CC: gwsq
        Gerrit-Attention: John Palmer <jopa...@chromium.org>
        Gerrit-Comment-Date: Tue, 13 Jan 2026 01:08:00 +0000
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Bao-Duy Tran (Gerrit)

        unread,
        Jan 12, 2026, 8:18:48 PM (2 days ago) Jan 12
        to Oliver Dunk, John Palmer, Chromium LUCI CQ, chromium...@chromium.org
        Attention needed from John Palmer

        Bao-Duy Tran added 1 comment

        Patchset-level comments
        Oliver Dunk . resolved

        Thanks! There was a precheck that ran on the other CL and called out certain files that needed updating, but it didn't catch this one. I wonder if this file needs to be listed somewhere?

        Bao-Duy Tran

        That sounds similar to manual IfChange-ThenChange, but I'm not quite familiar yet with how that works with autogen files. If you could point me to the "precheck" that was triggered on https://crrev.com/c/4172683, maybe I can figure out and give it a go for this autogen dependency as well.

        btw, besides third_party/closure_compiler/interfaces/input_method_private_interface.js being re-autogen'd here, there's also https://crsrc.org/c/chrome/browser/resources/chromeos/accessibility/definitions/input_method_private.d.ts that'd need re-autogen as well; just that the latter isn't affected by comment changes in https://crrev.com/c/4172683.

        There's also https://crsrc.org/c/tools/typescript/definitions/input_method_private.d.ts that should theoretically be an autogen based on the same API specs, but manually crafted. There's also yet another manually-crafted .d.ts in the internal repo.

        Gerrit-Comment-Date: Tue, 13 Jan 2026 01:18:21 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Oliver Dunk <olive...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Oliver Dunk (Gerrit)

        unread,
        Jan 13, 2026, 5:37:11 AM (22 hours ago) Jan 13
        to Bao-Duy Tran, John Palmer, Chromium LUCI CQ, chromium...@chromium.org
        Attention needed from Bao-Duy Tran and John Palmer

        Oliver Dunk added 2 comments

        Patchset-level comments
        Oliver Dunk . unresolved

        Thanks! There was a precheck that ran on the other CL and called out certain files that needed updating, but it didn't catch this one. I wonder if this file needs to be listed somewhere?

        Bao-Duy Tran

        That sounds similar to manual IfChange-ThenChange, but I'm not quite familiar yet with how that works with autogen files. If you could point me to the "precheck" that was triggered on https://crrev.com/c/4172683, maybe I can figure out and give it a go for this autogen dependency as well.

        btw, besides third_party/closure_compiler/interfaces/input_method_private_interface.js being re-autogen'd here, there's also https://crsrc.org/c/chrome/browser/resources/chromeos/accessibility/definitions/input_method_private.d.ts that'd need re-autogen as well; just that the latter isn't affected by comment changes in https://crrev.com/c/4172683.

        There's also https://crsrc.org/c/tools/typescript/definitions/input_method_private.d.ts that should theoretically be an autogen based on the same API specs, but manually crafted. There's also yet another manually-crafted .d.ts in the internal repo.

        Oliver Dunk

        Adding @tjud...@chromium.org. Tim, do you have any thoughts here? It looks like it is this check [1] but I haven't been able to figure out why it didn't run for this file. Perhaps I bypassed it, but I don't think I did.

        [1] https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/extensions/api/PRESUBMIT.py

        File third_party/closure_compiler/interfaces/input_method_private_interface.js
        Line 166, Patchset 4 (Parent): * failure, $(ref:runtime.lastError) is set.
        John Palmer . resolved

        Losing this feels like a bad change?

        Bao-Duy Tran

        I guess this is technically a comment for https://crrev.com/c/4172683 where the API was switched from callback to Promise, not this CL that just re-autogens dependent stuff based on https://crrev.com/c/7300086 that adapted comments to the said switch to Promise.

        Oliver Dunk

        Yeah, this is tricky. The JSON schema format used to define this API is old - we're moving towards WebIDL and that format focuses on promises with callback signatures generated only as a backwards compatibility feature. Given that, we're slowly removing mentions of `runtime.lastError` across the schemas. In this case I do think we could've kept it. I mostly avoided touching private APIs but I think Gemini did this one and I figured it wasn't a huge deal to keep. Happy to revert the changes if you prefer.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Bao-Duy Tran
        • John Palmer
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not 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: I6664f6c680eee219b609fbe4fd66374dd1c9ee0d
          Gerrit-Change-Number: 7409024
          Gerrit-PatchSet: 4
          Gerrit-Owner: Bao-Duy Tran <tranb...@chromium.org>
          Gerrit-Reviewer: Bao-Duy Tran <tranb...@chromium.org>
          Gerrit-Reviewer: John Palmer <jopa...@chromium.org>
          Gerrit-Reviewer: Oliver Dunk <olive...@chromium.org>
          Gerrit-CC: gwsq
          Gerrit-Attention: Bao-Duy Tran <tranb...@chromium.org>
          Gerrit-Attention: John Palmer <jopa...@chromium.org>
          Gerrit-Comment-Date: Tue, 13 Jan 2026 10:36:45 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Bao-Duy Tran <tranb...@chromium.org>
          Comment-In-Reply-To: Oliver Dunk <olive...@chromium.org>
          Comment-In-Reply-To: John Palmer <jopa...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          John Palmer (Gerrit)

          unread,
          12:25 AM (3 hours ago) 12:25 AM
          to Bao-Duy Tran, Oliver Dunk, Chromium LUCI CQ, chromium...@chromium.org
          Attention needed from Bao-Duy Tran

          John Palmer voted Code-Review+1

          Code-Review+1
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Bao-Duy Tran
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not 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: I6664f6c680eee219b609fbe4fd66374dd1c9ee0d
          Gerrit-Change-Number: 7409024
          Gerrit-PatchSet: 4
          Gerrit-Owner: Bao-Duy Tran <tranb...@chromium.org>
          Gerrit-Reviewer: Bao-Duy Tran <tranb...@chromium.org>
          Gerrit-Reviewer: John Palmer <jopa...@chromium.org>
          Gerrit-Reviewer: Oliver Dunk <olive...@chromium.org>
          Gerrit-CC: gwsq
          Gerrit-Attention: Bao-Duy Tran <tranb...@chromium.org>
          Gerrit-Comment-Date: Wed, 14 Jan 2026 05:25:06 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy
          Reply all
          Reply to author
          Forward
          0 new messages