A longtime Toronto police officer pleaded guilty to professional misconduct on Wednesday after he was found to have engaged in unwanted contact with a domestic violence victim that included calling a shelter she was staying at after she blocked his number.