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

Unified Diff: Source/web/WebDOMMediaStreamTrack.cpp

Issue 168963003: Make WebPrivatePtr capable of wrapping garbage collected objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Temporarily drop back to using .reset() instead of nullptr. Created 6 years, 10 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: Source/web/WebDOMMediaStreamTrack.cpp
diff --git a/Source/web/WebDOMMediaStreamTrack.cpp b/Source/web/WebDOMMediaStreamTrack.cpp
index 82d64ec26ec9f121dedbab4ca92047217a6507e9..a5767f5b5e6cd042b55d12592396d90438ba50b7 100644
--- a/Source/web/WebDOMMediaStreamTrack.cpp
+++ b/Source/web/WebDOMMediaStreamTrack.cpp
@@ -52,7 +52,8 @@ WebDOMMediaStreamTrack WebDOMMediaStreamTrack::fromV8Value(v8::Handle<v8::Value>
void WebDOMMediaStreamTrack::reset()
{
- m_private = 0;
+ // FIXME: replace reset() with nullptr assignment (cf. https://codereview.chromium.org/170603003/ )
+ m_private.reset();
}
void WebDOMMediaStreamTrack::assign(const WebDOMMediaStreamTrack& b)

Powered by Google App Engine
This is Rietveld 408576698