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

Unified Diff: ppapi/proxy/serialized_var.cc

Issue 7237039: Remove PPBoolToBool and BoolToPPBool and use PP_FromBool and PP_ToBool instead. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months 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/cpp/dev/font_dev.h ('K') | « ppapi/proxy/ppb_var_deprecated_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 91773)
+++ ppapi/proxy/serialized_var.cc (working copy)
@@ -128,7 +128,7 @@
// just serialized.
break;
case PP_VARTYPE_BOOL:
- m->WriteBool(PPBoolToBool(var_.value.as_bool));
+ m->WriteBool(PP_ToBool(var_.value.as_bool));
break;
case PP_VARTYPE_INT32:
m->WriteInt(var_.value.as_int);
@@ -185,7 +185,7 @@
case PP_VARTYPE_BOOL: {
bool bool_value;
success = m->ReadBool(iter, &bool_value);
- var_.value.as_bool = BoolToPPBool(bool_value);
+ var_.value.as_bool = PP_FromBool(bool_value);
break;
}
case PP_VARTYPE_INT32:
« ppapi/cpp/dev/font_dev.h ('K') | « ppapi/proxy/ppb_var_deprecated_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698