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

Unified Diff: content/child/navigator_connect/navigator_connect_provider.cc

Issue 921013002: Optionally have MessagePort pass data as base::Value, part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-c-move-v8-value-converter
Patch Set: Update singly-included comment 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/child/navigator_connect/navigator_connect_provider.cc
diff --git a/content/child/navigator_connect/navigator_connect_provider.cc b/content/child/navigator_connect/navigator_connect_provider.cc
index d650a18fd19f08f718fa74635aa34f924cc8b738..415b7a3457a408a5c51745565d2a3a12ec8d2d37 100644
--- a/content/child/navigator_connect/navigator_connect_provider.cc
+++ b/content/child/navigator_connect/navigator_connect_provider.cc
@@ -87,8 +87,9 @@ void NavigatorConnectProvider::OnConnectResult(int thread_id,
DCHECK(callbacks);
if (allow_connect) {
- callbacks->onSuccess(new WebMessagePortChannelImpl(
- message_port_route_id, message_port_id, main_loop_));
+ WebMessagePortChannelImpl* channel = new WebMessagePortChannelImpl(
+ message_port_route_id, message_port_id, main_loop_);
+ callbacks->onSuccess(channel);
} else {
callbacks->onError();
}
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl_unittest.cc ('k') | content/child/webmessageportchannel_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698