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/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: Changes based on comments from dmichael 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
« no previous file with comments | « ppapi/cpp/private/var_private.cc ('k') | ppapi/example/example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/var.cc
diff --git a/ppapi/cpp/var.cc b/ppapi/cpp/var.cc
index b655e9863c659fbcadf54fcad6743e56ce21e17d..bedd2572d1b8fdb1d8a5b9d858466df60dc395da 100644
--- a/ppapi/cpp/var.cc
+++ b/ppapi/cpp/var.cc
@@ -9,10 +9,11 @@
#include <algorithm>
-#include "ppapi/c/pp_var.h"
+#include "ppapi/c/dev/ppb_memory_dev.h"
#ifndef PPAPI_VAR_REMOVE_SCRIPTING
# include "ppapi/c/dev/ppb_var_deprecated.h"
#endif
+#include "ppapi/c/pp_var.h"
#include "ppapi/c/ppb_var.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/logging.h"
@@ -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) {
« no previous file with comments | « ppapi/cpp/private/var_private.cc ('k') | ppapi/example/example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698