Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1421)

Unified Diff: components/exo/shared_memory_unittest.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/exo/shared_memory.cc ('k') | components/exo/sub_surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shared_memory_unittest.cc
diff --git a/components/exo/shared_memory_unittest.cc b/components/exo/shared_memory_unittest.cc
index a3f3730b0a6431b2ff6d1e1e993a5d7bae9f99d0..567f7a375e02dd6f41a477c1f3ef8ba92e79d437 100644
--- a/components/exo/shared_memory_unittest.cc
+++ b/components/exo/shared_memory_unittest.cc
@@ -24,7 +24,7 @@ std::unique_ptr<SharedMemory> CreateSharedMemory(size_t size) {
base::SharedMemoryHandle handle =
base::SharedMemory::DuplicateHandle(shared_memory->handle());
DCHECK(base::SharedMemory::IsHandleValid(handle));
- return base::WrapUnique(new SharedMemory(handle));
+ return base::MakeUnique<SharedMemory>(handle);
}
TEST_F(SharedMemoryTest, CreateBuffer) {
« no previous file with comments | « components/exo/shared_memory.cc ('k') | components/exo/sub_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698