Apply new keys for argument consistency
authorso.yu <so.yu@samsung.com>
Tue, 16 Apr 2013 13:14:21 +0000 (22:14 +0900)
committerso.yu <so.yu@samsung.com>
Tue, 16 Apr 2013 13:14:37 +0000 (22:14 +0900)
Change-Id: I577af27957c48d38b2655e0f7d4fc6a5549ac7a7
Signed-off-by: so.yu <so.yu@samsung.com>
src/CertificateSelectorForm.cpp

index 94c031d..0dc36ca 100644 (file)
@@ -52,6 +52,8 @@ static const int ITEM_HEIGHT = 112; // in 720X1280px resolution
 static const int ITEM_LEFT_MARGIN = 26; // in 720X1280px resolution
 static const wchar_t EMPTY_LIST_STRING[] = L"No Certificate";
 static const wchar_t TITLE_STRING[] = L"USER CERTIFICATES";
+static const wchar_t CERT_ID_KEY[] = L"http://tizen.org/appcontrol/data/cert/cert_id";
+static const wchar_t OLD_CERT_ID_KEY[] = L"Id";
 
 CertificateSelectorForm::CertificateSelectorForm(void)
        : __reqId(-1)
@@ -87,7 +89,10 @@ CertificateSelectorForm::Finish(bool isSelected, int certId)
                AppLog("The current value of isSelected is true.");
                TryCatchResult(certId >= 0, , E_INVALID_ARG, "[%s] Invalid Certificate ID.", GetErrorMessage(E_INVALID_ARG));
 
-               pMap->Add(new (std::nothrow) String(L"Id"), new (std::nothrow) String(Integer(certId).ToString()));
+               pMap->Add(new (std::nothrow) String(OLD_CERT_ID_KEY), new (std::nothrow) String(Integer(certId).ToString()));
+               TryCatchResult(!IsFailed(r), , r, "[%s] Propagating.", GetErrorMessage(r));
+
+               pMap->Add(new (std::nothrow) String(CERT_ID_KEY), new (std::nothrow) String(Integer(certId).ToString()));
                TryCatchResult(!IsFailed(r), , r, "[%s] Propagating.", GetErrorMessage(r));
 
                // send result