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

Unified Diff: ppapi/cpp/var.cc

Issue 7349016: Added versioning for PPB_Core::MemAlloc and MemFree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor cleanup Created 9 years, 5 months 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/cpp/var.cc
diff --git a/ppapi/cpp/var.cc b/ppapi/cpp/var.cc
index b655e9863c659fbcadf54fcad6743e56ce21e17d..9692f8c18a98753ce373d0d76ecd19fb9e8bba86 100644
--- a/ppapi/cpp/var.cc
+++ b/ppapi/cpp/var.cc
@@ -10,6 +10,7 @@
#include <algorithm>
#include "ppapi/c/pp_var.h"
+#include "ppapi/c/dev/ppb_memory_dev.h"
dmichael (off chromium) 2011/07/14 05:28:21 nit: This should probably come first alphabeticall
Matt Ball 2011/07/14 15:49:20 Done.
#ifndef PPAPI_VAR_REMOVE_SCRIPTING
# include "ppapi/c/dev/ppb_var_deprecated.h"
#endif
@@ -274,7 +275,9 @@ void Var::GetAllPropertyNames(std::vector<Var>* properties,
Var temp(PassRef(), props[i]);
(*properties)[i] = temp;
}
- Module::Get()->core()->MemFree(props);
+ const PPB_Memory_Dev* memory_if = static_cast<const PPB_Memory_Dev*>(
+ pp::Module::Get()->GetBrowserInterface(PPB_MEMORY_DEV_INTERFACE));
+ memory_if->MemFree(props);
}
void Var::SetProperty(const Var& name, const Var& value, Var* exception) {

Powered by Google App Engine
This is Rietveld 408576698