Kamala Harris won an attorney general nomination in California based on the strength of her stance on online privacy.