B2G/gecko/services/sync/modules/identity.js
/**
   * Sets the active account name.
   *
   * This should almost always be called in favor of setting username, as
   * username is derived from account.
   *
   * Changing the account name has the side-effect of wiping out stored
   * credentials. Keep in mind that persistCredentials() will need to be called
   * to flush the changes to disk.
   *
   * Set this value to null to clear out identity information.
   */
Sets the active account name.
This should almost always be called in favor of setting username, as
username is derived from account.

Changing the account name has the side-effect of wiping out stored
credentials. Keep in mind that persistCredentials() will need to be called
to flush the changes to disk.

Set this value to null to clear out identity information.
Sets the active account name . This should almost always be called in favor of setting username as username is derived from account . Changing the account name has the side - effect of wiping out stored credentials . Keep in mind that persistCredentials () will need to be called to flush the changes to disk . Set this value to null to clear out identity information .
set account(value) {
    if (value) {
      value = value.toLowerCase();
      Svc.Prefs.set("account", value);
    } else {
      Svc.Prefs.reset("account");
    }
    this.username = this.usernameFromAccount(value);
  }
set account ( value ) { if ( value ) { value = value . toLowerCase ( ) ; Svc . Prefs . set ( "account" , value ) ; } else { Svc . Prefs . reset ( "account" ) ; } this . username = this . usernameFromAccount ( value ) ; }
Sets the active account name.
Sets the active account name .