San Francisco wins a third title in five years.