Index: content/renderer/media/rtc_peer_connection_handler.cc |
diff --git a/content/renderer/media/rtc_peer_connection_handler.cc b/content/renderer/media/rtc_peer_connection_handler.cc |
index 37b9d05cf8ecaee67b048bbefe03ff8a552d94b4..4789fcbfd3dc9a8fe10f9fe94836d59324ef6e1f 100644 |
--- a/content/renderer/media/rtc_peer_connection_handler.cc |
+++ b/content/renderer/media/rtc_peer_connection_handler.cc |
@@ -392,7 +392,11 @@ class CreateSessionDescriptionRequest |
protected: |
~CreateSessionDescriptionRequest() override { |
- DCHECK(main_thread_->BelongsToCurrentThread()); |
+ // This object is reference counted and its callback methods |OnSuccess| and |
+ // |OnFailure| will be invoked on libjingle's signaling thread and posted to |
+ // the main thread. Since the main thread may complete before the signaling |
+ // thread has deferenced this object there is no guarantee that this object |
+ // is destructed on the main thread. |
DLOG_IF(ERROR, !webkit_request_.isNull()) |
<< "CreateSessionDescriptionRequest not completed. Shutting down?"; |
} |
@@ -441,7 +445,11 @@ class SetSessionDescriptionRequest |
protected: |
~SetSessionDescriptionRequest() override { |
- DCHECK(main_thread_->BelongsToCurrentThread()); |
+ // This object is reference counted and its callback methods |OnSuccess| and |
+ // |OnFailure| will be invoked on libjingle's signaling thread and posted to |
+ // the main thread. Since the main thread may complete before the signaling |
+ // thread has deferenced this object there is no guarantee that this object |
+ // is destructed on the main thread. |
DLOG_IF(ERROR, !webkit_request_.isNull()) |
<< "SetSessionDescriptionRequest not completed. Shutting down?"; |
} |