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

Unified Diff: ppapi/shared_impl/ppb_file_ref_shared.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/proxy/proxy_object_var.cc ('k') | ppapi/shared_impl/ppb_input_event_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_file_ref_shared.cc
diff --git a/ppapi/shared_impl/ppb_file_ref_shared.cc b/ppapi/shared_impl/ppb_file_ref_shared.cc
index 6e748e12c41098093f76413f6183c2348f8211b8..64268b3b5c04500db796b16415adcc3680163196 100644
--- a/ppapi/shared_impl/ppb_file_ref_shared.cc
+++ b/ppapi/shared_impl/ppb_file_ref_shared.cc
@@ -5,7 +5,6 @@
#include "ppapi/shared_impl/ppb_file_ref_shared.h"
#include "base/logging.h"
-#include "ppapi/shared_impl/ppapi_globals.h"
#include "ppapi/shared_impl/var.h"
namespace ppapi {
@@ -42,9 +41,7 @@ PP_FileSystemType PPB_FileRef_Shared::GetFileSystemType() const {
PP_Var PPB_FileRef_Shared::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();
}
@@ -53,9 +50,7 @@ PP_Var PPB_FileRef_Shared::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();
}
« no previous file with comments | « ppapi/proxy/proxy_object_var.cc ('k') | ppapi/shared_impl/ppb_input_event_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698