diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-29 22:58:17 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-29 22:58:17 +0000 |
commit | 8d90ccce3472d525488ff634689ef06097f46a34 (patch) | |
tree | d58ed2c59a24712e332f96f82ad7fad41dc98a43 /gin | |
parent | f617a70257d3e9e059d7beb3e5279607a1d73b6d (diff) | |
download | chromium_src-8d90ccce3472d525488ff634689ef06097f46a34.zip chromium_src-8d90ccce3472d525488ff634689ef06097f46a34.tar.gz chromium_src-8d90ccce3472d525488ff634689ef06097f46a34.tar.bz2 |
Update memory related v8 notifications API calls
The API calls are per Isolate, and therefore should be on the isolate.
Make it so.
BUG=397026
R=haraken@chromium.org
Review URL: https://codereview.chromium.org/425043002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin')
-rw-r--r-- | gin/test/gc.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gin/test/gc.cc b/gin/test/gc.cc index 1ad6cf2..4cd67e1 100644 --- a/gin/test/gc.cc +++ b/gin/test/gc.cc @@ -29,7 +29,9 @@ v8::Local<v8::Value> GC::GetModule(v8::Isolate* isolate) { data->GetObjectTemplate(&g_wrapper_info); if (templ.IsEmpty()) { templ = ObjectTemplateBuilder(isolate) - .SetMethod("collectGarbage", v8::V8::LowMemoryNotification) + .SetMethod("collectGarbage", + base::Bind(&v8::Isolate::LowMemoryNotification, + base::Unretained(isolate))) .Build(); data->SetObjectTemplate(&g_wrapper_info, templ); } |