This will largely entail lifting AccountActivity.createAccount and adding validation, and documenting its assumptions (e.g., about threading). Also will need an option to ensure that no account already exists, to avoid ending up with two! While we're here, we can also add a little API to check whether a Sync account exists, and strip that logic out of the main Fennec code. In the future we can explore additional decoupling.
The beginnings of this: https://github.com/mozilla-services/android-sync/pull/105
https://hg.mozilla.org/integration/mozilla-inbound/rev/a0df03570b26 Leaving open for any work required for Part 2.
https://hg.mozilla.org/releases/mozilla-aurora/rev/bccdef36473e (i assume there is more to add here since the bug was left open. maybe we should open a new bug and close this one?)
(In reply to Richard Newman [:rnewman] from comment #2) > https://hg.mozilla.org/integration/mozilla-inbound/rev/a0df03570b26 > > Leaving open for any work required for Part 2. can you file a second bug for part #2 please?