Merge "base: support optional flags in android::base::Pipe." am: 0182f71d96
am: 77ddc89bb0

Change-Id: I2c20d702e9a4167c3fb66ad9fd8cd72959947864