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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2469863010: Move all ProvisionFetcher classes out of android/ subdirectories. (Closed)
Patch Set: Another NON_EXPORTED_BASE. Created 4 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/media/android/provision_fetcher_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 19d576e522a785b5fcfd87a5a12fb30b2fd37900..cb0fb5b65b079e2dcb6373e0bb58257c75aca887 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -110,9 +110,6 @@
#if defined(OS_ANDROID)
#include "content/browser/android/app_web_message_port_message_filter.h"
#include "content/public/browser/android/java_interfaces.h"
-#if defined(ENABLE_MOJO_CDM)
-#include "content/browser/media/android/provision_fetcher_impl.h"
-#endif
#include "content/browser/media/android/media_player_renderer.h"
#include "media/base/audio_renderer_sink.h"
#include "media/base/video_renderer_sink.h"
@@ -123,6 +120,10 @@
#include "content/browser/frame_host/popup_menu_helper_mac.h"
#endif
+#if defined(ENABLE_MOJO_CDM)
+#include "content/public/browser/provision_fetcher_impl.h"
+#endif
+
#if defined(ENABLE_WEBVR)
#include "device/vr/vr_service_impl.h" // nogncheck
#endif
@@ -814,10 +815,14 @@ void RenderFrameHostImpl::Create(
media::mojom::InterfaceFactoryRequest request) {
auto registry = base::MakeUnique<service_manager::InterfaceRegistry>(
std::string());
-#if defined(OS_ANDROID) && defined(ENABLE_MOJO_CDM)
+#if defined(ENABLE_MOJO_CDM)
+ net::URLRequestContextGetter* context_getter =
+ BrowserContext::GetDefaultStoragePartition(
+ GetProcess()->GetBrowserContext())
+ ->GetURLRequestContext();
registry->AddInterface(
- base::Bind(&ProvisionFetcherImpl::Create, this));
-#endif
+ base::Bind(&ProvisionFetcherImpl::Create, context_getter));
+#endif // defined(ENABLE_MOJO_CDM)
GetContentClient()->browser()->ExposeInterfacesToMediaService(registry.get(),
this);
service_manager::mojom::InterfaceProviderPtr interfaces;
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/media/android/provision_fetcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698