 He faced State Representative Sam Rohrer in the May 18, 2010, Republican primary and defeated him with nearly 70% of the vote.In the general election, he faced Allegheny County Chief Executive Dan Onorato, who won the Democratic primary with 45% of the vote.In May 2010 Corbett filed a criminal subpoena against Twitter ordering them to divulge "any and all subscriber information" of the person(s) behind two accounts that were criticizing the Republican candidate.