public int loadState(){
  try {
    waitForMigrationToFinish();
  }
 catch (  InterruptedException e) {
  }
catch (  ExecutionException e) {
  }
  mCancelNormalTabLoads=false;
  mCancelIncognitoTabLoads=false;
  mNormalTabsRestored=new SparseIntArray();
  mIncognitoTabsRestored=new SparseIntArray();
  int nextId=0;
  try {
    nextId=loadStateInternal();
  }
 catch (  Exception e) {
    Log.d(TAG,"loadState exception: " + e.toString(),e);
  }
  cleanupPersistentDataAtAndAboveId(nextId);
  if (mObserver != null)   mObserver.onInitialized(mTabsToRestore.size());
  return nextId;
}

public int loadState ( ) { try { waitForMigrationToFinish ( ) ; } catch ( InterruptedException e ) { } catch ( ExecutionException e ) { } mCancelNormalTabLoads = false ; mCancelIncognitoTabLoads = false ; mNormalTabsRestored = new SparseIntArray ( ) ; mIncognitoTabsRestored = new SparseIntArray ( ) ; int nextId = 0 ; try { nextId = loadStateInternal ( ) ; } catch ( Exception e ) { Log . d ( TAG , "loadState exception: " + e . toString ( ) , e ) ; } cleanupPersistentDataAtAndAboveId ( nextId ) ; if ( mObserver != null ) mObserver . onInitialized ( mTabsToRestore . size ( ) ) ; return nextId ; }
restore saved state . must be called before any tabs are added to the list .
