What is the biochemistry behind hardening off indoor grown plants so they don't get sunburned when moved outdoors?

I suspect it is something similar to melanin production in humans but I do not see a color change in the leaves to make them more resistant to sun damage. What are the signalling pathways for this process?