Index: ppapi/proxy/serialized_var.cc |
=================================================================== |
--- ppapi/proxy/serialized_var.cc (revision 65343) |
+++ ppapi/proxy/serialized_var.cc (working copy) |
@@ -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 @@ |
// 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); |
dmichael(do not use this one)
2010/11/08 15:31:19
Maybe this would be premature optimization, but yo
brettw
2010/11/08 15:51:02
The plugin might be malicious or have a bug and wr
dmichael(do not use this one)
2010/11/08 16:11:51
Good point. May warrant a comment, then, to fend
|
+ var_.value.as_bool = BoolToPPBool(bool_value); |
break; |
+ } |
case PP_VARTYPE_INT32: |
success = m->ReadInt(iter, &var_.value.as_int); |
break; |