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

Unified Diff: components/history/core/browser/visitsegment_database.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/history/core/browser/visitsegment_database.cc
diff --git a/components/history/core/browser/visitsegment_database.cc b/components/history/core/browser/visitsegment_database.cc
index 0e8244e33b0454ec5c4fefb231fb4a8d56a6bd7b..afe0712caad993080c4a3711503b28f01c7145d0 100644
--- a/components/history/core/browser/visitsegment_database.cc
+++ b/components/history/core/browser/visitsegment_database.cc
@@ -228,7 +228,7 @@ VisitSegmentDatabase::QuerySegmentUsage(
while (statement.Step()) {
SegmentID segment_id = statement.ColumnInt64(0);
if (segment_id != previous_segment_id) {
- segments.push_back(base::WrapUnique(new PageUsageData(segment_id)));
+ segments.push_back(base::MakeUnique<PageUsageData>(segment_id));
previous_segment_id = segment_id;
}

Powered by Google App Engine
This is Rietveld 408576698