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

Unified Diff: base/debug/activity_analyzer.cc

Issue 2258713003: 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, 3 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 | « base/containers/mru_cache_unittest.cc ('k') | base/debug/activity_analyzer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/activity_analyzer.cc
diff --git a/base/debug/activity_analyzer.cc b/base/debug/activity_analyzer.cc
index 438c24186f33ba871cdb53ea257c1cc5d3048585..79d513b5af6c61a64b2ab4d0188c51db8fe2b329 100644
--- a/base/debug/activity_analyzer.cc
+++ b/base/debug/activity_analyzer.cc
@@ -52,10 +52,9 @@ std::unique_ptr<GlobalActivityAnalyzer> GlobalActivityAnalyzer::CreateWithFile(
if (!FilePersistentMemoryAllocator::IsFileAcceptable(*mmfile, true))
return nullptr;
- return WrapUnique(new GlobalActivityAnalyzer(
- WrapUnique(new FilePersistentMemoryAllocator(
- std::move(mmfile), 0, 0, base::StringPiece(),
- true))));
+ return WrapUnique(
+ new GlobalActivityAnalyzer(MakeUnique<FilePersistentMemoryAllocator>(
+ std::move(mmfile), 0, 0, base::StringPiece(), true)));
}
#endif // !defined(OS_NACL)
« no previous file with comments | « base/containers/mru_cache_unittest.cc ('k') | base/debug/activity_analyzer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698