get preselectedPod() {
      var isDesktopUserManager = Oobe.getInstance().displayType ==
          DISPLAY_TYPE.DESKTOP_USER_MANAGER;
      if (isDesktopUserManager) {
        // On desktop, don't pre-select a pod if it's the only one.
        if (this.pods.length == 1)
          return null;

        // The desktop User Manager can send an URI encoded profile path in the
        // url hash, that indicates a pod that should be initially focused.
        var focusedProfilePath =
            decodeURIComponent(window.location.hash.substr(1));
        for (var i = 0, pod; pod = this.pods[i]; ++i) {
          if (focusedProfilePath === pod.user.profilePath)
            return pod;
        }
        return null;
      }

      var lockedPod = this.lockedPod;
      if (lockedPod)
        return lockedPod;
      for (i = 0; pod = this.pods[i]; ++i) {
        if (!pod.multiProfilesPolicyApplied)
          return pod;
      }
      return this.pods[0];
    }
/**
     * The pod that is preselected on user pod row show.
     * @type {?UserPod}
     */
The pod that is preselected on user pod row show.
The pod that is preselected on user pod row show .
get preselectedPod() {
      var isDesktopUserManager = Oobe.getInstance().displayType ==
          DISPLAY_TYPE.DESKTOP_USER_MANAGER;
      if (isDesktopUserManager) {
        if (this.pods.length == 1)
          return null;
        var focusedProfilePath =
            decodeURIComponent(window.location.hash.substr(1));
        for (var i = 0, pod; pod = this.pods[i]; ++i) {
          if (focusedProfilePath === pod.user.profilePath)
            return pod;
        }
        return null;
      }
      var lockedPod = this.lockedPod;
      if (lockedPod)
        return lockedPod;
      for (i = 0; pod = this.pods[i]; ++i) {
        if (!pod.multiProfilesPolicyApplied)
          return pod;
      }
      return this.pods[0];
    }
get preselectedPod ( ) { var isDesktopUserManager = Oobe . getInstance ( ) . displayType == DISPLAY_TYPE . DESKTOP_USER_MANAGER ; if ( isDesktopUserManager ) { if ( this . pods . length == 1 ) return null ; var focusedProfilePath = decodeURIComponent ( window . location . hash . substr ( 1 ) ) ; for ( var i = 0 , pod ; pod = this . pods [ i ] ; ++ i ) { if ( focusedProfilePath === pod . user . profilePath ) return pod ; } return null ; } var lockedPod = this . lockedPod ; if ( lockedPod ) return lockedPod ; for ( i = 0 ; pod = this . pods [ i ] ; ++ i ) { if ( ! pod . multiProfilesPolicyApplied ) return pod ; } return this . pods [ 0 ] ; }
The pod that is preselected on user pod row show.
The pod that is preselected on user pod row show .
// On desktop, don't pre-select a pod if it's the only one. // The desktop User Manager can send an URI encoded profile path in the // url hash, that indicates a pod that should be initially focused.