Use promises for confirmation dialog instead of done event

Should be merged at the same time as I70af4f4f
Unbreaks the confirm dialogs (I5f971852)

Change-Id: I7e7a5fcef4e749a3196f675e9f1f8e8bc5c11ca0
Merge "Use promises for confirmation dialog instead of done event"