Fix : Extract the gps information according to a locale
[platform/framework/native/content.git] / src / FCntDownloadManager.cpp
index b50a691..6eb1164 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -49,7 +48,6 @@ DownloadManager::~DownloadManager(void)
 DownloadManager*
 DownloadManager::GetInstance(void)
 {
-       result r = E_SUCCESS;
        static DownloadManager* pManager = null;
 
        if (pManager == null)
@@ -78,8 +76,9 @@ DownloadManager::Start(const DownloadRequest& request, RequestId& reqId)
        SysAssertf(__pDownloadManagerImpl != null, "Not yet constructed. Construct() should be called before use.\n");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_DOWNLOAD);
-       SysTryReturnResult(NID_CNT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
-                       "The application does not have the privilege to call this method.");
+       r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+       SysTryReturnResult(NID_CNT, r == E_SUCCESS, r,
+                       "The application is not permitted to call this method.");
 
        return __pDownloadManagerImpl->Start(request, reqId);
 }