Migrate AutomationEventRouter to ChildProcessId [chromium/src : main]

0 views
Skip to first unread message

gwsq (Gerrit)

unread,
Mar 1, 2026, 12:22:34 PM (11 days ago) Mar 1
to Christopher Staite, Chromium IPC Reviews, Giovanni Ortuno Urquidi, Katie D, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Giovanni Ortuno Urquidi and Katie D

Message from gwsq

From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: ort...@chromium.org

📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

IPC reviewer(s): ort...@chromium.org


Reviewer source(s):
ort...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

Open in Gerrit

Related details

Attention is currently required from:
  • Giovanni Ortuno Urquidi
  • Katie D
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: I8b6d39fe0269ca854b27672e933d221853d77a8d
Gerrit-Change-Number: 7621972
Gerrit-PatchSet: 2
Gerrit-Owner: Christopher Staite <christoph...@menlosecurity.com>
Gerrit-Reviewer: Giovanni Ortuno Urquidi <ort...@chromium.org>
Gerrit-Reviewer: Katie D <ka...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Katie D <ka...@chromium.org>
Gerrit-Attention: Giovanni Ortuno Urquidi <ort...@chromium.org>
Gerrit-Comment-Date: Sun, 01 Mar 2026 17:22:27 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Giovanni Ortuno Urquidi (Gerrit)

unread,
Mar 2, 2026, 10:07:13 AM (10 days ago) Mar 2
to Christopher Staite, Chromium IPC Reviews, Giovanni Ortuno Urquidi, Katie D, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Christopher Staite and Katie D

Giovanni Ortuno Urquidi added 1 comment

File chrome/browser/extensions/chrome_content_browser_client_extensions_part_bindings.cc
Line 58, Patchset 3 (Latest): content::ChildProcessId::FromUnsafeValue(
Giovanni Ortuno Urquidi . unresolved

Why do we use FromUnsafeValue here? Neither the comment on the method nor the bug really give much context.

I'm assuming a follow up change will change `service_worker_version_info.process_id` to use a ChildProcessId and then this won't be needed?

Open in Gerrit

Related details

Attention is currently required from:
  • Christopher Staite
  • Katie D
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not 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: I8b6d39fe0269ca854b27672e933d221853d77a8d
    Gerrit-Change-Number: 7621972
    Gerrit-PatchSet: 3
    Gerrit-Owner: Christopher Staite <christoph...@menlosecurity.com>
    Gerrit-Reviewer: Giovanni Ortuno Urquidi <ort...@chromium.org>
    Gerrit-Reviewer: Katie D <ka...@chromium.org>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Attention: Katie D <ka...@chromium.org>
    Gerrit-Attention: Christopher Staite <christoph...@menlosecurity.com>
    Gerrit-Comment-Date: Mon, 02 Mar 2026 15:07:06 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Christopher Staite (Gerrit)

    unread,
    Mar 2, 2026, 10:11:23 AM (10 days ago) Mar 2
    to Chromium IPC Reviews, Giovanni Ortuno Urquidi, Katie D, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
    Attention needed from Giovanni Ortuno Urquidi and Katie D

    Christopher Staite added 1 comment

    File chrome/browser/extensions/chrome_content_browser_client_extensions_part_bindings.cc
    Line 58, Patchset 3 (Latest): content::ChildProcessId::FromUnsafeValue(
    Giovanni Ortuno Urquidi . unresolved

    Why do we use FromUnsafeValue here? Neither the comment on the method nor the bug really give much context.

    I'm assuming a follow up change will change `service_worker_version_info.process_id` to use a ChildProcessId and then this won't be needed?

    Christopher Staite

    Correct, the end game for this patch set is in https://crrev.com/c/7621713, however that's rather large and so I've broken it up to get there slowly. I will be coming back to rectify this soon.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Giovanni Ortuno Urquidi
    • Katie D
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not 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: I8b6d39fe0269ca854b27672e933d221853d77a8d
    Gerrit-Change-Number: 7621972
    Gerrit-PatchSet: 3
    Gerrit-Owner: Christopher Staite <christoph...@menlosecurity.com>
    Gerrit-Reviewer: Giovanni Ortuno Urquidi <ort...@chromium.org>
    Gerrit-Reviewer: Katie D <ka...@chromium.org>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Attention: Katie D <ka...@chromium.org>
    Gerrit-Attention: Giovanni Ortuno Urquidi <ort...@chromium.org>
    Gerrit-Comment-Date: Mon, 02 Mar 2026 15:11:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Giovanni Ortuno Urquidi <ort...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Giovanni Ortuno Urquidi (Gerrit)

    unread,
    Mar 2, 2026, 10:13:43 AM (10 days ago) Mar 2
    to Christopher Staite, Giovanni Ortuno Urquidi, Chromium IPC Reviews, Katie D, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
    Attention needed from Christopher Staite and Katie D

    Giovanni Ortuno Urquidi voted and added 2 comments

    Votes added by Giovanni Ortuno Urquidi

    Code-Review+1

    2 comments

    Patchset-level comments
    File-level comment, Patchset 3 (Latest):
    Giovanni Ortuno Urquidi . resolved

    mojo lgtm

    File chrome/browser/extensions/chrome_content_browser_client_extensions_part_bindings.cc
    Line 58, Patchset 3 (Latest): content::ChildProcessId::FromUnsafeValue(
    Giovanni Ortuno Urquidi . resolved

    Why do we use FromUnsafeValue here? Neither the comment on the method nor the bug really give much context.

    I'm assuming a follow up change will change `service_worker_version_info.process_id` to use a ChildProcessId and then this won't be needed?

    Christopher Staite

    Correct, the end game for this patch set is in https://crrev.com/c/7621713, however that's rather large and so I've broken it up to get there slowly. I will be coming back to rectify this soon.

    Giovanni Ortuno Urquidi

    Acknowledged

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Christopher Staite
    • Katie D
    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: I8b6d39fe0269ca854b27672e933d221853d77a8d
      Gerrit-Change-Number: 7621972
      Gerrit-PatchSet: 3
      Gerrit-Owner: Christopher Staite <christoph...@menlosecurity.com>
      Gerrit-Reviewer: Giovanni Ortuno Urquidi <ort...@chromium.org>
      Gerrit-Reviewer: Katie D <ka...@chromium.org>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Katie D <ka...@chromium.org>
      Gerrit-Attention: Christopher Staite <christoph...@menlosecurity.com>
      Gerrit-Comment-Date: Mon, 02 Mar 2026 15:13:34 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Christopher Staite <christoph...@menlosecurity.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Katie D (Gerrit)

      unread,
      Mar 9, 2026, 2:17:21 PM (3 days ago) Mar 9
      to Christopher Staite, Giovanni Ortuno Urquidi, Chromium IPC Reviews, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
      Attention needed from Christopher Staite

      Katie D voted and added 1 comment

      Votes added by Katie D

      Code-Review+1

      1 comment

      Patchset-level comments
      Katie D . resolved

      Sorry I missed this. extensions/browser/api/automation_internal LGTM

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Christopher Staite
      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: I8b6d39fe0269ca854b27672e933d221853d77a8d
      Gerrit-Change-Number: 7621972
      Gerrit-PatchSet: 3
      Gerrit-Owner: Christopher Staite <christoph...@menlosecurity.com>
      Gerrit-Reviewer: Giovanni Ortuno Urquidi <ort...@chromium.org>
      Gerrit-Reviewer: Katie D <ka...@chromium.org>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Christopher Staite <christoph...@menlosecurity.com>
      Gerrit-Comment-Date: Mon, 09 Mar 2026 18:17:09 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Christopher Staite (Gerrit)

      unread,
      Mar 10, 2026, 4:21:55 AM (2 days ago) Mar 10
      to Katie D, Giovanni Ortuno Urquidi, Chromium IPC Reviews, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

      Christopher Staite added 1 comment

      Patchset-level comments
      Christopher Staite . resolved

      Thank you. Could I get a CQ+2 pleasse?

      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: I8b6d39fe0269ca854b27672e933d221853d77a8d
      Gerrit-Change-Number: 7621972
      Gerrit-PatchSet: 3
      Gerrit-Owner: Christopher Staite <christoph...@menlosecurity.com>
      Gerrit-Reviewer: Giovanni Ortuno Urquidi <ort...@chromium.org>
      Gerrit-Reviewer: Katie D <ka...@chromium.org>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Comment-Date: Tue, 10 Mar 2026 08:21:41 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      open
      diffy

      Christopher Staite (Gerrit)

      unread,
      Mar 11, 2026, 12:10:12 PM (yesterday) Mar 11
      to Katie D, Giovanni Ortuno Urquidi, Chromium IPC Reviews, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

      Christopher Staite 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: I8b6d39fe0269ca854b27672e933d221853d77a8d
      Gerrit-Change-Number: 7621972
      Gerrit-PatchSet: 3
      Gerrit-Owner: Christopher Staite <christoph...@menlosecurity.com>
      Gerrit-Reviewer: Christopher Staite <christoph...@menlosecurity.com>
      Gerrit-Reviewer: Giovanni Ortuno Urquidi <ort...@chromium.org>
      Gerrit-Reviewer: Katie D <ka...@chromium.org>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Comment-Date: Wed, 11 Mar 2026 16:09:59 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Christopher Staite (Gerrit)

      unread,
      5:28 AM (7 hours ago) 5:28 AM
      to Chromium LUCI CQ, Katie D, Giovanni Ortuno Urquidi, Chromium IPC Reviews, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

      Christopher Staite 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: I8b6d39fe0269ca854b27672e933d221853d77a8d
      Gerrit-Change-Number: 7621972
      Gerrit-PatchSet: 4
      Gerrit-Owner: Christopher Staite <christoph...@menlosecurity.com>
      Gerrit-Reviewer: Christopher Staite <christoph...@menlosecurity.com>
      Gerrit-Reviewer: Giovanni Ortuno Urquidi <ort...@chromium.org>
      Gerrit-Reviewer: Katie D <ka...@chromium.org>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Comment-Date: Thu, 12 Mar 2026 09:28:17 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      5:38 AM (7 hours ago) 5:38 AM
      to Christopher Staite, Katie D, Giovanni Ortuno Urquidi, Chromium IPC Reviews, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

      Chromium LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

      3 is the latest approved patch-set.
      The change was submitted with unreviewed changes in the following files:

      ```
      The name of the file: chrome/browser/extensions/chrome_content_browser_client_extensions_part_bindings.cc
      Insertions: 2, Deletions: 4.

      The diff is too large to show. Please review the diff.
      ```

      Change information

      Commit message:
      Migrate AutomationEventRouter to ChildProcessId

      Update `AutomationEventRouter` to use the strongly typed
      `content::ChildProcessId` instead of raw integers for process IDs. This
      change is part of a broader effort to replace unsafe integer process IDs
      with strongly typed identifiers to improve type safety and reduce the
      risk of ID mix-ups.

      Since the function `RegisterListenerForOneTree` is unused, it was
      removed rather than ported.
      Bug: 379869738
      Change-Id: I8b6d39fe0269ca854b27672e933d221853d77a8d
      Reviewed-by: Giovanni Ortuno Urquidi <ort...@chromium.org>
      Reviewed-by: Katie D <ka...@chromium.org>
      Commit-Queue: Christopher Staite <christoph...@menlosecurity.com>
      Cr-Commit-Position: refs/heads/main@{#1598294}
      Files:
      • M chrome/browser/extensions/chrome_content_browser_client_extensions_part_bindings.cc
      • M extensions/browser/api/automation_internal/automation_event_router.cc
      • M extensions/browser/api/automation_internal/automation_event_router.h
      • M extensions/browser/api/automation_internal/automation_internal_api.cc
      Change size: S
      Delta: 4 files changed, 15 insertions(+), 27 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Katie D, +1 by Giovanni Ortuno Urquidi
      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: I8b6d39fe0269ca854b27672e933d221853d77a8d
      Gerrit-Change-Number: 7621972
      Gerrit-PatchSet: 5
      Gerrit-Owner: Christopher Staite <christoph...@menlosecurity.com>
      Gerrit-Reviewer: Christopher Staite <christoph...@menlosecurity.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Giovanni Ortuno Urquidi <ort...@chromium.org>
      Gerrit-Reviewer: Katie D <ka...@chromium.org>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: gwsq
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages