That's why Google doesn't operates in China at full scale. https://en.m.wikipedia.org/wiki/Google_China
They decided that was agains the company values to comply with Chinese law, so they stopped offering some services.
It's the law, and maybe I don't like it at all, but still I thing that companies should comply. I also thing that that laws should me changed.