A United Airlines passenger plane diverted from Los Angeles to Salt Lake City after pilots saw a crack in the windscreen, officials said.