Index: content/renderer/render_frame_impl.cc |
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc |
index 9675f6cba5a57a9a0aa996656ae24ebbbae40741..cbd04334da5e970af9a3d251c9eba7e0d3d1de0d 100644 |
--- a/content/renderer/render_frame_impl.cc |
+++ b/content/renderer/render_frame_impl.cc |
@@ -234,7 +234,6 @@ |
#if defined(OS_ANDROID) |
#include <cpu-features.h> |
-#include "content/renderer/android/app_web_message_port_client.h" |
#include "content/renderer/java/gin_java_bridge_dispatcher.h" |
#include "content/renderer/media/android/media_player_renderer_client_factory.h" |
#include "content/renderer/media/android/renderer_media_player_manager.h" |
@@ -1238,10 +1237,6 @@ void RenderFrameImpl::Initialize() { |
// embedder can call GetWebFrame on any RenderFrame. |
GetContentClient()->renderer()->RenderFrameCreated(this); |
-#if defined(OS_ANDROID) |
- new AppWebMessagePortClient(this); |
-#endif |
- |
RenderThreadImpl* render_thread = RenderThreadImpl::current(); |
// render_thread may be NULL in tests. |
InputHandlerManager* input_handler_manager = |
@@ -2206,9 +2201,7 @@ void RenderFrameImpl::OnPostMessageEvent( |
// If the message contained MessagePorts, create the corresponding endpoints. |
blink::WebMessagePortChannelArray channels = |
- WebMessagePortChannelImpl::CreatePorts( |
- params.message_ports, params.new_routing_ids, |
- base::ThreadTaskRunnerHandle::Get().get()); |
+ WebMessagePortChannelImpl::CreateFromMessagePorts(params.message_ports); |
WebSerializedScriptValue serialized_script_value; |
if (params.is_data_raw_string) { |
@@ -2237,7 +2230,9 @@ void RenderFrameImpl::OnPostMessageEvent( |
WebDOMMessageEvent msg_event(serialized_script_value, |
WebString::fromUTF16(params.source_origin), |
- source_frame, frame_->document(), channels); |
+ source_frame, |
+ frame_->document(), |
+ std::move(channels)); |
frame_->dispatchMessageEventWithOriginCheck(target_origin, msg_event); |
} |