Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1448)

Unified Diff: android_webview/browser/aw_message_port_message_filter.cc

Issue 995663002: Implement receiving transferred ports from JS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flaky-test
Patch Set: address nit from nasko Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_message_port_message_filter.cc
diff --git a/android_webview/browser/aw_message_port_message_filter.cc b/android_webview/browser/aw_message_port_message_filter.cc
index 8c434b52cbf5305b6441cd441a8c62adc547f127..0232b33b9d00898121aeaf66e6f3a8fbfaadc165 100644
--- a/android_webview/browser/aw_message_port_message_filter.cc
+++ b/android_webview/browser/aw_message_port_message_filter.cc
@@ -89,7 +89,10 @@ void AwMessagePortMessageFilter::SendMessage(
std::vector<int> sent_message_port_ids(sent_message_ports.size());
for (size_t i = 0; i < sent_message_ports.size(); ++i) {
DCHECK(!sent_message_ports[i].send_messages_as_values);
- sent_message_port_ids[i] = sent_message_ports[i].id;
+ int sent_port_id = sent_message_ports[i].id;
+ MessagePortProvider::HoldMessages(sent_port_id);
+ MessagePortProvider::UpdateMessagePort(sent_port_id, this);
+ sent_message_port_ids[i] = sent_port_id;
}
Send(new AwMessagePortMsg_WebToAppMessage(
route_id_,
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698