Merge "base: allow creating tempfile in a custom temporary dir." am: 665f144566 am: d773ceb28a
am: 1d84dd3921

Change-Id: I624204ae324a0285c65f9aea9350ceda66fc694a