public void restoreTabs(boolean setActiveTab){
  if (setActiveTab) {
    while (!mTabsToRestore.isEmpty() && mNormalTabsRestored.size() == 0 && mIncognitoTabsRestored.size() == 0) {
      TabRestoreDetails tabToRestore=mTabsToRestore.removeFirst();
      restoreTab(tabToRestore,true);
    }
  }
  loadNextTab();
}

public void restoreTabs ( boolean setActiveTab ) { if ( setActiveTab ) { while ( ! mTabsToRestore . isEmpty ( ) && mNormalTabsRestored . size ( ) == 0 && mIncognitoTabsRestored . size ( ) == 0 ) { TabRestoreDetails tabToRestore = mTabsToRestore . removeFirst ( ) ; restoreTab ( tabToRestore , true ) ; } } loadNextTab ( ) ; }
restore tab state . tab state is loaded asynchronously , other than the active tab which can be forced to load synchronously .
