Use mojo Time for chrome://discards state_change_time [chromium/src : main]

0 views
Skip to first unread message

Helmut Januschka (Gerrit)

unread,
Jun 30, 2026, 3:08:24 PMJun 30
to chromium...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org

Helmut Januschka has uploaded the change for review

Commit message

Use mojo Time for chrome://discards state_change_time

Stamp a wall-clock alongside TimeTicks in LifecycleUnitBase::SetState
and ship it via the mojom Time field so the display is an actual wall
clock instead of a TimeTicks::UnixEpoch-relative TimeDelta.
Bug: 355423207
Change-Id: Ib69c6c380134f12bb244397f72a777479f03203c

Change diff


Change information

Files:
  • M chrome/browser/resource_coordinator/lifecycle_unit.h
  • M chrome/browser/resource_coordinator/lifecycle_unit_base.cc
  • M chrome/browser/resource_coordinator/lifecycle_unit_base.h
  • M chrome/browser/resource_coordinator/lifecycle_unit_base_unittest.cc
  • M chrome/browser/resources/discards/discards_tab.ts
  • M chrome/browser/ui/webui/discards/discards.mojom
  • M chrome/browser/ui/webui/discards/discards_ui.cc
  • M chrome/test/data/webui/discards/discards_test.ts
Change size: M
Delta: 8 files changed, 44 insertions(+), 17 deletions(-)
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: newchange
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib69c6c380134f12bb244397f72a777479f03203c
Gerrit-Change-Number: 8027230
Gerrit-PatchSet: 1
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Helmut Januschka (Gerrit)

unread,
Jul 7, 2026, 6:55:35 AM (9 days ago) Jul 7
to Chromium IPC Reviews, Chromium LUCI CQ, chromium...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org
Attention needed from Chromium IPC Reviews and Joe Mason

Helmut Januschka added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Helmut Januschka . resolved

CL is part of the effort to get rid of TimeTicks::UnixEpoch()

Open in Gerrit

Related details

Attention is currently required from:
  • Chromium IPC Reviews
  • Joe Mason
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: Ib69c6c380134f12bb244397f72a777479f03203c
Gerrit-Change-Number: 8027230
Gerrit-PatchSet: 1
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-Attention: Joe Mason <joenot...@google.com>
Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-Comment-Date: Tue, 07 Jul 2026 10:55:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

gwsq (Gerrit)

unread,
Jul 7, 2026, 7:01:12 AM (9 days ago) Jul 7
to Helmut Januschka, Chromium IPC Reviews, Mike West, Chromium LUCI CQ, chromium...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org
Attention needed from Joe Mason and Mike West

Message from gwsq

From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: mk...@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): mk...@chromium.org


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

Open in Gerrit

Related details

Attention is currently required from:
  • Joe Mason
  • Mike West
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: Ib69c6c380134f12bb244397f72a777479f03203c
Gerrit-Change-Number: 8027230
Gerrit-PatchSet: 1
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Attention: Joe Mason <joenot...@google.com>
Gerrit-Comment-Date: Tue, 07 Jul 2026 11:00:53 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Joe Mason (Gerrit)

unread,
Jul 7, 2026, 10:09:28 AM (9 days ago) Jul 7
to Helmut Januschka, Chromium IPC Reviews, Mike West, Chromium LUCI CQ, chromium...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org
Attention needed from Helmut Januschka and Mike West

Joe Mason voted and added 3 comments

Votes added by Joe Mason

Code-Review+1

3 comments

Patchset-level comments
Joe Mason . resolved

Nice improvement, thanks! LGTM with nits

File chrome/browser/resources/discards/discards_tab.ts
Line 25, Patchset 1 (Latest):function mojoTimeToDate(mojoTime: Time): Date {
Joe Mason . unresolved
File chrome/browser/ui/webui/discards/discards.mojom
Line 74, Patchset 1 (Latest): mojo_base.mojom.Time state_change_time;
Joe Mason . unresolved

Nit: prefer JSTime here.

Open in Gerrit

Related details

Attention is currently required from:
  • Helmut Januschka
  • Mike West
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: Ib69c6c380134f12bb244397f72a777479f03203c
Gerrit-Change-Number: 8027230
Gerrit-PatchSet: 1
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Tue, 07 Jul 2026 14:09:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Mike West (Gerrit)

unread,
Jul 7, 2026, 12:15:40 PM (9 days ago) Jul 7
to Helmut Januschka, Chromium IPC Reviews, Chromium LUCI CQ, chromium...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org
Attention needed from Helmut Januschka

Mike West voted and added 1 comment

Votes added by Mike West

Code-Review+1

1 comment

Patchset-level comments
Mike West . resolved

LGTM2 % Joe's comments. :)

Open in Gerrit

Related details

Attention is currently required from:
  • Helmut Januschka
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: Ib69c6c380134f12bb244397f72a777479f03203c
Gerrit-Change-Number: 8027230
Gerrit-PatchSet: 1
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
Gerrit-Comment-Date: Tue, 07 Jul 2026 16:15:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages