No, Google pulled its business from China because of massive state-level hacking attempts, not because of fighting for freedom or doing the right thing or whatever that sounds cool. Or do you think fighting against millions of state-backed hackers is a part of following local regulation?
Google didn't pull it's business from the USA after PRISM, so I guess strengthening their networks against state-backed hackers is already part and parcel of their business.