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

Unified Diff: chrome/browser/metrics/subprocess_metrics_provider.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky 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
Index: chrome/browser/metrics/subprocess_metrics_provider.cc
diff --git a/chrome/browser/metrics/subprocess_metrics_provider.cc b/chrome/browser/metrics/subprocess_metrics_provider.cc
index 57aa9ae1344b3c46517db6a5953cc9c0f7fdc445..ca5ed86997ff20eed2fc3c24ded59d999c054aeb 100644
--- a/chrome/browser/metrics/subprocess_metrics_provider.cc
+++ b/chrome/browser/metrics/subprocess_metrics_provider.cc
@@ -160,9 +160,8 @@ void SubprocessMetricsProvider::RenderProcessReady(
host->TakeMetricsAllocator();
if (allocator) {
RegisterSubprocessAllocator(
- host->GetID(),
- WrapUnique(new base::PersistentHistogramAllocator(
- std::move(allocator))));
+ host->GetID(), base::MakeUnique<base::PersistentHistogramAllocator>(
+ std::move(allocator)));
}
}

Powered by Google App Engine
This is Rietveld 408576698