Totten leaves office having led efforts to curb gun violence, violence against women and children, public corruption, and consumer fraud among other battles.