The United States’ top general said on Thursday that the Chinese military was indirectly benefiting from the work Alphabet Inc’s Google was doing in China.