“The work that Google is doing in China is indirectly benefiting the Chinese military,” Marine Gen. Joseph Dunford, chairman of the Joint Chiefs of Staff, told the Senate Armed Services Committee on Thursday.

“We watch with great concern when industry partners work in China knowing that there is that indirect benefit. Frankly, ‘indirect’ may be not a full characterization of the way it really is, it is more of a direct benefit to the Chinese military.”

Last year, Google said it was no longer vying for a $10 billion computing contract with the Defense Department, in part because the company’s new ethical guidelines did not align with the project.

In June, Google said it would not renew a contract to help the US military analyze aerial drone imagery when it expired, as the company sought to defuse an internal uproar over the deal.