| commit | 275101a142d7d9c195c9c08a5af40ef9d070edd7 | [log] [tgz] |
|---|---|---|
| author | Ben Chan <[email protected]> | Tue Feb 07 23:49:39 2017 |
| committer | chrome-bot <[email protected]> | Wed Feb 08 06:27:03 2017 |
| tree | 0e7e8c298e59bc29149fcc19b2834f051eb913b5 | |
| parent | aefc886d79a17c983df42a462e3a32a9175a42a5 [diff] |
Simplify capturing of base::JSONReader::Read() return value. base::JSONReader::Read() returns a std::unique_ptr<Value>, which can simply be captured into a std::unique_ptr<Value> variable instead of calling .release() on the returned unique_ptr and constructing a unique_ptr from the released raw pointer. BUG=None TEST=Run unit tests. Change-Id: I6be2fb14676be31ae578afceda2410a4b5f6af5e Reviewed-on: https://chromium-review.googlesource.com/438760 Commit-Ready: Ben Chan <[email protected]> Tested-by: Ben Chan <[email protected]> Reviewed-by: Dan Erat <[email protected]>