Let's not forget that McCain also pandered to the Latino vote. He did this over the howls of protest from many, many Americans who saw to it that the bullshit illegal alien amnesty POS legislation garbage that Bush tried to shove down our throats was shitcanned (albeit temporarily) in June of last year.
It was only after McCain saw that he was on the wrong side of that one vis a vis his conservative base, that he changed his tune.
McCain, and his Arizona border sit-you-hay-shun, understands all too well the power of the Latino vote.