Copy base::JSONReader::Read() to ReadDeprecated().

This is a temporary state to help migrate base::JSONReader::Read() to
return base::Optional<base::Value>. Once most callers have been migrated
to ReadDeprecated(), we can convert Read() to return
base::Optional<base::Value> instead of std::unique_ptr<base::Value>.

Mass migrate chrome/ to ReadDeprecated() here.

Do the same for ReadAndReturnError().


Change-Id: I7c4dd52f5b0c3ff20a7e69558b4b94e114bd430f
Reviewed-by: Jan Wilken Dörrie <>
Reviewed-by: Pavol Marko <>
Commit-Queue: Lei Zhang <>
Cr-Commit-Position: refs/heads/master@{#631876}
134 files changed