Bug 1032070 - [Settings] add done feature in onBeforsShow()

nit: We could save one indention by using:
```
Promise.resolve()
.then(function() {
})
.then(function() {
...
```