The San Francisco 49ers announced they have signed left tackle Joe Staley to a two-year contract extension through the 2019 season.