Pass error messages from native messaging to web-app.
This replaces a single onDone(result) callback with a pair (onDone(), onError(message, location)). The error message and location are communicated via native messaging as additional parameters, which should ensure backwards-compatibility in both directions.
BUG=
517176
Committed:
https://crrev.com/a1826488343b1923906c2b8bbd194eef51cfda26
Cr-Commit-Position: refs/heads/master@{#344622}