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

Unified Diff: ppapi/proxy/plugin_var_serialization_rules.cc

Issue 8826011: Remove PP_Module from parameters for PPB_Var.VarFromUtf8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows build and some nacl tests. Created 9 years 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
Index: ppapi/proxy/plugin_var_serialization_rules.cc
diff --git a/ppapi/proxy/plugin_var_serialization_rules.cc b/ppapi/proxy/plugin_var_serialization_rules.cc
index 3d9975a21efc26a273fd9b53ee0109c446703c07..155c844791b93661029c8be1c56e24a765b5aac2 100644
--- a/ppapi/proxy/plugin_var_serialization_rules.cc
+++ b/ppapi/proxy/plugin_var_serialization_rules.cc
@@ -44,7 +44,7 @@ PP_Var PluginVarSerializationRules::BeginReceiveCallerOwned(
const std::string* str_val,
Dispatcher* dispatcher) {
if (var.type == PP_VARTYPE_STRING)
- return StringVar::StringToPPVar(0, *str_val);
+ return StringVar::StringToPPVar(*str_val);
if (var.type == PP_VARTYPE_OBJECT) {
DCHECK(dispatcher->IsPlugin());
@@ -68,7 +68,7 @@ PP_Var PluginVarSerializationRules::ReceivePassRef(const PP_Var& var,
const std::string& str_val,
Dispatcher* dispatcher) {
if (var.type == PP_VARTYPE_STRING)
- return StringVar::StringToPPVar(0, str_val);
+ return StringVar::StringToPPVar(str_val);
// Overview of sending an object with "pass ref" from the browser to the
// plugin:

Powered by Google App Engine
This is Rietveld 408576698