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

Unified Diff: components/browsing_data/core/counters/browsing_data_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/browsing_data_counter.cc
diff --git a/components/browsing_data/core/counters/browsing_data_counter.cc b/components/browsing_data/core/counters/browsing_data_counter.cc
index 26a374ac075283ade1220ad0a2e99b352fa5cfb9..1af879c6576b400ca07fc1d66862630e5258ec0e 100644
--- a/components/browsing_data/core/counters/browsing_data_counter.cc
+++ b/components/browsing_data/core/counters/browsing_data_counter.cc
@@ -45,14 +45,14 @@ void BrowsingDataCounter::Restart() {
if (!pref_service_->GetBoolean(GetPrefName()))
return;
- callback_.Run(base::WrapUnique(new Result(this)));
+ callback_.Run(base::MakeUnique<Result>(this));
Count();
}
void BrowsingDataCounter::ReportResult(ResultInt value) {
DCHECK(initialized_);
- callback_.Run(base::WrapUnique(new FinishedResult(this, value)));
+ callback_.Run(base::MakeUnique<FinishedResult>(this, value));
}
void BrowsingDataCounter::ReportResult(std::unique_ptr<Result> result) {
« no previous file with comments | « components/bookmarks/browser/bookmark_index_unittest.cc ('k') | components/browsing_data/core/counters/history_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698