1 // Copyright 2018 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 "chromecast/chromecast_buildflags.h"
6 #if BUILDFLAG(IS_ANDROID_THINGS)
7 #include "chromecast/base/cast_sys_info_android_things.h"
8 #endif
9 #include "chromecast/base/cast_sys_info_android.h"
10 
11 namespace chromecast {
12 
13 // static
CreateSysInfo()14 std::unique_ptr<CastSysInfo> CreateSysInfo() {
15 #if BUILDFLAG(IS_ANDROID_THINGS)
16   return std::make_unique<CastSysInfoAndroidThings>();
17 #else
18   return std::make_unique<CastSysInfoAndroid>();
19 #endif
20 }
21 
22 }  // namespace chromecast
23