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

Unified Diff: content/browser/media/android/provision_fetcher_impl.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/android/provision_fetcher_impl.cc
diff --git a/content/browser/media/android/provision_fetcher_impl.cc b/content/browser/media/android/provision_fetcher_impl.cc
index 6ca51d7c4176b48c6aa21b39e10dd867130266ac..38d8da66153e1f23389abceee79002847a52d87b 100644
--- a/content/browser/media/android/provision_fetcher_impl.cc
+++ b/content/browser/media/android/provision_fetcher_impl.cc
@@ -8,6 +8,7 @@
#include "content/public/browser/browser_context.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
+#include "content/public/browser/storage_partition.h"
#include "net/url_request/url_request_context_getter.h"
namespace content {
@@ -17,7 +18,9 @@ void ProvisionFetcherImpl::Create(
RenderFrameHost* render_frame_host,
mojo::InterfaceRequest<media::interfaces::ProvisionFetcher> request) {
net::URLRequestContextGetter* context_getter =
- render_frame_host->GetProcess()->GetBrowserContext()->GetRequestContext();
+ BrowserContext::GetDefaultStoragePartition(
+ render_frame_host->GetProcess()->GetBrowserContext())->
+ GetURLRequestContext();
DCHECK(context_getter);
// The created object is strongly bound to (and owned by) the pipe.
« no previous file with comments | « content/browser/media/android/media_resource_getter_impl.cc ('k') | content/browser/media/cdm/browser_cdm_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698