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

Unified Diff: chromecast/browser/cast_content_browser_client.cc

Issue 1955053003: [chromecast] Delete CastMojoMediaApplication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nogncheck for conditional include Created 4 years, 7 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
« no previous file with comments | « no previous file | chromecast/browser/media/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9da93920677ee48a043f614f2b0e07e3ce0b7db2..39ffe59e106972dfaeda5bba64eb4660ccaef65a 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -53,8 +53,8 @@
#include "ui/gl/gl_switches.h"
#if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
-#include "chromecast/browser/media/cast_mojo_media_application.h"
#include "chromecast/browser/media/cast_mojo_media_client.h"
+#include "media/mojo/services/mojo_media_application.h" // nogncheck
#endif // ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS
#if defined(OS_ANDROID)
@@ -69,7 +69,7 @@ namespace shell {
namespace {
#if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
-static std::unique_ptr<::shell::ShellClient> CreateCastMojoMediaApplication(
+static std::unique_ptr<::shell::ShellClient> CreateMojoMediaApplication(
CastContentBrowserClient* browser_client,
const base::Closure& quit_closure) {
std::unique_ptr<media::CastMojoMediaClient> mojo_media_client(
@@ -77,9 +77,8 @@ static std::unique_ptr<::shell::ShellClient> CreateCastMojoMediaApplication(
base::Bind(&CastContentBrowserClient::CreateMediaPipelineBackend,
base::Unretained(browser_client))));
return std::unique_ptr<::shell::ShellClient>(
- new media::CastMojoMediaApplication(
- std::move(mojo_media_client), browser_client->GetMediaTaskRunner(),
- quit_closure));
+ new ::media::MojoMediaApplication(std::move(mojo_media_client),
+ quit_closure));
}
#endif // ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS
} // namespace
@@ -396,7 +395,7 @@ void CastContentBrowserClient::RegisterInProcessMojoApplications(
#if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
content::MojoApplicationInfo app_info;
app_info.application_factory =
- base::Bind(&CreateCastMojoMediaApplication, base::Unretained(this));
+ base::Bind(&CreateMojoMediaApplication, base::Unretained(this));
app_info.application_task_runner = GetMediaTaskRunner();
apps->insert(std::make_pair("mojo:media", app_info));
#endif
« no previous file with comments | « no previous file | chromecast/browser/media/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698