| Index: components/arc/tts/arc_tts_service.cc
|
| diff --git a/components/arc/tts/arc_tts_service.cc b/components/arc/tts/arc_tts_service.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..08f55f588da8ee28b641a3ec1a30ef257727f4fc
|
| --- /dev/null
|
| +++ b/components/arc/tts/arc_tts_service.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "components/arc/tts/arc_tts_service.h"
|
| +
|
| +#include "base/logging.h"
|
| +#include "components/arc/arc_bridge_service.h"
|
| +
|
| +namespace arc {
|
| +
|
| +ArcTtsService::ArcTtsService(ArcBridgeService* bridge_service)
|
| + : ArcService(bridge_service) {
|
| + arc_bridge_service()->tts()->AddObserver(this);
|
| +}
|
| +
|
| +ArcTtsService::~ArcTtsService() {
|
| + arc_bridge_service()->tts()->RemoveObserver(this);
|
| +}
|
| +
|
| +void ArcTtsService::OnInstanceReady() {
|
| + mojom::TtsInstance* tts_instance = arc_bridge_service()->tts()->instance();
|
| + if (!tts_instance) {
|
| + LOG(ERROR) << "OnTtsInstanceReady called, "
|
| + << "but no tts instance found";
|
| + return;
|
| + }
|
| +}
|
| +
|
| +} // namespace arc
|
|
|