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

Unified Diff: base/metrics/sparse_histogram.cc

Issue 655003004: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: base/metrics/sparse_histogram.cc
diff --git a/base/metrics/sparse_histogram.cc b/base/metrics/sparse_histogram.cc
index 737ccad72f23553837ffebf47c2c4eaf59213ed5..773eeb6273c5f8feef7eb77b545cf978d882a223 100644
--- a/base/metrics/sparse_histogram.cc
+++ b/base/metrics/sparse_histogram.cc
@@ -57,7 +57,7 @@ scoped_ptr<HistogramSamples> SparseHistogram::SnapshotSamples() const {
base::AutoLock auto_lock(lock_);
snapshot->Add(samples_);
- return snapshot.PassAs<HistogramSamples>();
+ return snapshot.Pass();
}
void SparseHistogram::AddSamples(const HistogramSamples& samples) {

Powered by Google App Engine
This is Rietveld 408576698