Index: content/renderer/media/media_stream_impl.cc |
diff --git a/content/renderer/media/media_stream_impl.cc b/content/renderer/media/media_stream_impl.cc |
index f3cf45fc18ef98c41fa2fd69faf836a01e702a3d..676b53711babbd4a98c4e231358bfc83b422bde1 100644 |
--- a/content/renderer/media/media_stream_impl.cc |
+++ b/content/renderer/media/media_stream_impl.cc |
@@ -19,6 +19,7 @@ |
#include "content/renderer/media/video_capture_impl_manager.h" |
#include "content/renderer/media/webrtc_uma_histograms.h" |
#include "media/base/message_loop_factory.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaStreamRegistry.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
@@ -111,7 +112,7 @@ void MediaStreamImpl::requestUserMedia( |
// Get the WebFrame that requested a MediaStream. |
// The frame is needed to tell the MediaStreamDispatcher when a stream goes |
// out of scope. |
- frame = WebKit::WebFrame::frameForCurrentContext(); |
+ frame = user_media_request.ownerDocument().frame(); |
DCHECK(frame); |
} |