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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
diff --git a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
index 6042681340577de902849eb09263ca4cee159578..a8c497630e017ce3502f6b8e8203a9036f340389 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
+++ b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
@@ -50,7 +50,6 @@
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
#include "wtf/ASCIICType.h"
-#include "wtf/PtrUtil.h"
#include <cmath>
#include <limits>
@@ -332,7 +331,7 @@ MediaKeySession::MediaKeySession(ScriptState* scriptState, MediaKeys* mediaKeys,
// initializeNewSession() is called in response to the user calling
// generateRequest().
WebContentDecryptionModule* cdm = mediaKeys->contentDecryptionModule();
- m_session = wrapUnique(cdm->createSession());
+ m_session = adoptPtr(cdm->createSession());
m_session->setClientInterface(this);
// From https://w3c.github.io/encrypted-media/#createSession:

Powered by Google App Engine
This is Rietveld 408576698