The last poll taken ahead of Election Day showed the race was too close to call, and that proved true late into Election Night. With nearly half of the precincts reporting, Cooley and Harris each had 45-percent of the vote. Statewide, Cooley was the only Republican with a chance to take a Democratic rival.
Cooley, has much better name recognition in the population rich Southern part of the state. He is known for his moderate stance toward California's three-strikes law.
Harris had some real political heavy weights in her corner. President Barack Obama himself held a fundraiser for Harris just a few weeks ago on the Peninsula.
Harris and the president have been close allies since before he was president. She was an early supporter and publicly choose Obama over Hillary Clinton unlike many of her San Francisco counterparts early in the presidential race of 2008.
The two city prosecutors are vying to replace the current attorney general and Governor-elect Jerry Brown, who is running for governor.