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); |