SANTA CLARA, Calif. — The San Francisco 49ers traded right tackle Trent Brown on Friday to the New England Patriots a day after drafting Mike McGlinchey as his replacement in the first round.

The 49ers dealt Brown and the 143rd overall pick to New England for the 95th overall pick.

Brown is coming off season-ending shoulder surgery that has sidelined him for the start of the off-season program. But when healthy, he is considered one of the top pass blockers in the league at right tackle.

The Patriots also used a first-round pick on Georgia's Isaiah Wynn on Thursday night as they try to shore up their blocking in front of quarterback Tom Brady.

The 49ers weren't ready to commit to Brown after this season when he will be eligible to be a free agent and chose his replacement instead in the draft.

San Francisco took McGlinchey ninth overall out of Notre Dame to step in immediately as starting right tackle and possibly transition to the left side in the future. Joe Staley holds down that spot for now and is under contract for two more years.

"I was picked by the 49ers to compete and play football and that's what I'm going to do," McGlinchey said. "I'm not the one in charge of shaping the roster. I'm not the one in charge of making those kinds of decisions. They brought me here to play offensive line and that's what I'm going to do, whether it's as a first-year starter or riding the bench for a little while."

The 49ers also announced they signed safety Jaquiski Tartt to a two-year extension through 2020. Tartt is one of only nine draft picks remaining on the team selected by former general manager Trent Baalke.

Tartt was a second-round pick in 2015 and has played in 39 games with 23 starts in his career. He has 181 tackles, nine passes defenced, 3 1/2 sacks, two interceptions and one forced fumble.

Tartt is projected as San Francisco's starting strong safety and the 49ers opted against taking Derwin James in the first round Thursday night in part because of their belief in Tartt.

"Since we arrived last year, Jaquiski has impressed us with his play, his work ethic and the kind of teammate he is," general manager John Lynch said. "We believe he's a natural fit in our defensive system, and his abilities will allow him to flourish. It is always exciting when we are able to extend our own young players like Jaquiski who are dedicated to their craft, this team and our community."

___

For more NFL coverage: http://www.pro32.ap.org and http://www.twitter.com/AP_NFL