diff options
author | svenpanne@chromium.org <svenpanne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-19 15:47:13 +0000 |
---|---|---|
committer | svenpanne@chromium.org <svenpanne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-19 15:47:13 +0000 |
commit | 505ffde30947246b7cf91a315a454b6fcf6a475c (patch) | |
tree | ba5449c85bac85c5d1ec818892c82227505853a4 /gin | |
parent | 8943cc36496289bbb71353e9b37c4df429dd5471 (diff) | |
download | chromium_src-505ffde30947246b7cf91a315a454b6fcf6a475c.zip chromium_src-505ffde30947246b7cf91a315a454b6fcf6a475c.tar.gz chromium_src-505ffde30947246b7cf91a315a454b6fcf6a475c.tar.bz2 |
Do not use (mostly) deprecated FunctionTemplate::New and Object::New functions.
R=jochen@chromium.org
BUG=324225
Review URL: https://codereview.chromium.org/119093004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241869 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin')
-rw-r--r-- | gin/function_template.h | 1 | ||||
-rw-r--r-- | gin/modules/module_registry.cc | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gin/function_template.h b/gin/function_template.h index f028f2d..91b3cdb 100644 --- a/gin/function_template.h +++ b/gin/function_template.h @@ -343,6 +343,7 @@ v8::Local<v8::FunctionTemplate> CreateFunctionTemplate( gin::Handle<HolderT> holder = CreateHandle( isolate, new HolderT(callback, callback_flags)); return v8::FunctionTemplate::New( + isolate, &internal::Dispatcher<Sig>::DispatchToCallback, ConvertToV8<internal::CallbackHolderBase*>(isolate, holder.get())); } diff --git a/gin/modules/module_registry.cc b/gin/modules/module_registry.cc index 9dd3dbe..035c259 100644 --- a/gin/modules/module_registry.cc +++ b/gin/modules/module_registry.cc @@ -94,7 +94,7 @@ v8::Handle<String> GetHiddenValueKey(Isolate* isolate) { } // namespace ModuleRegistry::ModuleRegistry(Isolate* isolate) - : modules_(isolate, Object::New()) { + : modules_(isolate, Object::New(isolate)) { } ModuleRegistry::~ModuleRegistry() { |