summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/serialized_var.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-08 16:32:18 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-08 16:32:18 +0000
commit19d2b0155d65336be11061af042d29ac7c06c84a (patch)
tree861c8e71044a5da1d32e31b0c7a2b6f678c6801e /ppapi/proxy/serialized_var.cc
parent7cc320eb2d5538832212955de420b3339a0db499 (diff)
downloadchromium_src-19d2b0155d65336be11061af042d29ac7c06c84a.zip
chromium_src-19d2b0155d65336be11061af042d29ac7c06c84a.tar.gz
chromium_src-19d2b0155d65336be11061af042d29ac7c06c84a.tar.bz2
Convert Chrome PPAPI proxy from bool to PP_Bool.
TEST=none BUG=none Review URL: http://codereview.chromium.org/4659001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65381 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/serialized_var.cc')
-rw-r--r--ppapi/proxy/serialized_var.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/ppapi/proxy/serialized_var.cc b/ppapi/proxy/serialized_var.cc
index 66a16c3..ef968ea 100644
--- a/ppapi/proxy/serialized_var.cc
+++ b/ppapi/proxy/serialized_var.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "ipc/ipc_message_utils.h"
#include "ppapi/proxy/dispatcher.h"
+#include "ppapi/proxy/interface_proxy.h"
#include "ppapi/proxy/ppapi_param_traits.h"
#include "ppapi/proxy/var_serialization_rules.h"
@@ -171,9 +172,12 @@ bool SerializedVar::Inner::ReadFromMessage(const IPC::Message* m, void** iter) {
// just serialized.
success = true;
break;
- case PP_VARTYPE_BOOL:
- success = m->ReadBool(iter, &var_.value.as_bool);
+ case PP_VARTYPE_BOOL: {
+ bool bool_value;
+ success = m->ReadBool(iter, &bool_value);
+ var_.value.as_bool = BoolToPPBool(bool_value);
break;
+ }
case PP_VARTYPE_INT32:
success = m->ReadInt(iter, &var_.value.as_int);
break;