Add error handling in CreateNameForAddress of the MdnsResponder service.

This adds error handling of invalid inputs to the implementation of
the above service API in addition to DCHECKs.

Bug: 901311
Change-Id: I93bb43b79bcbfc78e8564567dc4ddf29751a7375
Reviewed-on: https://chromium-review.googlesource.com/c/1377502
Reviewed-by: Eric Orth <ericorth@chromium.org>
Commit-Queue: Qingsi Wang <qingsi@google.com>
Cr-Commit-Position: refs/heads/master@{#623806}
2 files changed