A bit of refactoring and new functionality for removeAccount method.

This commit is contained in:
Valverde Antonio
2014-07-29 16:21:46 +09:00
parent 437596e6c6
commit 1386b438c0
8 changed files with 26 additions and 18 deletions

View File

@@ -14,12 +14,12 @@ module.exports = syrup.serial()
.define(function(options, service, identity, touch, router, push, adb) {
var log = logger.createLogger('device:plugins:account')
router.on(wire.AccountRemoveMessage, function(channel) {
router.on(wire.AccountRemoveMessage, function(channel, message) {
var reply = wireutil.reply(options.serial)
log.info('Removing current Google account(s)')
log.info('Removing "%s" account(s)', message.type)
service.removeAccount()
service.removeAccount(message)
.timeout(30000)
.then(function() {
push.send([