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

Unified Diff: chromecast/browser/cast_content_browser_client.cc

Issue 2434673002: media: Rename MojoMediaApplication to MediaService (Closed)
Patch Set: media: Rename MojoMediaApplication to MediaService Created 4 years, 2 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 | « chrome/browser/chrome_content_browser_client.cc ('k') | content/gpu/gpu_service_factory.cc » ('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 e32cf18881f36d13c85fd3fec7fc46020ad6d8e2..287073aa75456f8759214f9481227083d547578d 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -63,7 +63,7 @@
#if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
#include "chromecast/browser/media/cast_mojo_media_client.h"
-#include "media/mojo/services/mojo_media_application.h" // nogncheck
+#include "media/mojo/services/media_service.h" // nogncheck
#endif // ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS
#if defined(OS_ANDROID)
@@ -77,7 +77,7 @@ namespace shell {
namespace {
#if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
-static std::unique_ptr<service_manager::Service> CreateMojoMediaApplication(
+static std::unique_ptr<service_manager::Service> CreateMediaService(
CastContentBrowserClient* browser_client,
const base::Closure& quit_closure) {
std::unique_ptr<media::CastMojoMediaClient> mojo_media_client(
@@ -89,8 +89,7 @@ static std::unique_ptr<service_manager::Service> CreateMojoMediaApplication(
browser_client->GetVideoResolutionPolicy(),
browser_client->media_resource_tracker()));
return std::unique_ptr<service_manager::Service>(
- new ::media::MojoMediaApplication(std::move(mojo_media_client),
- quit_closure));
+ new ::media::MediaService(std::move(mojo_media_client), quit_closure));
}
#endif // defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
@@ -428,8 +427,7 @@ void CastContentBrowserClient::RegisterInProcessServices(
StaticServiceMap* services) {
#if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
content::ServiceInfo info;
- info.factory =
- base::Bind(&CreateMojoMediaApplication, base::Unretained(this));
+ info.factory = base::Bind(&CreateMediaService, base::Unretained(this));
info.task_runner = GetMediaTaskRunner();
services->insert(std::make_pair("service:media", info));
#endif
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/gpu/gpu_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698