Index: Source/bindings/templates/callback_interface.h |
diff --git a/Source/bindings/templates/callback_interface.h b/Source/bindings/templates/callback_interface.h |
index bab148a7d4626c4fc71dbd44ef73b03eda5b77d3..41b631e909e4eeb9279f0c505f253e3c8ea70149 100644 |
--- a/Source/bindings/templates/callback_interface.h |
+++ b/Source/bindings/templates/callback_interface.h |
@@ -16,9 +16,9 @@ namespace blink { |
class {{v8_class}} FINAL : public {{cpp_class}}, public ActiveDOMCallback { |
public: |
- static PassOwnPtrWillBeRawPtr<{{v8_class}}> create(v8::Handle<v8::Function> callback, ScriptState* scriptState) |
+ static {{v8_class}}* create(v8::Handle<v8::Function> callback, ScriptState* scriptState) |
{ |
- return adoptPtrWillBeNoop(new {{v8_class}}(callback, scriptState)); |
+ return new {{v8_class}}(callback, scriptState); |
} |
virtual ~{{v8_class}}(); |