# Target - sources
SET(SRCS
- step/common/privileges.cc
step/configuration/step_parse.cc
step/encryption/step_encrypt_resources.cc
step/encryption/step_remove_encryption_data.cc
+++ /dev/null
-// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-// Use of this source code is governed by a apache 2.0 license that can be
-// found in the LICENSE file.
-
-#include "wgt/step/common/privileges.h"
-
-namespace wgt {
-namespace common {
-namespace privileges {
-const char kImePrivilegeName[] = "http://tizen.org/privilege/ime";
-} // namespace privileges
-} // namespace common
-} // namespace wgt
+++ /dev/null
-// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-// Use of this source code is governed by a apache 2.0 license that can be
-// found in the LICENSE file.
-
-#ifndef WGT_STEP_COMMON_PRIVILEGES_H_
-#define WGT_STEP_COMMON_PRIVILEGES_H_
-
-namespace wgt {
-namespace common {
-namespace privileges {
-extern const char kImePrivilegeName[];
-} // namespace privileges
-} // namespace common
-} // namespace wgt
-
-#endif // WGT_STEP_COMMON_PRIVILEGES_H_
#include <common/utils/file_util.h>
#include <common/utils/glist_range.h>
+#include <common/privileges.h>
#include <libxml/parser.h>
#include <libxml/xmlreader.h>
#include <cstring>
#include <string>
-#include "wgt/step/common/privileges.h"
#include "wgt/wgt_backend_data.h"
namespace bs = boost::system;
// found in the LICENSE file.
#include "wgt/step/security/step_add_default_privileges.h"
+#include <common/privileges.h>
#include <pkgmgrinfo_basic.h>
#include <cstring>
#include <memory>
-namespace {
-
-const char kPrivForWebApp[] =
- "http://tizen.org/privilege/internal/webappdefault";
-
-} // namespace
-
namespace wgt {
namespace security {
common_installer::Step::Status StepAddDefaultPrivileges::process() {
manifest_x* m = context_->manifest_data.get();
- m->privileges = g_list_append(m->privileges, strdup(kPrivForWebApp));
+ m->privileges = g_list_append(m->privileges,
+ strdup(common::privileges::kPrivForWebApp));
return Status::OK;
}
// found in the LICENSE file.
#include <wgt/step/security/step_check_wgt_ime_privilege.h>
-#include <wgt/step/common/privileges.h>
#include <manifest_parser/utils/version_number.h>
#include <manifest_parser/utils/logging.h>
#include <common/utils/glist_range.h>
+#include <common/privileges.h>
#include <string>