Tizen 2.2.1
[framework/osp/web.git] / src / FWebWebBookmark.cpp
index 93bc54a..0b23161 100755 (executable)
@@ -68,7 +68,7 @@ WebBookmark::Construct(void)
 
        __pWebBookmarkImpl = pWebBookmarkImpl.release();
 
-       return r;
+       return E_SUCCESS;
 }
 
 
@@ -104,7 +104,7 @@ WebBookmark::AddBookmark(const String& title, const String& url, RecordId& bookm
        r = __pWebBookmarkImpl->AddBookmark(title, url, parentId, bookmarkId);
        SysTryReturn(NID_WEB, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
        
-       SysLog(NID_WEB, "The current value of title is %ls, url is %ls, parentId is %d", title.GetPointer(), url.GetPointer(), parentId);
+       SysSecureLog(NID_WEB, "The current value of title is %ls, url is %ls, parentId is %d", title.GetPointer(), url.GetPointer(), parentId);
        
        return E_SUCCESS;
 }
@@ -123,7 +123,7 @@ WebBookmark::SetFavicon(RecordId bookmarkId, const Bitmap& favicon)
        r = __pWebBookmarkImpl->SetFavicon(bookmarkId, favicon);
        SysTryReturn(NID_WEB, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
        
-       SysLog(NID_WEB, "The current value of bookmarkId is %d", bookmarkId);
+       SysSecureLog(NID_WEB, "The current value of bookmarkId is %d", bookmarkId);
        
        return E_SUCCESS;
 }
@@ -154,6 +154,7 @@ WebBookmark::GetItemCount(void) const
 {
        SysAssertf(__pWebBookmarkImpl != null, "Not yet constructed. Construct() should be called before use.");
 
+       ClearLastResult();
        result r = E_SUCCESS;
 
        r = _AccessController::CheckUserPrivilege(_PRV_BOOKMARK_READ);