X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fmisc%2Ffeature_logic.cpp;h=6ae087e290ac2b12567df412a607216c894b9114;hb=7fb83d1e97cd557be2a3b16edd5dc651a2d27306;hp=18b640b81783d1eed2b21ac0b5316aef053ae97a;hpb=ee89c702e5a597593c33d0c23e9abf2632928fb3;p=framework%2Fweb%2Fwrt-installer.git diff --git a/src/misc/feature_logic.cpp b/src/misc/feature_logic.cpp index 18b640b..6ae087e 100644 --- a/src/misc/feature_logic.cpp +++ b/src/misc/feature_logic.cpp @@ -28,6 +28,11 @@ namespace Jobs { namespace WidgetInstall { +namespace { +const DPL::String PRIVILEGE_TESTAUTOMATION = + L"http://tizen.org/privilege/testautomation"; +const DPL::String DEVICE_CAPABILITY_TESTAUTOMATION = L"testautomation"; +} FeatureLogic::FeatureLogic(const WrtDB::TizenAppId & tzAppid) : m_rejected(false) { @@ -35,8 +40,16 @@ FeatureLogic::FeatureLogic(const WrtDB::TizenAppId & tzAppid) : WidgetFeatureSet featureSet = widgetDao.getFeaturesList(); FOREACH(it, featureSet) { LogInfo("Feature name : " << it->name); - WrtDB::DeviceCapabilitySet dcs = - WrtDB::GlobalDAOReadOnly::GetDeviceCapability(it->name); + WrtDB::DeviceCapabilitySet dcs; + if (!DPL::StringCompare(it->name, PRIVILEGE_TESTAUTOMATION)) { + // special privilege + // This privilege doesn't have plugin in the target + // only use to special behavior + dcs.insert(DEVICE_CAPABILITY_TESTAUTOMATION); + } else { + // normal privilege + dcs = WrtDB::GlobalDAOReadOnly::GetDeviceCapability(it->name); + } FOREACH(devCap, dcs) { LogInfo("--- dev cap : " << *devCap); }