Index: ppapi/shared_impl/var.cc |
diff --git a/ppapi/shared_impl/var.cc b/ppapi/shared_impl/var.cc |
index c9aee16e30561c4a74c130577c7844926fcb9f71..98c762aa69133a4404068222bcfa1e4b8016a47a 100644 |
--- a/ppapi/shared_impl/var.cc |
+++ b/ppapi/shared_impl/var.cc |
@@ -45,9 +45,8 @@ std::string Var::PPVarToLogString(PP_Var var) { |
else |
result = string->value(); |
- std::string null; |
- null.push_back(0); |
- ReplaceSubstringsAfterOffset(&result, 0, null, "\\0"); |
+ base::ReplaceSubstringsAfterOffset( |
+ &result, 0, base::StringPiece("\0", 1), "\\0"); |
return result; |
} |
case PP_VARTYPE_OBJECT: |