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 <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
1 file changed
tree: 0e7e8c298e59bc29149fcc19b2834f051eb913b5
  1. Android.mk
  2. MODULE_LICENSE_BSD
  3. NOTICE
  4. chromeos-dbus-bindings/