Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/templates/methods.cpp |
| diff --git a/third_party/WebKit/Source/bindings/templates/methods.cpp b/third_party/WebKit/Source/bindings/templates/methods.cpp |
| index d50031fb42006b5db0d509620660ef7a8d54c20f..143067bd247c80a8e7069fb31ec042baf6b22408 100644 |
| --- a/third_party/WebKit/Source/bindings/templates/methods.cpp |
| +++ b/third_party/WebKit/Source/bindings/templates/methods.cpp |
| @@ -475,7 +475,7 @@ void postMessageImpl(const char* interfaceName, {{cpp_class}}* instance, const v |
| exceptionState.throwIfNeeded(); |
| return; |
| } |
| - RawPtr<MessagePortArray> ports = new MessagePortArray; |
| + MessagePortArray* ports = new MessagePortArray; |
|
sof
2016/04/12 07:29:54
This might conflict with https://codereview.chromi
|
| ArrayBufferArray arrayBuffers; |
| ImageBitmapArray imageBitmaps; |
| if (info.Length() > 1) { |
| @@ -485,12 +485,12 @@ void postMessageImpl(const char* interfaceName, {{cpp_class}}* instance, const v |
| return; |
| } |
| } |
| - RefPtr<SerializedScriptValue> message = SerializedScriptValueFactory::instance().create(info.GetIsolate(), info[0], ports.get(), &arrayBuffers, &imageBitmaps, exceptionState); |
| + RefPtr<SerializedScriptValue> message = SerializedScriptValueFactory::instance().create(info.GetIsolate(), info[0], ports, &arrayBuffers, &imageBitmaps, exceptionState); |
| if (exceptionState.throwIfNeeded()) |
| return; |
| // FIXME: Only pass context/exceptionState if instance really requires it. |
| ExecutionContext* context = currentExecutionContext(info.GetIsolate()); |
| - instance->postMessage(context, message.release(), ports.get(), exceptionState); |
| + instance->postMessage(context, message.release(), ports, exceptionState); |
| exceptionState.throwIfNeeded(); |
| } |
| {% endmacro %} |