@Override public void onBackup(ParcelFileDescriptor oldState,BackupDataOutput data,ParcelFileDescriptor newState) throws IOException {
  long savedFileSize=-1;
  long savedCrc=-1;
  int savedVersion=-1;
  DataInputStream in=new DataInputStream(new FileInputStream(oldState.getFileDescriptor()));
  try {
    savedFileSize=in.readLong();
    savedCrc=in.readLong();
    savedVersion=in.readInt();
  }
 catch (  EOFException e) {
    return;
  }
 finally {
    if (in != null) {
      in.close();
    }
  }
  writeBackupState(savedFileSize,savedCrc,newState);
}

@ Override public void onBackup ( ParcelFileDescriptor oldState , BackupDataOutput data , ParcelFileDescriptor newState ) throws IOException { long savedFileSize = - 1 ; long savedCrc = - 1 ; int savedVersion = - 1 ; DataInputStream in = new DataInputStream ( new FileInputStream ( oldState . getFileDescriptor ( ) ) ) ; try { savedFileSize = in . readLong ( ) ; savedCrc = in . readLong ( ) ; savedVersion = in . readInt ( ) ; } catch ( EOFException e ) { return ; } finally { if ( in != null ) { in . close ( ) ; } } writeBackupState ( savedFileSize , savedCrc , newState ) ; }
this simply preserves the existing state as we now prefer chrome sync to handle bookmark backup .
