std::make_unique should be preferred than base::WrapUnique in android
std::make_unique<Type>(...) and base::WrapUnique<new Type(...)) are equivalent but std::make_unique should be preferred, because it is harder to use unsafely than base::WrapUnique. Ref: https://www.chromium.org/developers/coding-style/cpp-dos-and-donts#TOC-Prefer-MakeUnique-to-WrapUnique Bug: None Change-Id: I6b8c379a74856162ae2f1f1faa772554bfc4fbb4 Reviewed-on: https://chromium-review.googlesource.com/1034049Reviewed-by:Ted Choc <tedchoc@chromium.org> Commit-Queue: Ted Choc <tedchoc@chromium.org> Cr-Commit-Position: refs/heads/master@{#557289}
Showing
Please register or sign in to comment