Index: ipc/ipc_message_utils.cc |
diff --git a/ipc/ipc_message_utils.cc b/ipc/ipc_message_utils.cc |
index a00e857e798bffc64850c02af2c2bfa3de7e54c0..58dc510331447b21f8f6809d40e1a8fd4f935a93 100644 |
--- a/ipc/ipc_message_utils.cc |
+++ b/ipc/ipc_message_utils.cc |
@@ -660,6 +660,25 @@ void ParamTraits<base::TimeTicks>::Log(const param_type& p, std::string* l) { |
ParamTraits<int64>::Log(p.ToInternalValue(), l); |
} |
+void ParamTraits<base::TraceTicks>::Write(Message* m, const param_type& p) { |
+ ParamTraits<int64>::Write(m, p.ToInternalValue()); |
+} |
+ |
+bool ParamTraits<base::TraceTicks>::Read(const Message* m, |
+ PickleIterator* iter, |
+ param_type* r) { |
+ int64 value; |
+ bool ret = ParamTraits<int64>::Read(m, iter, &value); |
+ if (ret) |
+ *r = base::TraceTicks::FromInternalValue(value); |
+ |
+ return ret; |
+} |
+ |
+void ParamTraits<base::TraceTicks>::Log(const param_type& p, std::string* l) { |
+ ParamTraits<int64>::Log(p.ToInternalValue(), l); |
+} |
+ |
void ParamTraits<IPC::ChannelHandle>::Write(Message* m, const param_type& p) { |
#if defined(OS_WIN) |
// On Windows marshalling pipe handle is not supported. |