Add a confirmation dialog before overwriting a file in picker.

And some related refactoring in picker.

Test: Manually tested and auto tests pass.
Bug: 34339143
Change-Id: I0e87a20819756858f4c4eab70e9191cb525f84d9
16 files changed