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.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
CL is part of the effort to get rid of TimeTicks::UnixEpoch()
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
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)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Nice improvement, thanks! LGTM with nits
function mojoTimeToDate(mojoTime: Time): Date {There's a mojo_base.mojom.JSTime that will do this conversion automatically.
mojo_base.mojom.Time state_change_time;Nit: prefer JSTime here.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM2 % Joe's comments. :)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |