1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ash / assistant / ui / logo_view / logo_view.cc [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/assistant/ui/logo_view/logo_view.h"
#include "build/buildflag.h"
#include "chromeos/ash/components/assistant/buildflags.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#if BUILDFLAG(ENABLE_CROS_LIBASSISTANT)
#include "ash/assistant/ui/logo_view/logo_view_impl.h"
#endif
namespace ash {
LogoView::LogoView() = default;
LogoView::~LogoView() = default;
// static
std::unique_ptr<LogoView> LogoView::Create() {
#if BUILDFLAG(ENABLE_CROS_LIBASSISTANT)
return std::make_unique<LogoViewImpl>();
#else
return std::make_unique<LogoView>();
#endif
}
BEGIN_METADATA(LogoView)
END_METADATA
} // namespace ash