commit | 88962c06dc856db08d386c29a6f254a2cc8b5e37 | [log] [tgz] |
---|---|---|
author | Sylvain Defresne <sdefresne@chromium.org> | Mon May 06 10:20:49 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon May 06 10:20:49 2019 |
tree | 1adb111475de58294be3535cc0046e61b8354b3e | |
parent | 690c8b2684572fdeef6faa635cb8df1135374cac [diff] |
Convert content suggestion helper function away from old API Convert ParseJson to use base::JSONReader::ReadToValue that return a base::Optional<base::Value> instead of the deprecated function. Use base::Value::ToUniquePtrValue to easily find the conversion to std::unique_ptr<base::Value> when ntp_snippets::SuccessCallback has been converted to take the base::Value by reference. Bug: 646113, 925165 Change-Id: I0ffb11fb042e7ef176f864c08d0af182f4d38f58 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1594531 Reviewed-by: Eric Noyau <noyau@chromium.org> Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/master@{#656752}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .