"You took a chance on me" seems to always be used in reference to a relationship, and implies that the other person took a risk/chance being with you (in a relationship or otherwise). "You gave me a chance" doesn't necessarily have to do with a relationship, and puts the risk/chance on you since they gave you that power (by giving you that chance).
Hopefully that helps...