Actually, legally, theoretically and practically speaking, a corporation is and should be a machine to maximize income.
Whoever downmodded me is a fucking jackass. That's the definition. Legally, they're obligated to protect shareholder value as obligations #1, 2 and 3.
There is no reason that Google should behave any differently than Exxon Mobil or Phillip Morris or whatever corporation you want to call "less moral than google". Basing public policy on the expectation that corporations will be moral is the dumbest thing possible -- it's actually in their charter to be immoral.