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

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

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
Index: media/cast/logging/stats_event_subscriber.h
diff --git a/media/cast/logging/stats_event_subscriber.h b/media/cast/logging/stats_event_subscriber.h
index 280519f5f34d1916ab0deac11696c1f523efb4ea..735695bfe7973f3b2001958a6cd511d21c232966 100644
--- a/media/cast/logging/stats_event_subscriber.h
+++ b/media/cast/logging/stats_event_subscriber.h
@@ -8,10 +8,11 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
+
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/linked_ptr.h"
-#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_checker.h"
#include "base/time/tick_clock.h"
#include "media/cast/logging/logging_defines.h"
@@ -47,7 +48,7 @@ class StatsEventSubscriber : public RawEventSubscriber {
// The inner dictionary consists of string - double entries, where the string
// describes the name of the stat, and the double describes
// the value of the stat. See CastStat and StatsMap below.
- scoped_ptr<base::DictionaryValue> GetStats() const;
+ std::unique_ptr<base::DictionaryValue> GetStats() const;
// Resets stats in this object.
void Reset();
@@ -102,7 +103,7 @@ class StatsEventSubscriber : public RawEventSubscriber {
void Reset();
- scoped_ptr<base::ListValue> GetHistogram() const;
+ std::unique_ptr<base::ListValue> GetHistogram() const;
private:
int64_t min_;
« no previous file with comments | « media/cast/logging/simple_event_subscriber_unittest.cc ('k') | media/cast/logging/stats_event_subscriber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698