Enum-ify ZhuyinPageSize in CrOS 1P IME Settings. [chromium/src : main]

0 views
Skip to first unread message

Bao-Duy Tran (Gerrit)

unread,
Jan 12, 2026, 4:07:01 AM (2 days ago) Jan 12
to Michael Cui, John Palmer, Chromium LUCI CQ, chromium...@chromium.org, croissant-...@chromium.org, cros-setti...@google.com, mlcui+watch-os-s...@google.com
Attention needed from John Palmer and Michael Cui

Bao-Duy Tran voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • John Palmer
  • Michael Cui
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: I44b363fe60c2a3fc731cc6d4bbbb027047b4e40f
Gerrit-Change-Number: 7414648
Gerrit-PatchSet: 7
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: Michael Cui <ml...@google.com>
Gerrit-Attention: Michael Cui <ml...@google.com>
Gerrit-Attention: John Palmer <jopa...@chromium.org>
Gerrit-Comment-Date: Mon, 12 Jan 2026 09:06:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Michael Cui (Gerrit)

unread,
Jan 12, 2026, 5:56:52 PM (2 days ago) Jan 12
to Bao-Duy Tran, Michael Cui, John Palmer, Chromium LUCI CQ, chromium...@chromium.org, croissant-...@chromium.org, cros-setti...@google.com, mlcui+watch-os-s...@google.com
Attention needed from Bao-Duy Tran and John Palmer

Michael Cui voted and added 1 comment

Votes added by Michael Cui

Code-Review+1

1 comment

Commit Message
Line 15, Patchset 8 (Latest):mirror persisted CrOS-Prefs verbatim, but declares integer type [3]. This precariously works, as all enum string values happen to be
integer-like & cast-able to integer. VK+IME ext still reads the
value as string 1st then DIY cast back to number. We'll leave this private API intact for now.
Michael Cui . unresolved

nit: Wrap to 72 columns.

Open in Gerrit

Related details

Attention is currently required from:
  • Bao-Duy Tran
  • John Palmer
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: I44b363fe60c2a3fc731cc6d4bbbb027047b4e40f
Gerrit-Change-Number: 7414648
Gerrit-PatchSet: 8
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: Michael Cui <ml...@google.com>
Gerrit-Attention: Bao-Duy Tran <tranb...@chromium.org>
Gerrit-Attention: John Palmer <jopa...@chromium.org>
Gerrit-Comment-Date: Mon, 12 Jan 2026 22:56:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Bao-Duy Tran (Gerrit)

unread,
Jan 12, 2026, 7:55:19 PM (2 days ago) Jan 12
to Michael Cui, John Palmer, Chromium LUCI CQ, chromium...@chromium.org, croissant-...@chromium.org, cros-setti...@google.com, mlcui+watch-os-s...@google.com
Attention needed from John Palmer

Bao-Duy Tran added 1 comment

Commit Message
Line 15, Patchset 8:mirror persisted CrOS-Prefs verbatim, but declares integer type [3]. This precariously works, as all enum string values happen to be

integer-like & cast-able to integer. VK+IME ext still reads the
value as string 1st then DIY cast back to number. We'll leave this private API intact for now.
Michael Cui . resolved

nit: Wrap to 72 columns.

Bao-Duy Tran

Done

Open in Gerrit

Related details

Attention is currently required from:
  • John Palmer
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: I44b363fe60c2a3fc731cc6d4bbbb027047b4e40f
    Gerrit-Change-Number: 7414648
    Gerrit-PatchSet: 9
    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: Michael Cui <ml...@google.com>
    Gerrit-Attention: John Palmer <jopa...@chromium.org>
    Gerrit-Comment-Date: Tue, 13 Jan 2026 00:54:49 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Michael Cui <ml...@google.com>
    satisfied_requirement
    open
    diffy

    John Palmer (Gerrit)

    unread,
    12:16 AM (3 hours ago) 12:16 AM
    to Bao-Duy Tran, Michael Cui, Chromium LUCI CQ, chromium...@chromium.org, croissant-...@chromium.org, cros-setti...@google.com, mlcui+watch-os-s...@google.com
    Attention needed from Bao-Duy Tran

    John Palmer voted and added 1 comment

    Votes added by John Palmer

    Code-Review+1

    1 comment

    File chrome/browser/resources/ash/settings/os_languages_page/input_method_options_page.ts
    Line 377, Patchset 9 (Latest): private dependentOptionsDisabled_(value: OptionValue|string): boolean {
    John Palmer . unresolved

    I am surprised this is needed - I think optionvalue should include string (or maybe it only includes the consts?)

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Bao-Duy Tran
    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: I44b363fe60c2a3fc731cc6d4bbbb027047b4e40f
      Gerrit-Change-Number: 7414648
      Gerrit-PatchSet: 9
      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: Michael Cui <ml...@google.com>
      Gerrit-Attention: Bao-Duy Tran <tranb...@chromium.org>
      Gerrit-Comment-Date: Wed, 14 Jan 2026 05:15:42 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Bao-Duy Tran (Gerrit)

      unread,
      12:24 AM (3 hours ago) 12:24 AM
      to John Palmer, Michael Cui, Chromium LUCI CQ, chromium...@chromium.org, croissant-...@chromium.org, cros-setti...@google.com, mlcui+watch-os-s...@google.com

      Bao-Duy Tran added 1 comment

      File chrome/browser/resources/ash/settings/os_languages_page/input_method_options_page.ts
      Line 377, Patchset 9 (Latest): private dependentOptionsDisabled_(value: OptionValue|string): boolean {
      John Palmer . resolved

      I am surprised this is needed - I think optionvalue should include string (or maybe it only includes the consts?)

      Bao-Duy Tran

      OptionValue is defined as the (union of the) types seen in OPTION_DEFAULT (see line 43), which now only includes those string enums (not general strings) and booleans and numbers. I could've removed "value === '0'" here, but didn't want to disturb stuff, esp. given the mysterious-sounding TODO comments here.

      Open in Gerrit

      Related details

      Attention set is empty
      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: I44b363fe60c2a3fc731cc6d4bbbb027047b4e40f
        Gerrit-Change-Number: 7414648
        Gerrit-PatchSet: 9
        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: Michael Cui <ml...@google.com>
        Gerrit-Comment-Date: Wed, 14 Jan 2026 05:23:42 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: John Palmer <jopa...@chromium.org>
        satisfied_requirement
        open
        diffy

        Bao-Duy Tran (Gerrit)

        unread,
        3:15 AM (2 minutes ago) 3:15 AM
        to John Palmer, Michael Cui, Chromium LUCI CQ, chromium...@chromium.org, croissant-...@chromium.org, cros-setti...@google.com, mlcui+watch-os-s...@google.com

        Bao-Duy Tran voted Commit-Queue+2

        Commit-Queue+2
        Open in Gerrit

        Related details

        Attention set is empty
        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: I44b363fe60c2a3fc731cc6d4bbbb027047b4e40f
        Gerrit-Change-Number: 7414648
        Gerrit-PatchSet: 9
        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: Michael Cui <ml...@google.com>
        Gerrit-Comment-Date: Wed, 14 Jan 2026 08:15:10 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages