std::make_unique should be preferred than base::WrapUnique in Payments.
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: I0e13e0fa0088e3f9adcbcbbee341eea04a3f2307 Reviewed-on: https://chromium-review.googlesource.com/1034048Reviewed-by:Jinho Bang <jinho.bang@samsung.com> Commit-Queue: Jinho Bang <jinho.bang@samsung.com> Cr-Commit-Position: refs/heads/master@{#554793}
Showing
Please register or sign in to comment