| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "media/mojo/services/mojo_media_application_factory.h" | |
| 6 | |
| 7 #include "base/memory/ptr_util.h" | |
| 8 #include "media/mojo/services/mojo_media_application.h" | |
| 9 | |
| 10 #if defined(OS_ANDROID) | |
| 11 #include "media/mojo/services/android_mojo_media_client.h" // nogncheck | |
| 12 using DefaultClient = media::AndroidMojoMediaClient; | |
| 13 #else | |
| 14 #include "media/mojo/services/default_mojo_media_client.h" // nogncheck | |
| 15 using DefaultClient = media::DefaultMojoMediaClient; | |
| 16 #endif | |
| 17 | |
| 18 namespace media { | |
| 19 | |
| 20 // static | |
| 21 std::unique_ptr<service_manager::Service> CreateMojoMediaApplication( | |
| 22 const base::Closure& quit_closure) { | |
| 23 return std::unique_ptr<service_manager::Service>(new MojoMediaApplication( | |
| 24 base::MakeUnique<DefaultClient>(), quit_closure)); | |
| 25 } | |
| 26 | |
| 27 } // namespace media | |
| OLD | NEW |