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

Unified Diff: ppapi/shared_impl/var.cc

Issue 8826011: Remove PP_Module from parameters for PPB_Var.VarFromUtf8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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
« no previous file with comments | « ppapi/shared_impl/var.h ('k') | ppapi/tests/test_var.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/var.cc
diff --git a/ppapi/shared_impl/var.cc b/ppapi/shared_impl/var.cc
index 5013b90dfa2a60d44edaadd1bf3f27280ca102c9..3bec5ce3ade7468bef7c7ae7a9b4ec62e3c5d95a 100644
--- a/ppapi/shared_impl/var.cc
+++ b/ppapi/shared_impl/var.cc
@@ -17,7 +17,7 @@ namespace ppapi {
// Var -------------------------------------------------------------------------
-Var::Var(PP_Module module) : pp_module_(module), var_id_(0) {
+Var::Var() : var_id_(0) {
}
Var::~Var() {
@@ -97,14 +97,12 @@ void Var::AssignVarID(int32 id) {
// StringVar -------------------------------------------------------------------
-StringVar::StringVar(PP_Module module, const std::string& str)
- : Var(module),
- value_(str) {
+StringVar::StringVar(const std::string& str)
+ : value_(str) {
}
-StringVar::StringVar(PP_Module module, const char* str, uint32 len)
- : Var(module),
- value_(str, len) {
+StringVar::StringVar(const char* str, uint32 len)
+ : value_(str, len) {
}
StringVar::~StringVar() {
@@ -131,14 +129,13 @@ PP_VarType StringVar::GetType() const {
}
// static
-PP_Var StringVar::StringToPPVar(PP_Module module, const std::string& var) {
- return StringToPPVar(module, var.c_str(), var.size());
+PP_Var StringVar::StringToPPVar(const std::string& var) {
+ return StringToPPVar(var.c_str(), var.size());
}
// static
-PP_Var StringVar::StringToPPVar(PP_Module module,
- const char* data, uint32 len) {
- scoped_refptr<StringVar> str(new StringVar(module, data, len));
+PP_Var StringVar::StringToPPVar(const char* data, uint32 len) {
+ scoped_refptr<StringVar> str(new StringVar(data, len));
if (!str || !IsStringUTF8(str->value()))
return PP_MakeNull();
return str->GetPPVar();
« no previous file with comments | « ppapi/shared_impl/var.h ('k') | ppapi/tests/test_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698