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

Unified Diff: content/browser/media/media_web_contents_observer.cc

Issue 1407933010: media: Make MediaKeys ref-counted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 years, 1 month 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
Index: content/browser/media/media_web_contents_observer.cc
diff --git a/content/browser/media/media_web_contents_observer.cc b/content/browser/media/media_web_contents_observer.cc
index 8e48e6878fc976a86faf837894ab68c1ba16418a..c17a9ff23c32cc3674a1ce1bc44609e58ec7c75f 100644
--- a/content/browser/media/media_web_contents_observer.cc
+++ b/content/browser/media/media_web_contents_observer.cc
@@ -141,7 +141,7 @@ void MediaWebContentsObserver::OnSetCdm(RenderFrameHost* render_frame_host,
return;
}
- media::BrowserCdm* cdm =
+ scoped_refptr<media::MediaKeys> cdm =
browser_cdm_manager->GetCdm(render_frame_host->GetRoutingID(), cdm_id);
if (!cdm) {
NOTREACHED() << "OnSetCdm: CDM not found for " << cdm_id;
« no previous file with comments | « content/browser/media/cdm/browser_cdm_manager.cc ('k') | content/browser/renderer_host/render_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698