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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device.cc

Issue 193303002: WeakPtr destruction order cleanup: media edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 9 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: content/browser/media/capture/web_contents_video_capture_device.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device.cc b/content/browser/media/capture/web_contents_video_capture_device.cc
index 1cf232388850fa13a07c6dd561fa414ac01cbb90..b25d316728001be8544187e287df484baa02113b 100644
--- a/content/browser/media/capture/web_contents_video_capture_device.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device.cc
@@ -310,6 +310,7 @@ class WebContentsCaptureMachine
scoped_ptr<ContentCaptureSubscription> subscription_;
// Weak pointer factory used to invalidate callbacks.
+ // NOTE: Weak pointers must be invalidated before all other member variables.
base::WeakPtrFactory<WebContentsCaptureMachine> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(WebContentsCaptureMachine);
« no previous file with comments | « content/browser/media/android/media_resource_getter_impl.cc ('k') | content/renderer/media/android/media_source_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698