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

Unified Diff: Source/modules/mediastream/UserMediaRequest.cpp

Issue 791033003: Tidy up UserMediaController references from mediastream request objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix non-Oilpan compilation Created 6 years 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
« no previous file with comments | « Source/modules/mediastream/UserMediaRequest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediastream/UserMediaRequest.cpp
diff --git a/Source/modules/mediastream/UserMediaRequest.cpp b/Source/modules/mediastream/UserMediaRequest.cpp
index fbdf3f7d595165899ec8a42a12b634bf682ff8c9..21a65014b50aba2534f2b9704d4b5519ce7edc55 100644
--- a/Source/modules/mediastream/UserMediaRequest.cpp
+++ b/Source/modules/mediastream/UserMediaRequest.cpp
@@ -179,7 +179,7 @@ void UserMediaRequest::contextDestroyed()
{
if (m_controller) {
m_controller->cancelUserMediaRequest(this);
- m_controller = 0;
+ m_controller = nullptr;
}
ContextLifecycleObserver::contextDestroyed();
@@ -187,6 +187,7 @@ void UserMediaRequest::contextDestroyed()
void UserMediaRequest::trace(Visitor* visitor)
{
+ visitor->trace(m_controller);
visitor->trace(m_successCallback);
visitor->trace(m_errorCallback);
}
« no previous file with comments | « Source/modules/mediastream/UserMediaRequest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698