Convert json_parser.mojom to use mojo/public/mojom/base/values.mojom
This change also converts the minimum necessary amount of C++ code to pass
objects of base::Value by value instead of std::unique_ptr.
This change also modifies the union condition of DataView template to add
a check for is_null and pass a nullptr to Deserialize so that optional
values are handled correctly.
Bug: 646113,799482
Change-Id: I09575f4e593741370b537ede8103a3c3b196dfc7
Reviewed-on: https://chromium-review.googlesource.com/1011206
Reviewed-by: Ken Rockot <rockot@chromium.org>
Reviewed-by: Jay Civelli <jcivelli@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553216}
CrOS-Libchrome-Original-Commit: 2378337372087365e50a42f03a050a7844240e75
1 file changed