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

Unified Diff: media/base/android/media_player_android.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/android/media_player_android.h
diff --git a/media/base/android/media_player_android.h b/media/base/android/media_player_android.h
index 68e3978cf678a2491dac2cc6a3f0cd49cb1adf13..176731fe2be047d1dead0fe763c228e28b85d120 100644
--- a/media/base/android/media_player_android.h
+++ b/media/base/android/media_player_android.h
@@ -6,11 +6,12 @@
#define MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_
#include <jni.h>
+
+#include <memory>
#include <string>
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "media/base/android/media_player_listener.h"
@@ -188,7 +189,7 @@ class MEDIA_EXPORT MediaPlayerAndroid {
GURL frame_url_;
// Listener object that listens to all the media player events.
- scoped_ptr<MediaPlayerListener> listener_;
+ std::unique_ptr<MediaPlayerListener> listener_;
// Media session ID assigned to this player.
int media_session_id_;

Powered by Google App Engine
This is Rietveld 408576698