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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2206533003: Refactor lifetime management of UserMediaController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 4 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 | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index fc1a846d6d6379fd01d8e89ad50fd1f2a924087c..d4c6be6d73d4223e14597f9a6c8af8bef469e385 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -1450,7 +1450,6 @@ WebLocalFrameImpl::WebLocalFrameImpl(WebTreeScopeType scope, WebFrameClient* cli
, m_autofillClient(0)
, m_contentSettingsClient(0)
, m_inputEventsScaleFactorForEmulation(1)
- , m_userMediaClientImpl(this)
, m_webDevToolsFrontend(0)
, m_selfKeepAlive(this)
{
@@ -1490,11 +1489,12 @@ void WebLocalFrameImpl::setCoreFrame(LocalFrame* frame)
if (!m_frame)
return;
- if (m_client)
+ if (m_client) {
providePushControllerTo(*m_frame, m_client->pushClient());
+ provideUserMediaTo(*m_frame, UserMediaClientImpl::create(m_client->userMediaClient()));
+ }
provideNotificationPermissionClientTo(*m_frame, NotificationPermissionClientImpl::create());
- provideUserMediaTo(*m_frame, &m_userMediaClientImpl);
provideIndexedDBClientTo(*m_frame, IndexedDBClientImpl::create());
provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create());
provideNavigatorContentUtilsTo(*m_frame, NavigatorContentUtilsClientImpl::create(this));
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698