Merge "[2.2.1] Apply reviewed header file (Base to Collection)" into tizen_2.2
[platform/framework/native/appfw.git] / src / app / FApp_DataControlManager.cpp
index 4a0c91b..02a33d8 100644 (file)
@@ -174,8 +174,8 @@ _DataControlManager::IsCached(const AppId& appId)
 result
 _DataControlManager::AllowAccess(const AppId& appId)
 {
-       if (IsCached(appId) == false)
-       {
+       //if (IsCached(appId) == false)
+       //{
                const PackageId& pkgId = _PackageManagerImpl::GetPackageIdByAppId(appId);
                unique_ptr< char[] > pPkgId(_StringConverter::CopyToCharArrayN(pkgId));
                SysTryReturnResult(NID_APP, pPkgId != null, E_SYSTEM, "The method cannot proceed due to a severe system error.");
@@ -184,8 +184,8 @@ _DataControlManager::AllowAccess(const AppId& appId)
                SysTryReturnResult(NID_APP, ret == 0, E_SYSTEM,
                                "Failed to call security_server_app_give_access(), provider: %s, ret: %d", pPkgId.get(), ret);
 
-               Cache(appId);
-       }
+       //      Cache(appId);
+       //}
 
        SysLog(NID_APP, "[DC_CALLER_SEND] Allow %ls to access", appId.GetPointer());
        return E_SUCCESS;