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

Unified Diff: ppapi/shared_impl/file_ref_impl.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/shared_impl/file_ref_impl.cc
diff --git a/ppapi/shared_impl/file_ref_impl.cc b/ppapi/shared_impl/file_ref_impl.cc
index 274d944b1b86d05a78fbc2c474dbd8913f1c2617..e2d8f8bc7b808f346a07f526e2aac8c25a476ee8 100644
--- a/ppapi/shared_impl/file_ref_impl.cc
+++ b/ppapi/shared_impl/file_ref_impl.cc
@@ -5,7 +5,6 @@
#include "ppapi/shared_impl/file_ref_impl.h"
#include "base/logging.h"
-#include "ppapi/shared_impl/ppapi_globals.h"
#include "ppapi/shared_impl/var.h"
namespace ppapi {
@@ -40,9 +39,7 @@ PP_FileSystemType FileRefImpl::GetFileSystemType() const {
PP_Var FileRefImpl::GetName() const {
if (!name_var_.get()) {
- name_var_ = new StringVar(
- PpapiGlobals::Get()->GetModuleForInstance(pp_instance()),
- create_info_.name);
+ name_var_ = new StringVar(create_info_.name);
}
return name_var_->GetPPVar();
}
@@ -51,9 +48,7 @@ PP_Var FileRefImpl::GetPath() const {
if (create_info_.file_system_type == PP_FILESYSTEMTYPE_EXTERNAL)
return PP_MakeUndefined();
if (!path_var_.get()) {
- path_var_ = new StringVar(
- PpapiGlobals::Get()->GetModuleForInstance(pp_instance()),
- create_info_.path);
+ path_var_ = new StringVar(create_info_.path);
}
return path_var_->GetPPVar();
}

Powered by Google App Engine
This is Rietveld 408576698