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

Unified Diff: media/cast/logging/stats_event_subscriber.cc

Issue 1905763002: Convert //media/cast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « media/cast/logging/stats_event_subscriber.h ('k') | media/cast/logging/stats_event_subscriber_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/logging/stats_event_subscriber.cc
diff --git a/media/cast/logging/stats_event_subscriber.cc b/media/cast/logging/stats_event_subscriber.cc
index 0e00729d2d7da78926f6ec4782bd4fe69cba3547..8afefbb81f20237ae6ddbf9fb427252e54f83cc3 100644
--- a/media/cast/logging/stats_event_subscriber.cc
+++ b/media/cast/logging/stats_event_subscriber.cc
@@ -62,11 +62,11 @@ void StatsEventSubscriber::SimpleHistogram::Reset() {
buckets_.assign(buckets_.size(), 0);
}
-scoped_ptr<base::ListValue>
+std::unique_ptr<base::ListValue>
StatsEventSubscriber::SimpleHistogram::GetHistogram() const {
- scoped_ptr<base::ListValue> histo(new base::ListValue);
+ std::unique_ptr<base::ListValue> histo(new base::ListValue);
- scoped_ptr<base::DictionaryValue> bucket(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> bucket(new base::DictionaryValue);
if (buckets_.front()) {
bucket->SetInteger(base::StringPrintf("<%" PRId64, min_),
@@ -223,12 +223,12 @@ void StatsEventSubscriber::UpdateFirstLastEventTime(base::TimeTicks timestamp,
}
}
-scoped_ptr<base::DictionaryValue> StatsEventSubscriber::GetStats() const {
+std::unique_ptr<base::DictionaryValue> StatsEventSubscriber::GetStats() const {
StatsMap stats_map;
GetStatsInternal(&stats_map);
- scoped_ptr<base::DictionaryValue> ret(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> ret(new base::DictionaryValue);
- scoped_ptr<base::DictionaryValue> stats(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> stats(new base::DictionaryValue);
for (StatsMap::const_iterator it = stats_map.begin(); it != stats_map.end();
++it) {
// Round to 3 digits after the decimal point.
« no previous file with comments | « media/cast/logging/stats_event_subscriber.h ('k') | media/cast/logging/stats_event_subscriber_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698