Implement IsEntityDataValid() on HistorySyncBridge [chromium/src : main]

0 views
Skip to first unread message

Marc Treib (Gerrit)

unread,
Sep 25, 2025, 9:07:41 AM (2 days ago) Sep 25
to Marc Treib, Chromium Sync Reviews, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Chromium Sync Reviews

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Chromium Sync Reviews
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: Ic1b2def993b6249d28c444604eb4976feb6603bd
Gerrit-Change-Number: 6983603
Gerrit-PatchSet: 1
Gerrit-Owner: Marc Treib <tr...@chromium.org>
Gerrit-Reviewer: Chromium Sync Reviews <chromium-s...@google.com>
Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
Gerrit-Attention: Chromium Sync Reviews <chromium-s...@google.com>
Gerrit-Comment-Date: Thu, 25 Sep 2025 13:07:28 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

gwsq (Gerrit)

unread,
Sep 25, 2025, 9:10:01 AM (2 days ago) Sep 25
to Marc Treib, Chromium Sync Reviews, Ankush Singh, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Ankush Singh

Message from gwsq

Reviewer source(s):
ankus...@google.com is from context(googleclient/chrome/chromium_gwsq/components/sync/config.gwsq)

Open in Gerrit

Related details

Attention is currently required from:
  • Ankush Singh
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: Ic1b2def993b6249d28c444604eb4976feb6603bd
Gerrit-Change-Number: 6983603
Gerrit-PatchSet: 1
Gerrit-Owner: Marc Treib <tr...@chromium.org>
Gerrit-Reviewer: Ankush Singh <ankus...@google.com>
Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
Gerrit-CC: Chromium Sync Reviews <chromium-s...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Ankush Singh <ankus...@google.com>
Gerrit-Comment-Date: Thu, 25 Sep 2025 13:09:55 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Ankush Singh (Gerrit)

unread,
Sep 25, 2025, 12:26:24 PM (2 days ago) Sep 25
to Marc Treib, Chromium Sync Reviews, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Marc Treib

Ankush Singh voted and added 2 comments

Votes added by Ankush Singh

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Ankush Singh . resolved

LGTM % qq, thanks!

File components/history/core/browser/sync/history_sync_bridge.cc
Line 771, Patchset 1 (Latest): DCHECK(entity_data.specifics.has_history())
Ankush Singh . unresolved

Do we think it's risky making it a CHECK?

Open in Gerrit

Related details

Attention is currently required from:
  • Marc Treib
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ic1b2def993b6249d28c444604eb4976feb6603bd
    Gerrit-Change-Number: 6983603
    Gerrit-PatchSet: 1
    Gerrit-Owner: Marc Treib <tr...@chromium.org>
    Gerrit-Reviewer: Ankush Singh <ankus...@google.com>
    Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
    Gerrit-CC: Chromium Sync Reviews <chromium-s...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Attention: Marc Treib <tr...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 Sep 2025 16:26:06 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Marc Treib (Gerrit)

    unread,
    Sep 25, 2025, 12:36:43 PM (2 days ago) Sep 25
    to Marc Treib, Ankush Singh, Chromium Sync Reviews, Chromium LUCI CQ, chromium...@chromium.org

    Marc Treib voted and added 2 comments

    Votes added by Marc Treib

    Commit-Queue+1

    2 comments

    Patchset-level comments
    File-level comment, Patchset 2 (Latest):
    Marc Treib . resolved

    Thanks!

    File components/history/core/browser/sync/history_sync_bridge.cc
    Line 771, Patchset 1: DCHECK(entity_data.specifics.has_history())
    Ankush Singh . resolved

    Do we think it's risky making it a CHECK?

    Marc Treib

    No, I had just blindly copied this from GetStorageKey/GetClientTag. Changed to `CHECK` for all 3 of them (and also removed the message since it's obvious anyway, and to avoid bloating release binaries with these strings).

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    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: Ic1b2def993b6249d28c444604eb4976feb6603bd
    Gerrit-Change-Number: 6983603
    Gerrit-PatchSet: 2
    Gerrit-Owner: Marc Treib <tr...@chromium.org>
    Gerrit-Reviewer: Ankush Singh <ankus...@google.com>
    Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
    Gerrit-CC: Chromium Sync Reviews <chromium-s...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Comment-Date: Thu, 25 Sep 2025 16:36:29 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Ankush Singh <ankus...@google.com>
    satisfied_requirement
    open
    diffy

    Marc Treib (Gerrit)

    unread,
    Sep 25, 2025, 1:25:20 PM (2 days ago) Sep 25
    to Marc Treib, Ankush Singh, Chromium Sync Reviews, Chromium LUCI CQ, chromium...@chromium.org

    Marc Treib 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
    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: Ic1b2def993b6249d28c444604eb4976feb6603bd
    Gerrit-Change-Number: 6983603
    Gerrit-PatchSet: 2
    Gerrit-Owner: Marc Treib <tr...@chromium.org>
    Gerrit-Reviewer: Ankush Singh <ankus...@google.com>
    Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
    Gerrit-CC: Chromium Sync Reviews <chromium-s...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Comment-Date: Thu, 25 Sep 2025 17:25:01 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Sep 25, 2025, 1:28:00 PM (2 days ago) Sep 25
    to Marc Treib, Ankush Singh, Chromium Sync Reviews, chromium...@chromium.org

    Chromium LUCI CQ submitted the change with unreviewed changes

    Unreviewed changes

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

    ```
    The name of the file: components/history/core/browser/sync/history_sync_bridge.cc
    Insertions: 3, Deletions: 6.

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

    Change information

    Commit message:
    Implement IsEntityDataValid() on HistorySyncBridge

    The implementation just checks that visit_time_windows_epoch_micros is
    populated (since this is what client tag and storage key are derived
    from).
    Bug: 40889096
    Change-Id: Ic1b2def993b6249d28c444604eb4976feb6603bd
    Commit-Queue: Marc Treib <tr...@chromium.org>
    Reviewed-by: Ankush Singh <ankus...@google.com>
    Cr-Commit-Position: refs/heads/main@{#1520712}
    Files:
    • M components/history/core/browser/sync/history_sync_bridge.cc
    • M components/history/core/browser/sync/history_sync_bridge.h
    Change size: S
    Delta: 2 files changed, 12 insertions(+), 4 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Ankush Singh
    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: Ic1b2def993b6249d28c444604eb4976feb6603bd
    Gerrit-Change-Number: 6983603
    Gerrit-PatchSet: 3
    Gerrit-Owner: Marc Treib <tr...@chromium.org>
    Gerrit-Reviewer: Ankush Singh <ankus...@google.com>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages