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

Change-Id: Ibf63af87835763700682163cbe8feb60dc081b01