A method of cryoprotection for protein crystallography by using a microfluidic chip and its application for in situ X-ray diffraction measurements.