The factory is destroyed as the territory becomes Chinese no matter what Allied Power captured it.
AA Pacific 1940 2nd Edition Rulebook - Page 10
If a Japanese industrial complex is built on a Chinese territory and that territory is later recaptured by the Chinese or liberated by another Allied power, the industrial complex is removed from the game.