Thanks for the homework assignment. The entire value proposition of tmp is there is no homework to do later.
Chrome is multi-process, isn't it?
Or what about, delete it after 10 days it was last accessed (regardless of whether for read or write)? Hint: that's already how tmpfiles.d works
Detect the process that created a file and delete it 24 hours after the process ends.