Hydrogel-swelling driven delivery device for corrosion resistance of metal in water.