Repeatedly declining to say whether she would rule out a job in the new administration , she said , " I am 100 % committed to running for attorney general for the state of California . " Harris was elected in 2003 , becoming the first female district attorney in San Francisco and the first black woman in California to be chosen as district attorney .