Use std::make_unique in GN code.

- Replaces "base::MakeUnique" with "std::make_unique"
- Replaces "std::unique_ptr<...>(new ...)" with "std::make_unique"
- Replaces "unique_ptr.reset(new ...)" with "= std::make_unique"
- Adds "#include <memory>" in all files using this.

Fixes xcode generator unit tests under asan. It turns out the test was
checking for pointer equality (depending on duplicate string folding)
rather than doing string equality. This usually worked but doesn't
under our asan build.

Change-Id: Ibdffb2ee0d14f7ffbe938df4bb27f741ce004c0f
Reviewed-on: https://chromium-review.googlesource.com/775777
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Brett Wilson <brettw@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#517993}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3667991ece7e160bb9133e151c53c68f8466d2c9
34 files changed
tree: 5f555d59f6cc914219d037da8cd659d185fa8299
  1. tools/