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

Unified Diff: base/metrics/histogram_snapshot_manager.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 Created 4 years, 8 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
« no previous file with comments | « base/metrics/histogram_snapshot_manager.h ('k') | base/metrics/histogram_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram_snapshot_manager.cc
diff --git a/base/metrics/histogram_snapshot_manager.cc b/base/metrics/histogram_snapshot_manager.cc
index 32dd4e67e36ad196e72555f5df2b3aba5c20b75d..930fa0941efc9aab609dba80d620cdd8102e35f7 100644
--- a/base/metrics/histogram_snapshot_manager.cc
+++ b/base/metrics/histogram_snapshot_manager.cc
@@ -4,7 +4,8 @@
#include "base/metrics/histogram_snapshot_manager.h"
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/metrics/histogram_flattener.h"
#include "base/metrics/histogram_samples.h"
#include "base/metrics/statistics_recorder.h"
@@ -43,7 +44,7 @@ void HistogramSnapshotManager::PrepareDelta(HistogramBase* histogram) {
}
void HistogramSnapshotManager::PrepareDeltaTakingOwnership(
- scoped_ptr<HistogramBase> histogram) {
+ std::unique_ptr<HistogramBase> histogram) {
PrepareSamples(histogram.get(), histogram->SnapshotDelta());
owned_histograms_.push_back(std::move(histogram));
}
@@ -53,7 +54,7 @@ void HistogramSnapshotManager::PrepareAbsolute(const HistogramBase* histogram) {
}
void HistogramSnapshotManager::PrepareAbsoluteTakingOwnership(
- scoped_ptr<const HistogramBase> histogram) {
+ std::unique_ptr<const HistogramBase> histogram) {
PrepareSamples(histogram.get(), histogram->SnapshotSamples());
owned_histograms_.push_back(std::move(histogram));
}
@@ -96,7 +97,7 @@ void HistogramSnapshotManager::FinishDeltas() {
void HistogramSnapshotManager::PrepareSamples(
const HistogramBase* histogram,
- scoped_ptr<HistogramSamples> samples) {
+ std::unique_ptr<HistogramSamples> samples) {
DCHECK(histogram_flattener_);
// Get information known about this histogram.
« no previous file with comments | « base/metrics/histogram_snapshot_manager.h ('k') | base/metrics/histogram_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698