| Index: chromecast/browser/cast_content_browser_client.cc
|
| diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc
|
| index b4903178c7632b07690b8f2e25a147b990c30472..ae8ae19ee16c9d43109d57224ace15cab136489b 100644
|
| --- a/chromecast/browser/cast_content_browser_client.cc
|
| +++ b/chromecast/browser/cast_content_browser_client.cc
|
| @@ -51,6 +51,10 @@
|
| #include "net/url_request/url_request_context_getter.h"
|
| #include "ui/gl/gl_switches.h"
|
|
|
| +#if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
|
| +#include "chromecast/media/mojo/cast_media_application.h"
|
| +#endif // ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS
|
| +
|
| #if defined(OS_ANDROID)
|
| #include "components/crash/content/browser/crash_dump_manager_android.h"
|
| #include "components/external_video_surface/browser/android/external_video_surface_container_impl.h"
|
| @@ -349,11 +353,11 @@ bool CastContentBrowserClient::CanCreateWindow(
|
| return false;
|
| }
|
|
|
| -void CastContentBrowserClient::RegisterUnsandboxedOutOfProcessMojoApplications(
|
| - std::map<GURL, base::string16>* apps) {
|
| -#if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
|
| - apps->insert(std::make_pair(GURL("mojo:media"),
|
| - base::ASCIIToUTF16("Media App")));
|
| +void CastContentBrowserClient::RegisterInProcessMojoApplications(
|
| + StaticMojoApplicationMap* apps) {
|
| +#if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
|
| + apps->insert(std::make_pair(
|
| + GURL("mojo:media"), base::Bind(&media::CastMediaApplication::CreateApp)));
|
| #endif
|
| }
|
|
|
|
|