H. M. Niles, Portland Chief of Police