Caption: "Shock waves through icy parts of the solar nebula may be the mechanism that enriched ancient meteorites (called chondrites some of which survive today as the most chemically unprocessed left over from solar system formation) with water---water that some believe provided an otherwise dry Earth with oceans." (Slightly edited.)

I don't anything about this shock wave theory.

Water may have been brought to the early Earth by comets---a hard rain fell.

The image provides some idea of what the planet formation period looked like.

Credit/Permission: William K. Hartmann (1939--), NASA, before or circa 2008 (uploaded to Wikipedia by User:Qbek, 2008 / Public domain.
Image link: Wikipedia.
Local file: local link: protoplanetary_disk_solar.html.
File: Solar system file: protoplanetary_disk_solar.html.