Commit ec6df0c6 authored by Olga Sharonova's avatar Olga Sharonova Committed by Commit Bot

Switch AudioSystem to service-base implementation.

This is a follow-up CL which makes the code to use AudioService for
access to audio systeminformation.
Follow-up of
https://chromium-review.googlesource.com/c/chromium/src/+/875927
Done separatly to simplify a revert if one is required.

Bug: 792441
Change-Id: I9664b5f8b4364bb019232b10d7aa2dd93ddaf957
Reviewed-on: https://chromium-review.googlesource.com/918901
Commit-Queue: Olga Sharonova <olka@chromium.org>
Reviewed-by: default avatarMax Morin <maxmorin@chromium.org>
Reviewed-by: default avatarKen Rockot <rockot@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537323}
parent 1cdafaed
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
#include "services/audio/public/cpp/audio_system_factory.h" #include "services/audio/public/cpp/audio_system_factory.h"
#include "media/audio/audio_system_impl.h" #include "services/audio/public/cpp/audio_system_to_service_adapter.h"
#include "services/service_manager/public/cpp/connector.h" #include "services/service_manager/public/cpp/connector.h"
namespace audio { namespace audio {
std::unique_ptr<media::AudioSystem> CreateAudioSystem( std::unique_ptr<media::AudioSystem> CreateAudioSystem(
std::unique_ptr<service_manager::Connector> connector) { std::unique_ptr<service_manager::Connector> connector) {
// TODO(olka): Switch to the service-based AudioSystem in the next CL. return std::make_unique<audio::AudioSystemToServiceAdapter>(
return media::AudioSystemImpl::CreateInstance(); std::move(connector));
} }
} // namespace audio } // namespace audio
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment