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:
Leaving open for any work required for Part 2.
(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)
> Leaving open for any work required for Part 2.
can you file a second bug for part #2 please?