projects
/
platform
/
core
/
api
/
notification.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aad64c
)
Set uid on AbstractItem::Serialize()
09/202009/1
author
jusung son
<jusung07.son@samsung.com>
Fri, 22 Mar 2019 00:04:05 +0000
(09:04 +0900)
committer
jusung son
<jusung07.son@samsung.com>
Fri, 22 Mar 2019 00:04:05 +0000
(09:04 +0900)
Change-Id: Iee5938080051a081f6b789975925b7dbfefc6db9
Signed-off-by: jusung son <jusung07.son@samsung.com>
notification-ex/abstract_item.cc
patch
|
blob
|
history
diff --git
a/notification-ex/abstract_item.cc
b/notification-ex/abstract_item.cc
index 5c1f0f2bbbe853bd610b070a9a123f3499d83649..4c2242406d2013f1f6dd702a359d18d5f81e2279 100644
(file)
--- a/
notification-ex/abstract_item.cc
+++ b/
notification-ex/abstract_item.cc
@@
-16,6
+16,7
@@
#include <dlog.h>
#include <uuid/uuid.h>
+#include <unistd.h>
#include <memory>
#include <algorithm>
@@
-122,6
+123,9
@@
Bundle AbstractItem::Serialize() const {
struct tm* timeinfo;
char buf[80] = {0,};
+ if (impl_->uid_ == 0)
+ impl_->uid_ = getuid();
+
if (!impl_->channel_.empty())
b.Add(ABSTRACT_ITEM_CHANNEL_KEY, impl_->channel_);