Use SHA256 hash to generate notification tags [chromium/src : main]

0 views
Skip to first unread message

Joe Mason (Gerrit)

unread,
12:10 AM (8 hours ago) 12:10 AM
to Chromium LUCI CQ, chromium...@chromium.org, Peter Beverloo, dibyapal+wa...@chromium.org

Joe Mason voted Auto-Submit+1

Auto-Submit+1
Open in Gerrit

Related details

Attention set is empty
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: I42495b47b5d1246164f5c0c9feba232ecd2a92c8
Gerrit-Change-Number: 8141202
Gerrit-PatchSet: 1
Gerrit-Owner: Joe Mason <joenot...@google.com>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-CC: Peter Beverloo <pe...@chromium.org>
Gerrit-Comment-Date: Fri, 24 Jul 2026 04:10:40 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Joe Mason (Gerrit)

unread,
1:29 AM (7 hours ago) 1:29 AM
to Peter Beverloo, Chromium LUCI CQ, chromium...@chromium.org, dibyapal+wa...@chromium.org
Attention needed from Peter Beverloo

Joe Mason added 1 comment

File chrome/browser/notifications/notification_platform_bridge_win.cc
Line 923, Patchset 1 (Latest): return base::ASCIIToWide(base::HexEncode(crypto::hash::Sha256(payload)));
Joe Mason . unresolved

Turns out this fails because it's 64 chars long. The toast API has a max lenght of 64 chars *including the null terminator*.

Open in Gerrit

Related details

Attention is currently required from:
  • Peter Beverloo
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: I42495b47b5d1246164f5c0c9feba232ecd2a92c8
    Gerrit-Change-Number: 8141202
    Gerrit-PatchSet: 1
    Gerrit-Owner: Joe Mason <joenot...@google.com>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-Reviewer: Peter Beverloo <pe...@chromium.org>
    Gerrit-Attention: Peter Beverloo <pe...@chromium.org>
    Gerrit-Comment-Date: Fri, 24 Jul 2026 05:29:23 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Joe Mason (Gerrit)

    unread,
    1:48 AM (7 hours ago) 1:48 AM
    to Peter Beverloo, Chromium LUCI CQ, chromium...@chromium.org, dibyapal+wa...@chromium.org
    Attention needed from Peter Beverloo

    Joe Mason voted and added 1 comment

    Votes added by Joe Mason

    Auto-Submit+1

    1 comment

    File chrome/browser/notifications/notification_platform_bridge_win.cc
    Line 923, Patchset 1: return base::ASCIIToWide(base::HexEncode(crypto::hash::Sha256(payload)));
    Joe Mason . resolved

    Turns out this fails because it's 64 chars long. The toast API has a max lenght of 64 chars *including the null terminator*.

    Joe Mason

    Fixed.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Peter Beverloo
    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: I42495b47b5d1246164f5c0c9feba232ecd2a92c8
      Gerrit-Change-Number: 8141202
      Gerrit-PatchSet: 2
      Gerrit-Owner: Joe Mason <joenot...@google.com>
      Gerrit-Reviewer: Joe Mason <joenot...@google.com>
      Gerrit-Reviewer: Peter Beverloo <pe...@chromium.org>
      Gerrit-Attention: Peter Beverloo <pe...@chromium.org>
      Gerrit-Comment-Date: Fri, 24 Jul 2026 05:48:08 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Joe Mason <joenot...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Peter Beverloo (Gerrit)

      unread,
      5:24 AM (3 hours ago) 5:24 AM
      to Peter Beverloo, Chromium LUCI CQ, chromium...@chromium.org, dibyapal+wa...@chromium.org
      Attention needed from Joe Mason

      Peter Beverloo voted and added 1 comment

      Votes added by Peter Beverloo

      Code-Review+1

      1 comment

      File chrome/browser/notifications/notification_platform_bridge_win_unittest.cc
      Line 267, Patchset 3 (Latest): ASSERT_NE(tagA.Get(), tagB.Get());
      Peter Beverloo . unresolved

      The origins are included in the `notification_id` parameter by the `NotificationIdGenerator`, which this test suite bypasses by using a fixed `kNotificationId`, causing this assertion to fail. I think that's ok - best to remove this test?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Joe Mason
      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: I42495b47b5d1246164f5c0c9feba232ecd2a92c8
      Gerrit-Change-Number: 8141202
      Gerrit-PatchSet: 3
      Gerrit-Owner: Joe Mason <joenot...@google.com>
      Gerrit-Reviewer: Joe Mason <joenot...@google.com>
      Gerrit-Reviewer: Peter Beverloo <pe...@chromium.org>
      Gerrit-Attention: Joe Mason <joenot...@google.com>
      Gerrit-Comment-Date: Fri, 24 Jul 2026 09:23:50 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages