Init Tizen 2.2.1
[framework/osp/social.git] / src / FScl_UserProfileImpl.cpp
index c0a3083..a3a5e2e 100644 (file)
@@ -76,7 +76,7 @@ _UserProfileImpl::_UserProfileImpl(void)
 {
        contacts_record_h profileHandle = null;
 
-       SysTryReturnVoidResult(NID_SCL, _ContactDbConnector::EnsureDbConnection() == E_SUCCESS, E_SYSTEM, "[%s] A system error has been occurred.", GetErrorMessage(E_SYSTEM));
+       _AddressbookUtil::InitContactViews();
 
        int ret = contacts_record_create(_contacts_my_profile._uri, &profileHandle);
        SysTryReturnVoidResult(NID_SCL, ret == CONTACTS_ERROR_NONE, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
@@ -89,7 +89,7 @@ _UserProfileImpl::_UserProfileImpl(const _UserProfileImpl& rhs)
 {
        contacts_record_h profileHandle = null;
 
-       SysTryReturnVoidResult(NID_SCL, _ContactDbConnector::EnsureDbConnection() == E_SUCCESS, E_SYSTEM, "[%s] A system error has been occurred.", GetErrorMessage(E_SYSTEM));
+       _AddressbookUtil::InitContactViews();
 
        int ret = contacts_record_clone(rhs.__profileHandle, &profileHandle);
        SysTryReturnVoidResult(NID_SCL, ret == CONTACTS_ERROR_NONE, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));