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

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 e71cc2e5605c65124dcb65cca79de0d979828dd2..1462506f64d43f8ed8c1b3289b4f3d744c3f06b1 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -1424,7 +1424,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)
{
@@ -1468,7 +1467,7 @@ void WebLocalFrameImpl::setCoreFrame(LocalFrame* frame)
providePushControllerTo(*m_frame, m_client->pushClient());
provideNotificationPermissionClientTo(*m_frame, NotificationPermissionClientImpl::create());
- provideUserMediaTo(*m_frame, &m_userMediaClientImpl);
+ provideUserMediaTo(*m_frame, UserMediaClientImpl::create(m_client->userMediaClient()));
dcheng 2016/08/17 02:32:47 Can m_client be null here? It's hard to tell. (Pe
haraken 2016/08/17 02:41:27 Yeah, as far as I look at line 1466 and line 1480
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