Convert integers to blink::mojom::ConsoleMessageLevel where feasible.

In cases where the code treats the logging level as an int, we
explicitly convert ConsoleMessageLevel-->logging::LogSeverity, to
preserve the current behavior without relying on ConsoleMessageLevel
and logging::LogSeverity enum values being kept in sync.

TBR=rdevlin.cronin@chromium.org,thakis@chromium.org,clamy@chromium.org,jinsukkim@chromium.org,seantopping@chromium.org

Bug: 786836
Change-Id: Ibfa46371d9e1e3b26aff223fc395ea47ce1cc911
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1571663
Commit-Queue: Lowell Manners <lowell@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653968}
41 files changed