[iOS] Make PageContextWrapper one time use by CHECKing on double extract [chromium/src : main]

0 views
Skip to first unread message

Nicolas MacBeth (Gerrit)

unread,
1:34 PM (6 hours ago) 1:34 PM
to Adam Arcaro, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Adam Arcaro

Nicolas MacBeth added 1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Nicolas MacBeth . resolved

ptal, thanks

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Arcaro
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: I60ae6b5bd49b3431ce293a2ad8c517f100bd9569
Gerrit-Change-Number: 7604335
Gerrit-PatchSet: 2
Gerrit-Owner: Nicolas MacBeth <nicolas...@google.com>
Gerrit-Reviewer: Adam Arcaro <ada...@google.com>
Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
Gerrit-Attention: Adam Arcaro <ada...@google.com>
Gerrit-Comment-Date: Tue, 24 Feb 2026 18:34:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Adam Arcaro (Gerrit)

unread,
3:48 PM (4 hours ago) 3:48 PM
to Nicolas MacBeth, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Nicolas MacBeth

Adam Arcaro voted and added 1 comment

Votes added by Adam Arcaro

Code-Review+1

1 comment

Patchset-level comments
Adam Arcaro . unresolved

I assume this won't fail for the case where multiple features generate page context concurrently (e.g. base Helios and ZSS), since it's only if the same wrapper triggers extraction twice?

Open in Gerrit

Related details

Attention is currently required from:
  • Nicolas MacBeth
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: I60ae6b5bd49b3431ce293a2ad8c517f100bd9569
    Gerrit-Change-Number: 7604335
    Gerrit-PatchSet: 2
    Gerrit-Owner: Nicolas MacBeth <nicolas...@google.com>
    Gerrit-Reviewer: Adam Arcaro <ada...@google.com>
    Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
    Gerrit-Attention: Nicolas MacBeth <nicolas...@google.com>
    Gerrit-Comment-Date: Tue, 24 Feb 2026 20:48:06 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nicolas MacBeth (Gerrit)

    unread,
    4:48 PM (3 hours ago) 4:48 PM
    to Adam Arcaro, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

    Nicolas MacBeth added 2 comments

    Patchset-level comments
    File-level comment, Patchset 2:
    Adam Arcaro . resolved

    I assume this won't fail for the case where multiple features generate page context concurrently (e.g. base Helios and ZSS), since it's only if the same wrapper triggers extraction twice?

    Nicolas MacBeth

    correct, it's specifically to stop clients from doing the latter.

    File-level comment, Patchset 3 (Latest):
    Nicolas MacBeth . resolved

    thanks!

    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: I60ae6b5bd49b3431ce293a2ad8c517f100bd9569
      Gerrit-Change-Number: 7604335
      Gerrit-PatchSet: 3
      Gerrit-Owner: Nicolas MacBeth <nicolas...@google.com>
      Gerrit-Reviewer: Adam Arcaro <ada...@google.com>
      Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
      Gerrit-Comment-Date: Tue, 24 Feb 2026 21:48:47 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Adam Arcaro <ada...@google.com>
      satisfied_requirement
      open
      diffy

      Nicolas MacBeth (Gerrit)

      unread,
      4:48 PM (3 hours ago) 4:48 PM
      to Adam Arcaro, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

      Nicolas MacBeth 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: I60ae6b5bd49b3431ce293a2ad8c517f100bd9569
      Gerrit-Change-Number: 7604335
      Gerrit-PatchSet: 3
      Gerrit-Owner: Nicolas MacBeth <nicolas...@google.com>
      Gerrit-Reviewer: Adam Arcaro <ada...@google.com>
      Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
      Gerrit-Comment-Date: Tue, 24 Feb 2026 21:48:49 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      5:47 PM (2 hours ago) 5:47 PM
      to Nicolas MacBeth, Adam Arcaro, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

      Chromium LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

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

      ```
      The name of the file: ios/chrome/browser/intelligence/proto_wrappers/page_context_wrapper.mm
      Insertions: 1, Deletions: 1.

      @@ -291,7 +291,7 @@
      }

      - (void)populatePageContextFieldsAsyncWithTimeout:(base::TimeDelta)timeout {
      - CHECK(!_executionStarted);
      + CHECK(!_executionStarted) << "A PageContextWrapper should only be used once.";
      _executionStarted = YES;

      if (_isLowPriorityExtraction) {
      ```

      Change information

      Commit message:
      [iOS] Make PageContextWrapper one time use by CHECKing on double extract
      Fixed: 487264526
      Change-Id: I60ae6b5bd49b3431ce293a2ad8c517f100bd9569
      Commit-Queue: Nicolas MacBeth <nicolas...@google.com>
      Reviewed-by: Adam Arcaro <ada...@google.com>
      Cr-Commit-Position: refs/heads/main@{#1589721}
      Files:
      Change size: S
      Delta: 2 files changed, 18 insertions(+), 0 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Adam Arcaro
      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: I60ae6b5bd49b3431ce293a2ad8c517f100bd9569
      Gerrit-Change-Number: 7604335
      Gerrit-PatchSet: 4
      Gerrit-Owner: Nicolas MacBeth <nicolas...@google.com>
      Gerrit-Reviewer: Adam Arcaro <ada...@google.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages