diff options
author | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-23 00:03:10 +0000 |
---|---|---|
committer | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-23 00:03:10 +0000 |
commit | c272d08ceb9a6b960ace9be9c22600034f7e240e (patch) | |
tree | 0c7ee36cb0f3d6ac381aa1be66ccd309659c2c6d /ipc | |
parent | 4a7e43e76fb9ff1ae2c78ed62ee802e5c855aa56 (diff) | |
download | chromium_src-c272d08ceb9a6b960ace9be9c22600034f7e240e.zip chromium_src-c272d08ceb9a6b960ace9be9c22600034f7e240e.tar.gz chromium_src-c272d08ceb9a6b960ace9be9c22600034f7e240e.tar.bz2 |
Remove Pickle::WriteSize() now that it has no remaining callers. Also rename
Pickle::WriteLong() to WriteLongUsingDangerousNonPortableLessPersistableForm()
and add a strongly-worded comment against its use; it is used only for IPC
which is safe. (These methods write variable amounts of data to pickles,
depending on architecture, and aren't safe if pickles are persisted.)
Review URL: http://codereview.chromium.org/9641005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_message_utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h index bac0a82..dc4a4be 100644 --- a/ipc/ipc_message_utils.h +++ b/ipc/ipc_message_utils.h @@ -228,7 +228,7 @@ template <> struct ParamTraits<long> { typedef long param_type; static void Write(Message* m, const param_type& p) { - m->WriteLong(p); + m->WriteLongUsingDangerousNonPortableLessPersistableForm(p); } static bool Read(const Message* m, PickleIterator* iter, param_type* r) { @@ -241,7 +241,7 @@ template <> struct ParamTraits<unsigned long> { typedef unsigned long param_type; static void Write(Message* m, const param_type& p) { - m->WriteLong(p); + m->WriteLongUsingDangerousNonPortableLessPersistableForm(p); } static bool Read(const Message* m, PickleIterator* iter, param_type* r) { |