 Irvin represented in the 27th and 28th Congresses.Irvin unsuccessfully ran for governor of Pennsylvania in 1847, losing to incumbent governor Francis Rawn Shunk.In 1855, the General Assembly of the Commonwealth of Pennsylvania chartered the Farmer's High School.