blob: b9fe72c2b0b348d1e2ed2f392fcad3fb4825f22b [file] [log] [blame]
// Copyright 2021 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 "content/browser/handwriting/handwriting_recognition_service_factory.h"
#include <utility>
#include "build/buildflag.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "content/browser/handwriting/handwriting_recognition_service_impl_cros.h"
#else
// The default service which does not have any real handwriting recognition
// backend.
#include "content/browser/handwriting/handwriting_recognition_service_impl.h"
#endif // IS_CHROMEOS_ASH
namespace content {
void CreateHandwritingRecognitionService(
mojo::PendingReceiver<handwriting::mojom::HandwritingRecognitionService>
pending_receiver) {
#if BUILDFLAG(IS_CHROMEOS_ASH)
CrOSHandwritingRecognitionServiceImpl::Create(std::move(pending_receiver));
#else
HandwritingRecognitionServiceImpl::Create(std::move(pending_receiver));
#endif // IS_CHROMEOS_ASH
}
} // namespace content