blob: f1bbc3046821d81c06daa741218597331434a042 [file] [log] [blame]
// 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 <memory>
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
#include "chromecast/base/cast_sys_info_util.h"
#include "chromecast/public/cast_sys_info.h"
#include "chromecast/public/cast_sys_info_shlib.h"
namespace chromecast {
std::unique_ptr<CastSysInfo> CreateSysInfo() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
return base::WrapUnique(CastSysInfoShlib::Create(command_line->argv()));
}
} // namespace chromecast