There is some question as to whether the attack originated from within Google's offices in China.  If so, or if there was some inside knowledge used to facilitate the attacks, closing operations in China was significantly strengthen Google's defenses, since they will no longer be exposing internal information to Chinese citizens (apparently) willing to help Chinese government hacking attacks.