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

Unified Diff: components/metrics/metrics_service.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/metrics_service.cc
diff --git a/components/metrics/metrics_service.cc b/components/metrics/metrics_service.cc
index a472188f30ed9a2e822efdca722ea963a7d50573..2c6b8ef0a2465233e695fcf8420dda38c2067e36 100644
--- a/components/metrics/metrics_service.cc
+++ b/components/metrics/metrics_service.cc
@@ -1140,9 +1140,8 @@ void MetricsService::GetSyntheticFieldTrialsOlderThan(
std::unique_ptr<MetricsLog> MetricsService::CreateLog(
MetricsLog::LogType log_type) {
- return base::WrapUnique(new MetricsLog(state_manager_->client_id(),
- session_id_, log_type, client_,
- local_state_));
+ return base::MakeUnique<MetricsLog>(state_manager_->client_id(), session_id_,
+ log_type, client_, local_state_);
}
void MetricsService::RecordCurrentEnvironment(MetricsLog* log) {

Powered by Google App Engine
This is Rietveld 408576698