Google has agreed to censor its results in China, adhering to their free-speech restrictions in return for better access.