In truth, there is a kind of Grand Unified Law, of which we are still working out the details, which we (whether we realize it or not) want companies to follow. It is law based on ethics and morality, and no legal infrastructure in any country today is entirely accommodating of this law.
The fact is that we live in a world full of corrupt politics, and most of the time when companies have to "play ball" with requests such as censorship, it's a bad thing. We are working on the GUL but we do know that it includes freedom of speech.
This is very separate from things like regulations and safety measures, which are obviously in place for a reason and which would also exist in this hypothetical GUL.
You simply cannot break it down as "sometimes you want them to follow the law and sometimes you don't", because the law is imperfect and does not currently reflect the best case scenario. I would resist censorship in another country and I expect Google, et al. to do the same on the basis of putting ethics before money.