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

Unified Diff: content/renderer/media/user_media_client_impl.cc

Issue 843943002: Refactor VideoCapturerDelegate to use WeakPtr instead of refcount. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix source_formats_callback_.reset Created 5 years, 11 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
« no previous file with comments | « content/renderer/media/media_stream_video_capturer_source.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/user_media_client_impl.cc
diff --git a/content/renderer/media/user_media_client_impl.cc b/content/renderer/media/user_media_client_impl.cc
index 16d439a59966ee51186e2218f52d7db263dd5cf0..316d62ae7bba279dcc6bb3fdfc90ca31dd3cd028 100644
--- a/content/renderer/media/user_media_client_impl.cc
+++ b/content/renderer/media/user_media_client_impl.cc
@@ -583,7 +583,7 @@ MediaStreamVideoSource* UserMediaClientImpl::CreateVideoSource(
return new content::MediaStreamVideoCapturerSource(
device,
stop_callback,
- new VideoCapturerDelegate(device));
+ scoped_ptr<VideoCapturerDelegate>(new VideoCapturerDelegate(device)));
}
void UserMediaClientImpl::CreateVideoTracks(
« no previous file with comments | « content/renderer/media/media_stream_video_capturer_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698