| Index: gin/wrappable.h
|
| diff --git a/gin/wrappable.h b/gin/wrappable.h
|
| index 3f9ebe3c19697ad9391e98bbddbdc18ae2839ffd..ffa7a33df876ab778cff091e7c08194cbdd400d4 100644
|
| --- a/gin/wrappable.h
|
| +++ b/gin/wrappable.h
|
| @@ -63,13 +63,11 @@ class WrappableBase {
|
| template<typename T>
|
| class Wrappable : public WrappableBase {
|
| public:
|
| - static WrapperInfo kWrapperInfo;
|
| -
|
| // Retrieve (or create) the v8 wrapper object cooresponding to this object.
|
| // To customize the wrapper created for a subclass, override GetWrapperInfo()
|
| // instead of overriding this function.
|
| v8::Handle<v8::Object> GetWrapper(v8::Isolate* isolate) {
|
| - return GetWrapperImpl(isolate, &kWrapperInfo);
|
| + return GetWrapperImpl(isolate, &T::kWrapperInfo);
|
| }
|
|
|
| protected:
|
| @@ -79,13 +77,6 @@ class Wrappable : public WrappableBase {
|
| };
|
|
|
|
|
| -// Subclasses of Wrappable must call this within a cc file to initialize their
|
| -// WrapperInfo.
|
| -#define INIT_WRAPPABLE(TYPE) \
|
| -template<> \
|
| -gin::WrapperInfo gin::Wrappable<TYPE>::kWrapperInfo = { kEmbedderNativeGin };
|
| -
|
| -
|
| // This converter handles any subclass of Wrappable.
|
| template<typename T>
|
| struct Converter<T*, typename base::enable_if<
|
|
|