code: function(profile) {
        var user = this.getUser();
        if (user) {
          return this._q.when(user.updateProfile(profile));
        } else {
          return this._q.reject("Cannot update profile since there is no logged in user.");
        }
      }
docs: Changes the profile for an user.
  
  @param {string} profile A new profile for the current user.
  @return {Promise<>} An empty promise fulfilled once the profile change is complete.