Tamara, yes and no. Yes the quality of the prep work and plating certainly play into it. The no part being nickle underlayment, typically copper, is subject to being attacked by some solvents when chrome is virtually impervious to any possible solvent used on guns. Even sissy ol' Hoppe's #9 will eat copper eventually, and bubble it up bigtime only to flake off. I would suggest most if not all flaking factory nickle is a result of mistreatment, not a flaw in the plating process. The same can be said for good platers in the aftermarket. Plating isn't rocket science, and plating houses can do it right in their sleep if they need to on steel. Aluminum alloys are a little harder, but still a slam dunk for a good plater.
Sean has it right: nickle is more corrosion resistant, nearly corrosion proof. Hard Chrome isn't quite as corrosion resistant, though it is certainly better than the stainless steels common in handguns, but it is much harder, slicker and more durable. The nickle process is MUCH older than the chrome process. It is only in the last 60 years or so that industrial hard chrome has been understood and controlled well enough to be used in firearms, and common use outside military chambers has been quite limited until the last 40 years, nickle has been around for well over 100 years and has been accepted by shooters for as long making nickle guns more saleable.