Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: ppapi/proxy/serialized_var.cc

Issue 4659001: Convert Chrome PPAPI proxy from bool to PP_Bool. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ppapi/proxy/ppb_core_proxy.cc ('K') | « ppapi/proxy/ppp_instance_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« ppapi/proxy/ppb_core_proxy.cc ('K') | « ppapi/proxy/ppp_instance_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698