Google threatened on Tuesday to shut down its operations in China after uncovering what it said were "highly sophisticated" cyberattacks aimed at Chinese human rights activists.