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

Unified Diff: components/metrics/file_metrics_provider.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
Index: components/metrics/file_metrics_provider.cc
diff --git a/components/metrics/file_metrics_provider.cc b/components/metrics/file_metrics_provider.cc
index 14d853a14f87599e79784c35a9d2629c2426977b..aa81a0cd1f02c55dd7255bc17711c9323213dafe 100644
--- a/components/metrics/file_metrics_provider.cc
+++ b/components/metrics/file_metrics_provider.cc
@@ -325,8 +325,8 @@ FileMetricsProvider::AccessResult FileMetricsProvider::CheckAndMapMetricSource(
// Create an allocator for the mapped file. Ownership passes to the allocator.
source->allocator.reset(new base::PersistentHistogramAllocator(
- base::WrapUnique(new base::FilePersistentMemoryAllocator(
- std::move(mapped), 0, 0, base::StringPiece(), read_only))));
+ base::MakeUnique<base::FilePersistentMemoryAllocator>(
+ std::move(mapped), 0, 0, base::StringPiece(), read_only)));
return ACCESS_RESULT_SUCCESS;
}
« no previous file with comments | « components/invalidation/impl/ticl_invalidation_service_unittest.cc ('k') | components/metrics/metrics_log_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698