| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/mojo/services/mojo_media_application_factory.h" | 5 #include "media/mojo/services/media_service_factory.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "media/mojo/services/mojo_media_application.h" | 8 #include "media/mojo/services/media_service.h" |
| 9 | 9 |
| 10 #if defined(OS_ANDROID) | 10 #if defined(OS_ANDROID) |
| 11 #include "media/mojo/services/android_mojo_media_client.h" // nogncheck | 11 #include "media/mojo/services/android_mojo_media_client.h" // nogncheck |
| 12 using DefaultClient = media::AndroidMojoMediaClient; | 12 using DefaultClient = media::AndroidMojoMediaClient; |
| 13 #else | 13 #else |
| 14 #include "media/mojo/services/default_mojo_media_client.h" // nogncheck | 14 #include "media/mojo/services/default_mojo_media_client.h" // nogncheck |
| 15 using DefaultClient = media::DefaultMojoMediaClient; | 15 using DefaultClient = media::DefaultMojoMediaClient; |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 namespace media { | 18 namespace media { |
| 19 | 19 |
| 20 // static | 20 // static |
| 21 std::unique_ptr<service_manager::Service> CreateMojoMediaApplication( | 21 std::unique_ptr<service_manager::Service> CreateMediaService( |
| 22 const base::Closure& quit_closure) { | 22 const base::Closure& quit_closure) { |
| 23 return std::unique_ptr<service_manager::Service>(new MojoMediaApplication( | 23 return std::unique_ptr<service_manager::Service>( |
| 24 base::MakeUnique<DefaultClient>(), quit_closure)); | 24 new MediaService(base::MakeUnique<DefaultClient>(), quit_closure)); |
| 25 } | 25 } |
| 26 | 26 |
| 27 } // namespace media | 27 } // namespace media |
| OLD | NEW |