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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 944443003: Step two of optionally sending messages to/from message ports as base::Value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-c-message-as-values-take2
Patch Set: use auto where it makes sense Created 5 years, 10 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
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 49b5a5eae016d5194ce73c86860209b4d8ff0c21..ede16421d7a0cfc89d2278a569153d4a6639cb64 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -4020,7 +4020,7 @@ void WebContentsImpl::RouteMessageEvent(
// In most cases, we receive this from a swapped out RenderViewHost.
// It is possible to receive it from one that has just been swapped in,
// in which case we might as well deliver the message anyway.
- if (!params.message_port_ids.empty()) {
+ if (!params.message_ports.empty()) {
// Updating the message port information has to be done in the IO thread;
// MessagePortMessageFilter::RouteMessageEventWithMessagePorts will send
// ViewMsg_PostMessageEvent after it's done. Note that a trivial solution

Powered by Google App Engine
This is Rietveld 408576698