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

Unified Diff: media/base/media_log_event.h

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: . 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/base/media_log_event.h
diff --git a/media/base/media_log_event.h b/media/base/media_log_event.h
index 51933f3a2a97f616a35b50202ca84577459aaafa..a5427fbd4b87bb5f99a24546c12b8adb520e052f 100644
--- a/media/base/media_log_event.h
+++ b/media/base/media_log_event.h
@@ -6,6 +6,7 @@
#define MEDIA_BASE_MEDIA_LOG_EVENT_H_
#include <stdint.h>
+#include <memory>
#include "base/time/time.h"
#include "base/values.h"
@@ -22,7 +23,7 @@ struct MediaLogEvent {
MediaLogEvent& operator=(const MediaLogEvent& event) {
id = event.id;
type = event.type;
- scoped_ptr<base::DictionaryValue> event_copy(event.params.DeepCopy());
+ std::unique_ptr<base::DictionaryValue> event_copy(event.params.DeepCopy());
params.Swap(event_copy.get());
time = event.time;
return *this;

Powered by Google App Engine
This is Rietveld 408576698