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

Unified Diff: base/metrics/histogram_snapshot_manager.h

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_samples.cc ('k') | base/metrics/histogram_snapshot_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram_snapshot_manager.h
diff --git a/base/metrics/histogram_snapshot_manager.h b/base/metrics/histogram_snapshot_manager.h
index d44db194360a95ef606e214b4ef7f6e47820e681..42dbac225d830838db4f998020265ec8fe03e380 100644
--- a/base/metrics/histogram_snapshot_manager.h
+++ b/base/metrics/histogram_snapshot_manager.h
@@ -66,10 +66,10 @@ class BASE_EXPORT HistogramSnapshotManager {
// automatically delete the histogram once it is "finished".
void StartDeltas();
void PrepareDelta(HistogramBase* histogram);
- void PrepareDeltaTakingOwnership(scoped_ptr<HistogramBase> histogram);
+ void PrepareDeltaTakingOwnership(std::unique_ptr<HistogramBase> histogram);
void PrepareAbsolute(const HistogramBase* histogram);
void PrepareAbsoluteTakingOwnership(
- scoped_ptr<const HistogramBase> histogram);
+ std::unique_ptr<const HistogramBase> histogram);
void FinishDeltas();
private:
@@ -100,7 +100,7 @@ class BASE_EXPORT HistogramSnapshotManager {
// Capture and hold samples from a histogram. This does all the heavy
// lifting for PrepareDelta() and PrepareAbsolute().
void PrepareSamples(const HistogramBase* histogram,
- scoped_ptr<HistogramSamples> samples);
+ std::unique_ptr<HistogramSamples> samples);
// Try to detect and fix count inconsistency of logged samples.
void InspectLoggedSamplesInconsistency(
@@ -113,7 +113,7 @@ class BASE_EXPORT HistogramSnapshotManager {
// Collection of histograms of which ownership has been passed to this
// object. They will be deleted by FinishDeltas().
- std::vector<scoped_ptr<const HistogramBase>> owned_histograms_;
+ std::vector<std::unique_ptr<const HistogramBase>> owned_histograms_;
// Indicates if deltas are currently being prepared.
bool preparing_deltas_;
« no previous file with comments | « base/metrics/histogram_samples.cc ('k') | base/metrics/histogram_snapshot_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698