Index: content/browser/media/cdm/browser_cdm_manager.cc |
diff --git a/content/browser/media/cdm/browser_cdm_manager.cc b/content/browser/media/cdm/browser_cdm_manager.cc |
index b2bc2c97c2ec3adeb336a29b46efac2aaa3000ef..c50184af2487736dbc9d54c10ca253d1081ef84c 100644 |
--- a/content/browser/media/cdm/browser_cdm_manager.cc |
+++ b/content/browser/media/cdm/browser_cdm_manager.cc |
@@ -23,6 +23,7 @@ |
#include "content/public/browser/render_frame_host.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/render_process_host_observer.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/browser/web_contents.h" |
#include "media/base/cdm_config.h" |
#include "media/base/cdm_factory.h" |
@@ -291,9 +292,9 @@ media::CdmFactory* BrowserCdmManager::GetCdmFactory() { |
if (!cdm_factory_) { |
// Obtain http request context for the current render process. |
net::URLRequestContextGetter* context_getter = |
- RenderProcessHost::FromID(render_process_id_) |
- ->GetBrowserContext() |
- ->GetRequestContext(); |
+ BrowserContext::GetDefaultStoragePartition( |
+ RenderProcessHost::FromID(render_process_id_)-> |
+ GetBrowserContext())->GetURLRequestContext(); |
DCHECK(context_getter); |
cdm_factory_.reset(new media::AndroidCdmFactory( |