Add WrapUnique helper to wrap a raw pointer in a std::unique_ptr.

This is the equivalent of make_scoped_ptr in a post-scoped_ptr world. It
is not called MakeUniquePtr because C++14 adds a std::make_unique helper
with different semantics.

BUG=554522

Review URL: https://codereview.chromium.org/1513423002

Cr-Commit-Position: refs/heads/master@{#365079}


CrOS-Libchrome-Original-Commit: 2ba07d1f31f04391c83a53a2e49387de58b1ac2d
4 files changed
tree: a2367d5dc4285eb0a4d6bc87dae41231b977b55c
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/