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

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

Issue 2007983006: Rename OwnPtr::clear() to reset() in modules/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 fb3d232d2a982c70b3cf828e12c90000d614a91e..a8c497630e017ce3502f6b8e8203a9036f340389 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
+++ b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
@@ -374,7 +374,7 @@ void MediaKeySession::dispose()
{
// Promptly clears a raw reference from content/ to an on-heap object
// so that content/ doesn't access it in a lazy sweeping phase.
- m_session.clear();
+ m_session.reset();
}
String MediaKeySession::sessionId() const
@@ -912,7 +912,7 @@ bool MediaKeySession::hasPendingActivity() const
void MediaKeySession::stop()
{
// Stop the CDM from firing any more events for this session.
- m_session.clear();
+ m_session.reset();
m_isClosed = true;
if (m_actionTimer.isActive())

Powered by Google App Engine
This is Rietveld 408576698