AP

One of the top remaining free agent cornerbacks has found a home in New York.

The Giants have agreed to terms with Dominique Rodgers-Cromartie on a five-year contract, Adam Schefter of ESPN reports. According to Ralph Vacchiano ‏of the New York Daily News, the total value of the contract is $35 million.

Rodgers-Cromartie had spent the last few days in New York and had visited both the Giants and the Jets.

After starting his career in Arizona and then playing two years in Philadelphia Rodgers-Cromartie spent the 2013 season in Denver. He was at first considered likely to remain with the Broncos, but when free agency started, Denver abruptly made a move for Aqib Talib instead. That left Rodgers-Cromartie without a home.

Now Rodgers-Cromartie will upgrade a Giants secondary that needs help. And he’ll leave the Jets continuing to look for a cornerback.