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

Unified Diff: components/browsing_data/core/counters/history_counter.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/browsing_data/core/counters/history_counter.cc
diff --git a/components/browsing_data/core/counters/history_counter.cc b/components/browsing_data/core/counters/history_counter.cc
index 443641536eeef6aa01c084cdc047c0f88f20241b..26e652df47a34821c1be185d9cfaa7bb807c6e6c 100644
--- a/components/browsing_data/core/counters/history_counter.cc
+++ b/components/browsing_data/core/counters/history_counter.cc
@@ -147,8 +147,8 @@ void HistoryCounter::MergeResults() {
if (!local_counting_finished_ || !web_counting_finished_)
return;
- ReportResult(base::WrapUnique(
- new HistoryResult(this, local_result_, has_synced_visits_)));
+ ReportResult(
+ base::MakeUnique<HistoryResult>(this, local_result_, has_synced_visits_));
}
HistoryCounter::HistoryResult::HistoryResult(const HistoryCounter* source,
« no previous file with comments | « components/browsing_data/core/counters/browsing_data_counter.cc ('k') | components/cast_certificate/cast_cert_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698