Cleanup interfaces used to deliver notifications about MediaStream state from content to chrome.
1. Added MediaStreamUI interface that is used by the content layer to
deliver notifications about state of each particular stream to the chrome.
2. Removed corresponding notifications from content::MediaObserver interface.
3. Cleaned up MediaStreamUIController, so now it always uses WebContents
pointers to identify tabs.
Review URL: https://chromiumcodereview.appspot.com/13695002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197038 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index d0eb75a..3887e533 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1571,7 +1571,7 @@
if (delegate_)
delegate_->RequestMediaAccessPermission(this, request, callback);
else
- callback.Run(MediaStreamDevices());
+ callback.Run(MediaStreamDevices(), scoped_ptr<MediaStreamUI>());
}
void WebContentsImpl::UpdatePreferredSize(const gfx::Size& pref_size) {