1 // Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by a apache 2.0 license that can be
3 // found in the LICENSE file.
5 #include "wgt/step/step_check_wgt_background_category.h"
7 #include <common/installer_context.h>
8 #include <wgt_manifest_handlers/setting_handler.h>
10 #include "wgt/wgt_backend_data.h"
13 namespace ci_sec = common_installer::security;
19 StepCheckWgtBackgroundCategory::StepCheckWgtBackgroundCategory(
20 common_installer::InstallerContext* context) :
21 ci_sec::StepCheckBackgroundCategory(context) {}
23 bool StepCheckWgtBackgroundCategory::GetBackgroundSupport() {
24 const wgt::parse::SettingInfo& settings = static_cast<WgtBackendData*>(
25 context_->backend_data.get())->settings.get();
26 return settings.background_support_enabled();
29 } // namespace security