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

Unified Diff: content/browser/media/cdm/browser_cdm_manager.cc

Issue 1864583006: Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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
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(
« no previous file with comments | « content/browser/media/android/provision_fetcher_impl.cc ('k') | content/browser/renderer_host/render_view_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698