I've always been curious about the pressure of shareholders in situations like this. Google is a publicly shared company, right? So if they don't maximize the shareholder's value, don't they open themselves up to lawsuits by shareholders?
So even if they wanted to "do the right thing" and pay some taxes on this money, they couldn't, else their board would get voted out by large shareholders who are only in it for the money.